Postgres MCP
Postgres MCP is an MCP server that enables SQL queries against PostgreSQL databases through MCP-compatible clients. The Natural Language Agent provides supporting functionality that allows you to use natural language to form SQL queries. It has 246 GitHub stars, is released under the PostgreSQL license and runs locally with docker run -i --rm ghcr.io/pgedge/postgres-mcp:latest.
github.com/pgEdge/pgedge-postgres-mcp (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Postgres MCP
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"postgres-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio postgres-mcp -- docker run -i --rm ghcr.io/pgedge/postgres-mcp:latestCursor
{
"mcpServers": {
"postgres-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"postgres-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pgedge/postgres-mcp:latest"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
About Postgres MCP
The pgEdge Postgres Model Context Protocol (MCP) server enables SQL queries against PostgreSQL databases through MCP-compatible clients. The Natural Language Agent provides supporting functionality that allows you to use natural language to form SQL queries.
- ai
- llm
- mcp
- postgres
- postgresql
- server
Similar MCP servers
More databases MCP servers
MCP Mongo Server
kiliczsh/mcp-mongo-server
A Model Context Protocol Server for MongoDB.
Active · last commit Nov 11, 2026
DatabasesTypeScriptCustomermates
customermates/customermates
Open-source CRM to follow up on every client conversation: LinkedIn and email beside each client, dated next steps, MCP for Claude and ChatGPT, self-hostable core.
Maintained · last commit Nov 15, 2026
DatabasesTypeScriptMCP Neo4j Data Modeling
neo4j-contrib/mcp-neo4j
A simple Neo4j MCP server for creating graph data models.
Maintained · last commit Sep 9, 2026
OfficialDatabasesPythonMongoDB Lens
furey/mongodb-lens
🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases.
Active · last commit Nov 7, 2026
DatabasesJavaScriptUteke
codecoradev/uteke
Long-term memory for AI agents: hybrid vector and full-text recall, rooms, time-travel.
Active · last commit Nov 16, 2026
OfficialDatabasesRustCrowdsentinel MCP Server
thomasxm/CrowdSentinels-AI-MCP
AI threat hunting & incident response for Elasticsearch/OpenSearch with endpoint & network forensics.
Maintained · last commit Jul 19, 2026
DatabasesPython
How do I install the Postgres MCP MCP server?
Add the command docker run -i --rm ghcr.io/pgedge/postgres-mcp:latest to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Postgres MCP free?
The server is open source under the PostgreSQL license, so running it is free. It does not declare any required API key.
Is Postgres MCP actively maintained?
The most recent commit was on Nov 11, 2026. The latest release is v1.1.0, published Sep 4, 2026. appsgit only lists MCP servers with a commit in the last six months.