Questions readers ask: Do I need an MCP gateway if I only run a few MCP servers?

Shared access, scattered credentials, and audit duties matter more than server count.

An MCP gateway becomes necessary because of what your deployment allows. Shared access, scattered credentials, sensitive data, and audit requirements can make a gateway necessary even with two or three servers. Assess whether direct connections still give you control over who can do what, with which credentials, and with what record afterward.

Why server count is the wrong measure of gateway necessity

Only a few servers, so surely everything is fine. But counting servers measures the size of the deployment. Shared access, shared credentials, audit requirements, and regulated data can exist at two servers as easily as at twenty.

Consider two deployments with three servers each. In one, a single developer has full visibility into every connection. In the other, six developers share the servers and paste credentials into local config files. The second deployment needs a way to govern access across people, rather than relying on one person's knowledge of their own setup.

What a gateway adds that individual MCP servers do not provide

An MCP proxy routes traffic from one agent to many servers through a single connection point. A gateway adds controls over that traffic. A common connection point alone does not establish who may invoke a tool, which credentials it may use, or what record the action leaves.

The MCP protocol introduced an OAuth 2.1 authorization framework that enables secure remote servers. But that framework does not give an organization its own authorization rules, policy enforcement, data protection, or audit trails. Those controls belong in the gateway layer. Authentication establishes who or what is calling, while per-caller tool authorization restricts which tools that identity can invoke. Neither replaces the other.

Credential brokering keeps reusable downstream secrets away from agents by holding and exchanging them centrally. Execution approval controls can deny tool calls by default, while content inspection examines arguments and results for poisoned inputs or sensitive data. A tamper-evident audit record preserves evidence of every call. These jobs require controls beyond secure transport. HTTPS protects traffic in transit, but it does not decide whether an authenticated caller should be allowed to take a given action.

The credential problem that makes even two or three servers risky

Picture a developer who has three servers and shares a single.env file with six teammates. The server count looks modest. The credentials already belong to a shared system, however, and manual credential hygiene is no longer a realistic control. Access depends on copies of secrets spread among people rather than on a central rule that can be changed and enforced.

Without one place to store secrets, each AI agent has to manage its own credentials. The same API keys and tokens scatter across config files and environment variables in development, staging, and production. A complete inventory becomes hard to maintain. Without that inventory, secrets rarely get rotated and can stay valid with no end date.

The exposure is also concentrated inside individual files. One MCP configuration file can contain credentials for multiple services, so one read operation can compromise them all. A gateway changes that arrangement through credential brokering. It exchanges the credential an agent presents for the downstream credential the server needs, without giving the agent a reusable downstream secret.

Demonstrated exploits that required no scale to succeed

JFrog Security Research identified remote code execution in the mcp-remote package when it connected to untrusted MCP servers. The vulnerability was CVE-2025-6514. Its relevant condition was a connection to a malicious server. The failure sat at a trust boundary that a small deployment could cross.

Invariant Labs documented a poisoned math tool in April 2025 that read SSH keys and exfiltrated them encoded in a math function parameter. The attack left no persistent trace behind. The gap between the tool's apparent purpose and its actual behavior was the opening, without any need for a sprawling deployment.

Invariant Labs also documented a 2025 attack involving the official GitHub MCP server. Malicious content in a public GitHub issue induced a connected agent to expose information from a private repository. The agent crossed those two trust levels because it could both read content and call tools.

The OWASP Top 10 for LLM Applications 2025 names three risks that meet in this call path, namely excessive agency (LLM06), sensitive information disclosure (LLM02), and prompt injection (LLM01). A model that reads a poisoned document can also have access to a tool that writes to production. These cases demonstrate that small deployments are vulnerable to exploits. The blast radius of a poisoned tool call follows what the agent can reach.

Where compliance frameworks draw the line that server count ignores

Regulated data is another reason to put controls in one place. If that data flows through an MCP server, the deployment enters the scope of the controls governing it, regardless of server count. A small integration is not outside the boundary merely because it is small. In practice, organizations need to check whether its tool calls receive the same oversight as the systems they reach.

The EU AI Act, the NIST AI Risk Management Framework, and ISO/IEC 42001 do not automatically extend an organization's model-focused review to every MCP tool call. An organization has to map its controls there explicitly. It can complete a conformity assessment, map controls to the NIST framework's four functions of Govern, Map, Measure, and Manage, and hold ISO/IEC 42001 certification while still leaving that gap. Certification can leave the agent's accessible tools unspecified and its calls to servers without a covering policy or audit requirement.

A well-configured gateway supplies operational controls for those calls: centralized audit logs, scoped permissions, and a kill switch. Without the gateway, individual MCP server authors must implement the controls, leaving the organization to reconcile fragmented enforcement and records. The requirement follows the data and the action. It does not wait for the deployment to reach a particular size.

The honest case for skipping a gateway at genuine small scale

The objection to a gateway is straightforward. A solo developer using their own accounts, with full visibility, no shared credentials, and no regulated data may have no coordination problem to solve. Adding a gateway still means another deployment to run, another point that can fail, and more work to keep it running. In that setting, direct connections can be enough. A security component should provide a control that the deployment needs.

Small-scale guidance offers different numerical cutoffs, which is another reason not to treat any one count as decisive. The useful distinction is between personal access that one developer fully understands and shared access that needs rules across people. A single developer against their own accounts usually does not need a gateway. But that condition rarely survives team growth. Once other people join, personal knowledge stops being a dependable inventory of the whole deployment.

There is also a genuine security trade-off. A gateway can become a single point of compromise because it concentrates credentials and control. Centralization makes the risk more visible and more defensible than secrets scattered through local files, while still requiring protection.

The four conditions that override server count as the deciding factor

The decision can therefore rest on four conditions. Each condition marks a loss of control that direct, per-developer connections do not resolve on their own. For a team choosing when to introduce a gateway, any one is enough.

If more than one person shares access to any MCP server, a gateway is not optional. Shared access needs rules tied to people. Where credentials are shared too, rotation, attribution, and revocation become immediate problems that per-developer config files cannot reliably manage. The trigger is multi-user sharing.

If any server reaches a system holding regulated or sensitive data, including PII, financial records, source code, and customer data, a gateway is required. The data determines which audit requirements apply. A small deployment does not reduce the need to restrict access to those systems or account for actions taken against them.

If actions taken through MCP must be attributed to a specific user, a gateway is not optional. This applies to audits, incident response, and access reviews. Knowing that a shared credential was used is not the same as knowing which person was responsible.

If a second team is about to join the deployment, a gateway is not optional. The right time is before the team joins. Delayed adoption leaves credential sprawl and shadow usage to untangle after they have accumulated.

What to look for in a gateway once you decide you need one

Once one of those conditions applies, evaluation should focus on demonstrable controls. Caller identity and authentication must be tied to per-caller tool filtering. Upstream credential brokering must keep reusable downstream secrets away from agents, while execution approval controls govern whether calls proceed. Audit trails need usable export formats. Guardrails should inspect prompts and responses, including tool arguments and results, rather than treating authenticated traffic as automatically safe.

Deployment control belongs in the same evaluation. VPC, on-premises, and air-gapped options serve different deployment needs, while OpenTelemetry, metrics, and MCP-specific analytics determine how activity can be observed. Performance overhead, provider breadth, MCP and agent support, semantic caching, and open-source availability are also valid comparison dimensions. But convenience does not substitute for enforcement.

The network boundary deserves attention as well. A gateway can terminate traffic from outside and keep internal services from being directly exposed. That provides a foundation for zero-trust access and least-privilege enforcement at the tool-call level. Routing traffic through one place is only the starting point.

Teams wanting a unified path can also evaluate a platform that combines enablement, control, and security rather than assembling an agent builder, a gateway, and a security tool separately. That option can include a large catalog of MCP servers, OAuth and credential handling, and agent setup without engineering overhead. On the control side, the criteria include identity tied to every action through SSO and SCIM, real-time detection of tool poisoning, prompt injection, and intent drift, tamper-proof audit logs, and full OpenTelemetry tracing. Integration is a reason to evaluate a unified platform, which still has to prove the same controls as a point solution.

The practical next step is a proof of concept. Ask each candidate to show a filtered tool list for two separate identities, per-user credential revocation, a signed audit export, and a guardrail blocking a secret in a tool result. All four demonstrations are required for this test. A candidate that cannot produce them is a relay.