PostgreSQL / Model Context Protocol (MCP)

Hosted PostgreSQL MCP server.Scoped access for AI tools.

Connect PostgreSQL to Claude, ChatGPT, and your coding tools. Set permissions for each MCP link, keep database credentials out of the client, and review queries in datamcp.

14-day trial for eligible users. Card required.

01Developer or Team02Local Agent included03Per-link SQL permissions
Connect
Connect PostgreSQLDirect or private tunnel
Read the PostgreSQL setup guide
Hosted MCP gateway

One remote HTTPS endpoint between your systems and AI clients.

AuthenticationPer-link accessRevocationQuery activity
Live route protected
Automate
Use datamcp in your workflowsNative apps and remote MCP clients
ZapierApp · Betan8nMCP Client Tool
MakeComing soonSoon
ActivepiecesComing soonSoon

Use the DataMCP app in Zapier or a compatible remote MCP client.

Use
Open in AI clientsOne link, many workflows
View client setup
Connect cloud and private infrastructure
Supabase
Neon
AWS
Google Cloud
DigitalOcean
Docker
Private PostgreSQL

Direct answer

What is a hosted PostgreSQL MCP server?

A hosted PostgreSQL MCP server exposes schema and allowed SQL query tools to compatible AI clients through a remote Model Context Protocol endpoint, without running an MCP process on every developer machine.

Source
PostgreSQL 12+ using a standard database connection, including hosted PostgreSQL providers such as Neon and Supabase.
Client access
Each AI client connects to a remote HTTPS MCP link using separate datamcp authentication.
Credentials
Use an encrypted direct connection, or keep the password on your own machine with Local Agent Tunnel.
Permissions
Choose read-only, read-write, full-access, or custom table-level operations for each MCP link, bounded by the database role.
Activity
Review PostgreSQL query execution and denied operations, then export the visible activity page as CSV or JSON.
Best fit
Teams or individuals that need a managed remote PostgreSQL MCP endpoint, separate client access, and independent link revocation.

The production path

PostgreSQL context for AI, with boundaries

A PostgreSQL MCP server is a database MCP server that translates requests from AI clients into PostgreSQL schema and query tools. A local server usually runs beside the AI client and reads a connection string from a configuration file. That is convenient for experiments, but it becomes difficult to manage when a team, a production database, or multiple AI clients are involved.

datamcp runs the MCP layer for you. Add a PostgreSQL connection once, then create separate MCP links for Cursor, Claude, ChatGPT, or teammates. Each link has its own authentication and permission scope.

If PostgreSQL cannot accept an inbound connection from datamcp cloud, use Local Agent Tunnel. Run @datamcp/agent inside the environment that already reaches the database. The password stays on that machine, while SQL requests and results pass through datamcp cloud.

Need the implementation details first? Compare the best PostgreSQL MCP servers, build a non-owner database role with the Postgres AI access security kit, or follow the Cursor and PostgreSQL setup tutorial.

What you get

Production access.
Without production guesswork.

01 / CAPABILITY

Live schema discovery

Expose tables, columns, foreign keys, indexes, and AI-generated descriptions so the client works from your real data model.

02 / CAPABILITY

Scoped SQL permissions

Start with SELECT-only access or choose read-write, full, and per-table permissions for each MCP link.

03 / CAPABILITY

Encrypted credentials

PostgreSQL connection strings are encrypted at rest with AES-256-GCM and never copied into AI client configuration files.

04 / CAPABILITY

PostgreSQL query activity

Review query execution details and permission denials, then export the visible activity page as CSV or JSON.

05 / CAPABILITY

One connection, many clients

Create separate MCP links for Cursor, ChatGPT, Claude, VS Code, or team members without sharing one credential.

06 / CAPABILITY

Hosted transport

Use a stable HTTPS MCP endpoint without running Node.js, Docker, or a long-lived local process.

Source to controlled MCP link

One. Two.
Three.

Connect the source once. datamcp handles discovery, hosted transport, client authentication, and link policy.

Read the setup guide
  1. 01
    Connect PostgreSQL

    Paste a connection string. datamcp verifies TLS, connects to the database, and extracts the schema.

  2. 02
    Choose permissions

    Create an MCP link and select read-only, read-write, full, or custom table-level access.

  3. 03
    Add the MCP URL

    Copy the generated configuration into your AI client and start working with the real schema.

Build or use datamcp

Hosted PostgreSQL MCP vs. running it yourself

See what stays on your engineering backlog when the MCP runtime and control layer are managed for you.

CAPABILITYdatamcpLocal MCP server
DeploymentHosted HTTPS endpoint

Install and run a process per machine

CredentialsEncrypted and kept server-side

Stored in local config or environment

PermissionsPer-link and per-table controls

Usually inherits one database role

PostgreSQL query activityQueries and denied operations available for review

Build or configure separately

Team accessSeparate identities and revocation

Shared config and manual rotation

Frequently asked questions

Questions before
you connect.

Clear answers about architecture, access, credentials, and supported clients.

01

What is a PostgreSQL MCP server?

A PostgreSQL MCP server exposes database tools through the Model Context Protocol so AI clients can inspect schemas and run allowed queries. datamcp hosts that server and adds client authentication, per-link permissions, encrypted credentials, and PostgreSQL query activity review.

02

Is a PostgreSQL MCP server the same as a database MCP server?

A database MCP server is the broader category. This page covers a PostgreSQL MCP server built specifically for PostgreSQL 12 and newer, including compatible services such as Supabase, Neon, and managed PostgreSQL providers.

03

Does datamcp work with Supabase, Neon, and AWS RDS?

Yes. datamcp works with PostgreSQL 12 and newer, including Supabase, Neon, AWS RDS, Google Cloud SQL, Azure Database for PostgreSQL, Heroku, DigitalOcean, and self-hosted PostgreSQL.

04

Can I make the PostgreSQL MCP server read-only?

Yes. Each MCP link can be read-only, read-write, full access, or custom. Custom permissions let you control operations table by table while the underlying database role remains an additional security boundary.

05

Will Cursor or ChatGPT see my database password?

No. With a direct connection, the connection string stays on datamcp encrypted at rest with AES-256-GCM. With Local Agent Tunnel, the password stays on the agent machine. AI clients receive a hosted MCP endpoint and datamcp authentication, not the PostgreSQL password.

06

Can datamcp connect to PostgreSQL in a private VPC or on a VPS?

Yes. Create a Local Agent connection and run @datamcp/agent on EC2, a VPS, or Docker where it can reach PostgreSQL. The agent connects outbound, so PostgreSQL does not need public inbound access. SQL requests and results still pass through datamcp cloud.

07

Which AI clients can connect?

The same hosted MCP endpoint works with Cursor, Claude, ChatGPT, VS Code, Windsurf, Claude Code, and other clients that support remote MCP servers.

Start with one link

Create a hosted PostgreSQL MCP server

Connect PostgreSQL and create a scoped MCP link on Developer or Team. Both plans include Local Agent for private or self-hosted PostgreSQL.

Card required for an eligible 14-day trial. One trial per user across workspaces and plans. Cancel before the first charge date shown in Stripe to avoid the selected subscription charge.