postgres-mcp
CommunityMCP server by pgEdge · updated · ★ 239
Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI postgres-mcp is a community project by pgEdge, not verified by a company domain.
Last commit 7 days ago
PostgreSQL: check the terms
Clear description, published package or server URL, 239 stars, original repository
Not checked yet. What we check
Install postgres-mcp
Built from the published package, never by AIclaude mcp add postgres-mcp -- docker run -i --rm ghcr.io/pgedge/postgres-mcp:latestRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"postgres-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"postgres-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"postgres-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add postgres-mcp -- docker run -i --rm ghcr.io/pgedge/postgres-mcp:latest{
"mcpServers": {
"postgres-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add postgres-mcp docker run -i --rm ghcr.io/pgedge/postgres-mcp:latestGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the postgres-mcp block.
Alternatives to postgres-mcp
All alternatives →MCP server for interacting with the Supabase platform
Built-in MCP server for ArcadeDB multi-model database (graph, document, vector, time-series)
MCP Toolbox for Databases enables your agent to connect to your database.
MCP Toolbox for Databases enables your agent to connect to your database.
Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.
Self-learning vector database for Node.js — hybrid search, Graph RAG, FlashAttention-3, HNSW, 50+ attention mechanisms
postgres-mcp: common questions
How do I install postgres-mcp?
In Claude Code run claude mcp add postgres-mcp -- docker run -i --rm ghcr.io/pgedge/postgres-mcp:latest. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is postgres-mcp the official server?
postgres-mcp is a community project by pgEdge, not verified by a company domain.
Is postgres-mcp free?
The code is published under the PostgreSQL licence. The service it connects to may have its own pricing.
Is postgres-mcp safe to use?
It scores 80 of 100. Grades: maintenance A, licence B, quality B. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to postgres-mcp?
Similar MCP servers: Supabase, ArcadeDB MCP Server, MCP Toolbox for Databases, MCP Toolbox for Databases.
Does postgres-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
