Skip to content
MCP-Bridge
Databases

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.json

Configuration 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

Claude Desktop

Paste the config JSON into your claude_desktop_config.json.

Full instructions →

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.json

Environment Variables

DATABASE_URL

Replace postgresql://user:pass@host:5432/db with your actual database url

Endpoints

POST/query

Execute SQL query

GET/schema

Get database schema