PostgreSQL MCP Server
databases By Anthropic
Description
Enables agents to inspect schemas, execute read-only queries, and analyze PostgreSQL database tables safely.
Install & Run Command
npx -y @modelcontextprotocol/server-postgres
Use this command in your Model Context Protocol client environment (e.g., Claude Desktop config or other orchestration transport setups).
mcp_config.json Snippet
Add this configuration block inside your local client mcpServers section:
"mcpServers":
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost:5432/mydb"
]
}
}
} Server Details
Stars & Popularity ⭐️ 87.2k
Author Anthropic
Category databases
Status Active / Stable
⚡ Try in Config Builder ← Back to Registry