Read-only PostgreSQL MCP — your AI writes SQL, we validate and run it.
Settings → Apps → Create app → Server URL:
https://querygatev0.vercel.app/sse
Paste your Postgres URL in chat once — the AI calls connect and gets an
access_token. Use that JWT on all later requests (no raw URL in headers).
{
"mcpServers": {
"querygate": {
"url": "https://querygatev0.vercel.app/sse",
"headers": {
"Authorization": "Bearer <access_token from connect>"
}
}
}
}
Cursor / Claude remote (Streamable HTTP): https://querygatev0.vercel.app/mcp
Ready-to-copy JSON: /setup
{
"mcpServers": {
"querygate": {
"command": "node",
"args": ["/path/to/querygate/dist/cli.js", "--stdio"],
"env": {
"DATABASE_URL": "postgres://user:password@host:5432/mydb"
}
}
}
}
Or omit DATABASE_URL from env — user pastes their connection string in chat, then the AI calls connect with database_url.