postgres MCP Server: Tools, Setup for Claude Code, Cursor & More
Not the official PostgreSQL MCP server. This one is built by the community. PostgreSQL makes its own: MCP Toolbox for Databases →
PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install postgres MCP
Claude Code
- 1
Copy this prompt.
Add the postgres MCP server to Claude Code. Run this command: claude mcp add postgres -e DATABASE_URL=<DATABASE_URL> -- uvx postgres-mcp-pro Ask me for DATABASE_URL and only put the values in that config, nowhere else. Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires uv (Python).
Built from the package data we hold. Not yet tested by us.
Tools
We don't list postgres MCP's tools here yet. After you connect it, ask your assistant "What can you do with postgres MCP?" to see them.
Information
updated Nov 2, 2026
- Publisher
- Community
- Package
postgres-mcp-pro- Registry
- PyPI
- Transport
- stdio
- Version
- 0.4.2
- License
- MIT
- Last commit
- Aug 21, 2026
- Open issues
- 0
- Listed in
- Official MCP registry