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.
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.
Add a real source
Connect PostgreSQL 12+, MySQL, or an OpenAPI 3.x contract. Private PostgreSQL can connect through Local Agent Tunnel.
Create a link for one job
Choose the source, tables or methods, access mode, environment, and people who may use that link.
Revoke the client, not the backend
Disable one MCP link without redistributing or rotating the database password for every other client.
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 →The AI client proves who it is without receiving the backend credential.
Use read-only, approved database operations, table scope, or allowed OpenAPI methods.
The database role or upstream authorization remains an independent boundary.
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.
One source needs several controlled remote links.
- Hosted HTTPS endpoint
- Different permissions per client
- Independent link revocation
- No local MCP runtime to keep online
- Database query activity for review
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
Hosted MCP gateway FAQ
Architecture questions, answered plainly.
What datamcp manages, what remains your responsibility, and where the product deliberately stops.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Local Agent Tunnel
Connect private PostgreSQL to the hosted gateway without opening inbound database access.
GUIDEHosted MCP memory server
Give compatible AI clients shared project memory with structured appends, filtered search, and compact handoff context.
GUIDEMCP governance for production teams
Build the server inventory, ownership model, approval process, change control, access reviews, and incident runbook.
GUIDEMCP authorization and permissions
Separate OAuth identity, scopes, tool policy, resource access, backend grants, denial handling, and revocation.
GUIDEMCP logging and observability
Design an event model that supports debugging, security review, incident reconstruction, and safe retention.
GUIDEMCP security checklist
Audit authentication, least privilege, credentials, logs, revocation, and incident response before production access.
GUIDEPostgres AI access security kit
Create a non-owner PostgreSQL role, review grants and RLS, test denied operations, and keep an emergency revocation path.
GUIDEMySQL AI access security kit
Create a host-scoped account, require TLS, grant explicit tables, inspect effective access, and test emergency revocation.
GUIDEMCP gateway vs. MCP server
Compare direct servers, remote servers, and managed gateways with a production decision checklist.
GUIDEMCP server hosting options
Compare managed, self-hosted, and local MCP across transport, security, cost, maintenance, and operational ownership.
GUIDEMCP proxy vs. gateway
Compare transport forwarding with authentication, policy, credential isolation, and link revocation.
GUIDEPostgreSQL MCP gateway
Give AI clients live schema and query access with explicit database boundaries.
GUIDEMySQL MCP gateway
Publish hosted MySQL schema and query tools without distributing the database password.
GUIDEOpenAPI 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.