MCP server
Postgres
io.github.sparta2025/postgres-mcp
Checked 25 Oct 2026, 21:11 UTC · Still published on its registry; checked against OSV.dev; never run by us
PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Runs on your computer
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code
- Last checked
- 25 Oct 2026, 21:11 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. It then runs the package on your computer with your permissions. For other apps, copy the setup below.
Claude Code
claude mcp add postgres-mcp --env DATABASE_URL=YOUR_VALUE -- uvx postgres-mcp-pro@0.4.2
Claude Desktop
{"mcpServers":{"postgres-mcp":{"command":"uvx","args":["postgres-mcp-pro@0.4.2"],"env":{"DATABASE_URL":"YOUR_VALUE"}}}}
Codex (config.toml)
[mcp_servers.postgres-mcp]
command = "uvx"
args = ["postgres-mcp-pro@0.4.2"]
env = { DATABASE_URL = "YOUR_VALUE" }
Gemini CLI
{"mcpServers":{"postgres-mcp":{"command":"uvx","args":["postgres-mcp-pro@0.4.2"],"env":{"DATABASE_URL":"YOUR_VALUE"}}}}
Cursor
{"mcpServers":{"postgres-mcp":{"command":"uvx","args":["postgres-mcp-pro@0.4.2"],"env":{"DATABASE_URL":"YOUR_VALUE"}}}}
VS Code
{"servers":{"postgres-mcp":{"type":"stdio","command":"uvx","args":["postgres-mcp-pro@0.4.2"],"env":{"DATABASE_URL":"YOUR_VALUE"}}}}
Runs on your computer with your permissions: check the package and its source before installing. Replace YOUR_VALUE with your own DATABASE_URL.
Browse
Related MCP servers
- Pg Aiguide
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools - Googleapis
Create, manage, and query your Google Cloud SQL resources. - pg.ddx.io: the PostgreSQL community's memory
Every PostgreSQL mailing list since 1991, linked to the commits, code, commitfest and docs. - PostgreSQL MCP Server
PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants - Postgres
PostgreSQL MCP — query databases, inspect schemas, explain queries. - PostgreSQL
MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion. - Kaiva Postgres MCP
Read-only PostgreSQL MCP server. Drop-in replacement for the archived server-postgres. - PostgreSQL MCP Server
PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management
Badge for your README
[](https://aptlynx.net/servers/io.github.sparta2025/postgres-mcp)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents