PG-MCP

    Natural language PostgreSQL via Model Context Protocol

    Type a question in plain English and watch Claude generate the SQL, execute it against your PostgreSQL database via MCP, and stream back a structured, markdown-rendered answer complete with tables — no SQL knowledge required.

    localhost:5173/pg-mcp
    Schema
    users
    id
    name
    email
    orders
    products
    + Connect your DB
    Show me all users with their email addresses

    Here are all users in the database:

    idnameemail
    1Alice Chenalice@example.com
    2Bob Smithbob@example.com
    3Carol Wucarol@example.com
    Ask a question about your database…

    How it works

    From plain English to SQL results in seconds

    01

    Connect your DB

    Use the demo or paste your connection string

    02

    Ask in plain English

    Type your question as you would to a colleague

    03

    Get SQL + results

    See the generated query and a rendered table

    Packed with power

    Everything you need for natural language database access

    Natural Language

    Ask questions in plain English. Claude generates the SQL, executes it, and explains the results.

    Schema Browser

    Visual table and column explorer with data types, so you always know what's in your database.

    Demo Database

    A pre-connected PostgreSQL DB is ready the moment you open the app. Zero configuration.

    Custom DB

    Paste any PostgreSQL connection string to connect your own database and start querying.

    Streaming Responses

    Token-by-token streaming so you see the answer forming in real time — no waiting.

    Dual Sessions

    Switch between the Demo DB and Your DB tabs seamlessly. Each session is fully independent.

    Built with

    PostgreSQL
    MCP
    Claude AI
    React
    Framer Motion
    Tailwind CSS
    PostgreSQL
    MCP
    Claude AI
    React
    Framer Motion
    Tailwind CSS
    PostgreSQL
    MCP
    Claude AI
    React
    Framer Motion
    Tailwind CSS

    Ready to try it?

    The demo database is pre-connected and ready to query. Start asking questions immediately — no setup, no credentials, no SQL knowledge needed.