apitell Start free
LEARN · MCP GATEWAY

What is an MCP gateway? vs API gateway, MCP server

What is an MCP gateway, how it differs from an API gateway, an MCP server and an MCP proxy, and what to check before you trust one with your API keys.

The short answer

An MCP gateway is one MCP server that sits between your AI clients and many APIs. Claude, ChatGPT, Cursor, VS Code or your own agent connect to a single MCP URL. The gateway decides who is asking, what they may reach, adds the right credential for each API and records every call.

Without a gateway, every API is its own MCP server, config entry and API key, repeated on every laptop and in every client. With a gateway, it is one address and one sign-in.

A useful way to picture it for non-developers: it works like a password manager for AI agents, except the agent never gets the password.

Why MCP gateways exist

The Model Context Protocol gave AI clients a standard way to call tools. It did not say how to run dozens of them safely. Teams hit the same four problems:

  • Sprawl. One MCP server per API, per client, per person. Ten APIs and four clients is forty config entries to keep in sync.
  • Keys on disk. Most local MCP servers read an API key from an env block in mcp.json or claude_desktop_config.json. That key sits in plaintext on every machine that uses it.
  • No shared control. Each server decides on its own what the model may do. There is no single place to say “reads are fine, deletes need a human”.
  • No shared record. When something goes wrong, there is no one log that says which agent called which API, when, and for whom.

A gateway moves all four into one place.

MCP gateway vs MCP server

An MCP server exposes tools for one system. The GitHub MCP server gives an agent GitHub tools. The Stripe MCP server gives it Stripe tools. Each server usually holds the credential for its API and trusts whoever can reach it.

An MCP gateway is also an MCP server, from the client’s point of view, but it serves many APIs behind one address and adds the controls a single server rarely has:

MCP server MCP gateway
Scope One API Many APIs, one URL
Credentials Usually in the client config or the server’s env Held by the gateway, never sent to the client
Client sign-in Varies: none, a pasted key, sometimes OAuth One OAuth sign-in for everything behind it
Write control Whatever the server exposes Policy per client and per API, optional human approval
Audit A log per server, if any One log for every call
Offboarding Rotate each key wherever it was pasted Revoke the person or the client once

You can run a gateway in front of existing MCP servers, or a gateway can talk to the APIs directly. Apitell does the second: it calls the APIs’ own HTTP routes, so there is no MCP server per API to install or host.

MCP gateway vs API gateway

An API gateway (Kong, Apigee, AWS API Gateway, NGINX) sits in front of your API and protects it from callers. It terminates TLS, checks API keys or JWTs, applies rate limits and routes requests to your services. It speaks HTTP. It knows nothing about models, tools or prompts.

An MCP gateway sits in front of AI clients and protects everything they reach. It speaks MCP to the client and HTTP to the APIs. Its questions are different:

  • Which person and which AI client is this, and what did they agree to at sign-in?
  • Which of the connected APIs may this client see at all?
  • Is this operation a read or a change, and does a change need a human first?
  • Which credential belongs on this call, and to which host may it go?

They also live on different sides of the call. Your API gateway stays where it is; an MCP gateway calls your API through it like any other client, with a credential your API gateway already accepts. You do not replace one with the other.

MCP gateway vs MCP proxy

“MCP proxy” usually means something smaller: a process that forwards MCP traffic from one transport to another. A common case is turning a local stdio server into a remote HTTP one, or the reverse, so a client that only speaks one transport can reach a server that only speaks the other.

A proxy moves messages. A gateway makes decisions about them. If a product only forwards traffic and passes your tokens through unchanged, it is a proxy, and the MCP authorization spec is explicit that an MCP server must not pass the client’s token through to upstream APIs. A gateway uses two separate credentials: one the client signs in with, and one for the upstream API that the client never sees.

What to look for in an MCP gateway

“Gateway” is a marketing word as much as a technical one. Before you connect production APIs, check these:

Credential separation

The most important property. Ask where the API keys live and who can read them.

  • The client should hold only a sign-in for the gateway, never an upstream API key.
  • The upstream credential should be encrypted at rest, added at the last hop, bound to one API host, and never returned by any tool or API.
  • A tool description or a crafted response must not be able to redirect a credential to another host.

If an agent can read a key, a prompt injection can exfiltrate it. If the agent never has it, there is nothing to steal.

Standard sign-in for clients

Clients should connect with standard MCP OAuth 2.1, so users sign in in a browser and nothing secret lands in a config file. At sign-in, a user should be able to pick which APIs the client may reach and whether it may make changes.

Approvals for changes

Reads are usually safe to run. Creating, updating and deleting are not. Look for writes that are off by default, can be allowed per client, and can require a human approval per call, ideally in the chat itself or in a place your team already watches.

Policies

Allow or deny specific operations per API. Limit arguments (an amount under a threshold, a fixed set of project IDs). Rate-limit per agent so a loop cannot burn your API quota. Have a kill switch.

An audit trail you can use

One line per call: who, which client, which API, which operation, status, time. It should not store prompts or payloads you did not ask it to keep. You should be able to search it, export it and stream it to your SIEM.

Open source where it counts

This component sits between your agents and your data. You should be able to read the code that validates and sends calls, and run it yourself.

Any API, not a fixed catalog

A catalog of popular APIs is convenient, but you will also need your internal APIs. Check whether adding one means building and hosting an MCP server anyway.

Where Apitell fits

Apitell is a secure MCP gateway for AI agents. Every client connects to one URL:

{ "mcpServers": { "apitell": { "url": "https://mcp.apitell.com/mcp" } } }

The client signs in with MCP OAuth 2.1. That sign-in is key A. It is checked at the edge and stripped there. Each API’s own credential, key B, comes out of the vault for one call to one host. The two never meet, so the agent, the model and the chat never see an API key. The model sees stripe · connected, not the key.

The agent gets four tools, however many APIs you connect:

  • ai_discover lists what is connected.
  • ai_search finds the operation for a question.
  • ai_describe reads one operation in full.
  • ai_call calls it; several calls can go in one batch.

Changes are off by default. You allow them per client at sign-in and can require an approval for each one, in the chat, in the console or in Slack. Policies limit operations, arguments and rates. The audit log keeps one line per call and never the payload.

APIs come from three places: popular APIs out of the box, any HTTP API that describes itself in one file at <base>/ai (the open AI Context spec), and APIs described in the Apitell registry. The bridge that reads those files and the spec are open source. You can self-host the bridge for free; the hosted gateway adds the vault, OAuth sign-in, approvals, policies, the audit log and teams.

Try it

Create a free workspace, connect one API with a key or an OAuth sign-in, and add https://mcp.apitell.com/mcp to your client. Then read how the credential vault keeps key B away from the model, see Apitell compared with running one MCP server per API, or go straight to connecting Claude.