PostgreSQL (MCP) MCP Config
Query and manage PostgreSQL databases directly from your AI agent. Read schemas, run queries, and manage data.
Config URL
Use this URL in any MCP-compatible client to fetch the config automatically.
https://mcp-bridge.pages.dev/config/postgres.jsonConfiguration JSON
Use curl https://mcp-bridge.pages.dev/config/postgres.json to fetch programmatically.
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y","@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "postgresql://user:pass@host:5432/db"
}
}
}
}How to Use
Cursor
Go to Cursor Settings → MCP Servers → Add with the JSON above.
CLI / curl
Fetch the config programmatically:
curl https://mcp-bridge.pages.dev/config/postgres.jsonEnvironment Variables
DATABASE_URLReplace postgresql://user:pass@host:5432/db with your actual database url
Endpoints
POST
/queryExecute SQL query
GET
/schemaGet database schema