LocalFree

Postgres MCP server

sparta2025/postgres-mcp

PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.

0 GitHub stars

Install Postgres in Claude Code

Claude Code
claude mcp add sparta2025-postgres -e DATABASE_URL=... -- uvx postgres-mcp-pro
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "sparta2025-postgres": {
      "command": "uvx",
      "args": [
        "postgres-mcp-pro"
      ],
      "env": {
        "DATABASE_URL": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Postgres MCP server do?

PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.

Is the Postgres MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Postgres run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Postgres to Claude Code?

Run: claude mcp add sparta2025-postgres -e DATABASE_URL=... -- uvx postgres-mcp-pro

More databases MCP servers

View all