Model Context Protocol (MCP) gateway

One hosted gateway.
Every MCP link stays under control.

datamcp is a hosted Model Context Protocol gateway for PostgreSQL 12+, MySQL, and OpenAPI 3.x. It creates remote HTTPS MCP links with separate client authentication, source-specific policy, and individual revocation.

PostgreSQL, MySQL, and OpenAPIPrivate PostgreSQL through Local AgentOAuth 2.0 + PKCE
datamcp gatewayProduction workspace
All systems operational
Hosted MCP links3independently revocable
Backend secrets in clients0kept connection-side
Policy checksLivebefore each operation
Each link has its own client authentication and source policy.

What the gateway changes

Connect the backend once. Give every AI client only what it needs.

A direct MCP server exposes tools. datamcp adds the hosted endpoint, client authentication, per-link policy, backend credential isolation, and individual revocation around supported sources.

01

Add a real source

Connect PostgreSQL 12+, MySQL, or an OpenAPI 3.x contract. Private PostgreSQL can connect through Local Agent Tunnel.

PostgreSQLMySQLOpenAPI
02

Create a link for one job

Choose the source, tables or methods, access mode, environment, and people who may use that link.

CLAUDE / PRODUCTIONRead onlycustomers · subscriptions · tickets
03

Revoke the client, not the backend

Disable one MCP link without redistributing or rotating the database password for every other client.

Cursor QA

The control layer

Four boundaries you can explain to a security reviewer.

Gateway policy narrows access; it never replaces the permissions already enforced by PostgreSQL, MySQL, or the upstream API.

Read the permission model →
Client identityOAuth 2.0 + PKCE or API keys

The AI client proves who it is without receiving the backend credential.

MCP-link policySource-specific permissions

Use read-only, approved database operations, table scope, or allowed OpenAPI methods.

Backend authorizationLeast-privilege credentials still apply

The database role or upstream authorization remains an independent boundary.

Revocation and evidenceDisable one link; review database activity

Database query execution and permission denials are reviewable. OpenAPI calls remain in upstream logs.

Choose the operating model

Use a hosted gateway when access must outlive one laptop.

A local or self-operated MCP server can be the right choice when infrastructure ownership matters more than managed access and remote availability.

Operate it yourself

You need full ownership of the MCP runtime.

  • Local-only or self-hosted deployment
  • Your team owns authentication and policy
  • Your team maintains transport and updates
  • Your infrastructure handles monitoring
  • Your process handles credential rotation
Compare hosting models →

Hosted MCP gateway FAQ

Architecture questions, answered plainly.

What datamcp manages, what remains your responsibility, and where the product deliberately stops.

01

What does MCP mean on this page?

MCP means Model Context Protocol, the protocol for exposing tools and context to AI clients. Here it does not refer to Minecraft or another use of the acronym.

02

What is an MCP gateway?

A Model Context Protocol (MCP) gateway sits between AI clients and backend systems. It exposes or routes MCP tools while centralizing client authentication, permission checks, backend credential handling, and revocation. Logging support depends on the gateway and source type.

03

How is an MCP gateway different from an MCP server?

An MCP server exposes tools for one system or capability. A gateway adds a managed control layer around those tools and backend connections. datamcp provides both the hosted MCP endpoint and gateway controls for PostgreSQL, MySQL, and OpenAPI sources.

04

Is an MCP gateway the same as an MCP proxy?

The terms overlap, but a proxy usually focuses on forwarding traffic while a gateway also centralizes authentication, authorization, credential isolation, and activity review. datamcp creates hosted MCP endpoints for PostgreSQL, MySQL, and OpenAPI connections.

05

How does MCP authentication work in datamcp?

AI clients can authenticate to datamcp with an API key or OAuth 2.0 with PKCE. That client credential is separate from the database password or upstream API credential stored on the connection.

06

What can datamcp connect to?

datamcp supports PostgreSQL 12 and newer, MySQL, and REST APIs described by OpenAPI 3.x or Swagger documentation. Private PostgreSQL can connect through Local Agent Tunnel. Each source can have multiple MCP links with different permissions and users.

07

Can the gateway connect to PostgreSQL without public inbound database access?

Yes. Run @datamcp/agent on EC2, a VPS, or Docker where it can reach PostgreSQL. The agent initiates an outbound connection. The password stays on the agent machine, while SQL queries and results pass through datamcp cloud.

08

Does every AI client share the same access?

No. Create separate MCP links for tools, environments, or people. A production ChatGPT link can be read-only while an internal Cursor link has a different table or API method scope.

09

Is datamcp a hosted MCP gateway?

Yes. datamcp hosts the remote MCP transport and control plane, so clients connect over HTTPS. You do not need to keep a local process or custom gateway deployment running.

10

Is datamcp an open-source or self-hosted MCP gateway?

No. datamcp is a hosted service and does not currently provide an open-source, self-hosted, or on-premise edition. Teams that require self-hosting should evaluate a self-operated gateway and budget for authentication, policy, secrets, updates, monitoring, and incident response.

11

Does an MCP gateway replace backend authorization?

No. Gateway policy narrows what one MCP link may request, while PostgreSQL roles, MySQL accounts, or upstream API authorization remain independent boundaries. Use least-privilege backend credentials even when the gateway provides per-link controls.

Keep exploring

Related guides.

GUIDE

Local Agent Tunnel

Connect private PostgreSQL to the hosted gateway without opening inbound database access.

GUIDE

Hosted MCP memory server

Give compatible AI clients shared project memory with structured appends, filtered search, and compact handoff context.

GUIDE

MCP governance for production teams

Build the server inventory, ownership model, approval process, change control, access reviews, and incident runbook.

GUIDE

MCP authorization and permissions

Separate OAuth identity, scopes, tool policy, resource access, backend grants, denial handling, and revocation.

GUIDE

MCP logging and observability

Design an event model that supports debugging, security review, incident reconstruction, and safe retention.

GUIDE

MCP security checklist

Audit authentication, least privilege, credentials, logs, revocation, and incident response before production access.

GUIDE

Postgres AI access security kit

Create a non-owner PostgreSQL role, review grants and RLS, test denied operations, and keep an emergency revocation path.

GUIDE

MySQL AI access security kit

Create a host-scoped account, require TLS, grant explicit tables, inspect effective access, and test emergency revocation.

GUIDE

MCP gateway vs. MCP server

Compare direct servers, remote servers, and managed gateways with a production decision checklist.

GUIDE

MCP server hosting options

Compare managed, self-hosted, and local MCP across transport, security, cost, maintenance, and operational ownership.

GUIDE

MCP proxy vs. gateway

Compare transport forwarding with authentication, policy, credential isolation, and link revocation.

GUIDE

PostgreSQL MCP gateway

Give AI clients live schema and query access with explicit database boundaries.

GUIDE

MySQL MCP gateway

Publish hosted MySQL schema and query tools without distributing the database password.

GUIDE

OpenAPI to MCP gateway

Expose discovery tools and approved REST API calls through a managed remote MCP link.

Start with one link

Start with one hosted MCP gateway link

Connect one direct PostgreSQL or MySQL source and create one managed MCP link free forever. Starter and higher plans unlock advanced source types.