mcpopen-sourceverified
Postgres MCP Server
Read-only SQL access with schema introspection
Connect your agent to Postgres with safe, read-only queries by default. Ships with schema inspection, query plans and role-scoped access.
Install Postgres MCP Server
Paste into claude_desktop_config.json
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres"
]
}
}
}Run in your terminal
claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres Paste into .cursor/mcp.json
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres"
]
}
}
} After adding the server, fully restart your MCP client. Replace <placeholders> (tokens, paths) with your own values.
Facts
- Stars
- ★ 9,200
- Maintainer
- Anthropic (official)
Trust score, capability surface (filesystem, shell, network) and risk flags — reviewed in your browser.