Integration · PgBeam + Claude Code
Give Claude Code safe Postgres access
Paste a hosted MCP URL into Claude Code and your agent gets policy-enforced query, list_tables, describe_table, and explain tools over your own Postgres. No server to run, no real credentials handed out.
Claude Code can run SQL the moment it has a database connection, which makes a hosted MCP endpoint the safest way to give it one. You connect your database once, issue an agent credential, and paste the URL into your MCP config. Every tool call is enforced against the credential's policy in the wire protocol.
Connect Claude Code in one step
Paste the hosted MCP URL and bearer token into your config. The policy applies to every tool call.
{
"mcpServers": {
"pgbeam": {
"url": "https://mydb.proxy.pgbeam.app/mcp",
"headers": { "Authorization": "Bearer pba_xxx" }
}
}
}Four tools, one policy engine
The endpoint exposes query, list_tables, describe_table, and explain. Catalog introspection always works, so Claude Code can discover the schema it is allowed to read before it queries.
Every call runs through the same policy engine as a guarded connection string. A blocked statement returns an LLM-readable reason in the tool result, so the agent can correct itself and retry within the rules.
Nothing to host
There is no MCP server process to deploy, patch, or scale. The endpoint is hosted and runs on a globally distributed proxy, so tool calls execute from the region nearest your database.
Each agent credential has its own URL and bearer token. Revoke either one instantly, or hit the kill-switch to stop the agent mid-session.
Paste one URL
Add the URL and bearer token to .mcp.json. The four tools appear in Claude Code once connected.
Enforced at the wire
Read-only, table and column allowlists, and budgets are checked in the Postgres wire protocol before a statement reaches your database.
PII masking
Redact, null, or hash sensitive columns so the model never sees the raw values.
Full audit trail
Every statement recorded with its decision, reason, rows, bytes, and latency, exportable for review.
More integrations
Questions
Give Claude Code safe Postgres access
Start with a 14-day free trial. No credit card required.
Technical preview. For internal testing only.
Get Started