Home / Integrations / Postgres
Integration

Connect your AI to Postgres

UniversalBench lets your AI query and update your database through one connection, using a connection string you store once. It works with any PostgreSQL-compatible database. It works with Claude, ChatGPT, Gemini, and any other MCP-compatible AI through one connection.

Connect Postgres in three steps

Get your connection string

Take your database connection string in the form postgresql://user:password@host:5432/dbname. Any PostgreSQL-compatible database works.

Save it once in the secret vault

Store the connection string in your UniversalBench secret vault under the name DATABASE_URL. That name unlocks the database capability automatically.

Connect and ask

Add the MCP URL to your AI and ask. Your AI runs filtered reads, raw SQL, keyword search, and inserts or updates, and only the rows that matter come back.

# add this one URL to Claude, ChatGPT, or Gemini https://universalbench-mcp.penantiaglobal.workers.dev/u/<your-key> # save once in your UniversalBench secret vault DATABASE_URL = postgresql://user:password@host:5432/dbname # the database capability unlocks automatically
UniversalBench dashboard secret vault: enter the secret name on the left such as GITHUB_TOKEN, paste the secret value on the right, then save
The secret vault in your UniversalBench dashboard. Enter the secret name on the left, paste the secret value on the right, then Save. The matching capability unlocks automatically.

What your AI can do

Is there a Postgres MCP server to install?

No separate server to install or host. UniversalBench is the MCP server, and Postgres is one of the things it does for your AI behind a single connection. Save your credential once in the encrypted secret vault under DATABASE_URL and it is used automatically after that.

The same connection also handles reading and updating your data from your AI and more, so one setup covers far more than Postgres alone.

Frequently asked questions

How do I connect my AI to Postgres?

First, take your database connection string in the form postgresql://user:password@host:5432/dbname. Any PostgreSQL-compatible database works. Then save it in your UniversalBench secret vault under the name DATABASE_URL, which unlocks the capability automatically. Finally, add the one MCP URL to your AI and ask in plain language.

Where do I put the credential?

In your UniversalBench secret vault, under the name DATABASE_URL. It is encrypted, used automatically by the matching capability, and never shown back to you or sent to the model in plain text.

Does this work with ChatGPT and Gemini?

Yes. UniversalBench connects through one standard MCP link, so it works with Claude, ChatGPT, Gemini, and any MCP-compatible AI. You paste one URL and the capability is there.

More integrations

Connect your AI to Postgres free

One URL, first 1,000 calls free, no credit card.

Get your API key →