Opsphere
← All articles

MCP Gateway: What It Is and How Operations Teams Use One

MCP Gateway: What It Is and How Operations Teams Use One

Abstract gateway between servers and client

An MCP gateway is a single endpoint that sits between AI clients and the Model Context Protocol (MCP) servers they call. Instead of every client connecting to every server, the gateway handles routing, authentication and policy in one place. For DevOps and SRE teams, the useful question goes one step further: what should that endpoint expose? Our answer is operational intelligence across cloud, Kubernetes, observability, deployments, code, network and edge systems, reachable from Cursor, Codex, Claude and any other MCP-compatible client.

Opsphere
opsphere.io
Bring operational context into MCP
Opsphere unifies cloud, Kubernetes, observability and engineering context, helping teams investigate incidents through one operational intelligence platform.
Visit

TL;DR

  • Problem: Each AI client wiring up its own MCP servers means scattered credentials, duplicated configuration and no shared view of what agents are touching in production.
  • Takeaway: A gateway centralizes access. An operational gateway also centralizes understanding: atomic queries for simple questions, structured investigations for cross-system problems, with hypotheses, evidence and confidence attached.
  • Safety baseline: Read-only by default, tenant isolation, environment scoping, and source systems that stay authoritative.
  • Next step: Map the MCP servers and clients your team already uses, then decide which operational questions should go through one governed layer. The MCP Operational Gateway page shows how we approach it.

Table of Contents

What an MCP gateway is

MCP is the protocol that lets an AI client call tools exposed by a server. The protocol itself defines hosts, clients and servers. “Gateway” is an architectural pattern, not a role the specification defines.

AWS Prescriptive Guidance describes the pattern as a centralized proxy between MCP clients and servers. Without one, each agent must register every remote MCP server it might use. With one, the agent connects to a single endpoint that manages authentication, authorization, routing and protocol translation, and new servers and tools can be added dynamically.

That is the generic definition, and it covers a wide range of products. Some gateways are built to govern traffic to whatever servers a company registers. Others are built around a specific job. The rest of this article covers both: the mechanics every gateway shares, and what changes when the gateway is designed for operations work.

Why teams end up needing one

The pressure builds in a predictable order.

  1. One engineer connects an AI client to a Kubernetes MCP server. It works.
  2. A second tool is added for logs, a third for the cloud account, a fourth for deployments.
  3. A teammate uses a different client and repeats every configuration.
  4. Credentials sit in individual developer configs, and nobody can say which agent called which tool during last week’s incident.

At that point the problems are structural. Configuration multiplies with every client and server pair. Rotating a credential means touching every client. Tool names from different servers can collide. And the platform team has no single place to apply policy or see what agents are doing.

AWS makes the governance side explicit: authentication and authorization to both the MCP servers and the resources behind them, rate limiting to protect downstream systems, and operational metrics for tool usage all need an owner. A gateway is the natural place to put that owner.

How requests move through a gateway

Implementations differ, but the flow is consistent enough to learn once.

Routing and aggregation

The gateway merges the tool catalogs of the servers behind it and routes each call to the server that owns the tool. Microsoft documents this for its Application Gateway for Containers: an MCPRoute aggregates backend MCP servers behind one endpoint, namespaces capability names (for example, contoso-tools__get_order) and routes each invocation to the owning server, with up to 64 backends per route.

Namespacing matters more than it looks. Two servers that both expose a search tool would otherwise be ambiguous to the model.

A typical pipeline

The open-source MCPG project documents a fixed sequence: the transport resolves identity, the runtime checks protocol version and routes the operation, a chain of plugins runs before dispatch, the dispatcher calls the backend, and a second chain transforms the result on the way back. Red Hat’s Connectivity Link takes a different shape, built on Envoy with an MCP router, an MCP broker and a Kubernetes discovery controller. The router parses JSON-RPC and sets headers such as the tool name and session ID. The broker aggregates backends into a unified tool list.

MCP gateway request and response flow

The details differ by product. The pattern holds: identify the caller, decide what they may reach, route, then inspect and log.

Sessions and health

MCP sessions are stateful, so production gateways have to keep a session pinned to the instance that started it. Microsoft’s documentation covers best-effort session affinity, JWT validation, backend TLS and health checks, and recommends HTTPS for every production MCP endpoint.

Security: what a gateway should enforce

A gateway concentrates trust, so its design deserves the most scrutiny. Four controls matter most.

Scoped credentials. AWS gives a blunt example: an agent that inherits a user’s full admin credentials could delete a production database, while scoped-down credentials that grant only read and create access fail safely. Least privilege is the point of the exercise.

Tenant derivation from verified claims. NVIDIA’s DSX Agent Gateway documentation describes verifying JWT issuer, audience and signature, then deriving the tenant ID only from verified claims and rejecting header-based tenant expressions. Per-tenant rate limits follow from that identity.

Filtered discovery. The agent should only see the tools it is allowed to call. A smaller visible surface is also easier for a model to reason about.

Audit. Every call should leave a record that names who or what made it, which tool ran and what came back.

Security: what a gateway should enforce

The threat model also includes the tool layer itself. Hostile text returned by a tool can try to steer the agent, which is why teams look at tool boundary prompt injection defense alongside gateway policy: governance and enablement work best when they apply to the same traffic.

Gateway, server and direct connection

Pattern What it does Fits when
Direct connection A client talks to one MCP server for one system A single engineer, a few servers, local exploration
Proxy Relays calls, bridges transport, injects credentials for a connection One connection needs adapting
Gateway Aggregates servers and applies identity, policy and audit centrally Several people and clients share servers, and production access needs accountability

The client-side symptom is the same in every case: more servers, more clients, less visibility. The gateway is the point where that stops scaling linearly.

What an operational gateway adds

Governing access to tools is necessary. It does not by itself help an on-call engineer at 2 a.m. work out why checkout latency doubled.

That is the gap the Opsphere MCP Operational Gateway is built for. It exposes operational intelligence across cloud, Kubernetes, observability, deployments, code, network and edge systems through MCP, rather than being a generic pass-through for arbitrary servers. It does this at two levels.

Level one: direct atomic queries

Simple questions get simple answers. What is the state of this deployment? What do the recent logs for this service show? What does the route to this host look like? These are single-system lookups, and an AI client should be able to run them without orchestration overhead.

Level two: structured investigations

Cross-system problems are different. A latency spike might involve a deploy, a node-pool change, a downstream dependency and a cache. No single tool call answers it. A structured investigation works across those systems and returns something an engineer can check rather than a paragraph to trust:

  • Hypotheses: the candidate explanations, tested in parallel.
  • Evidence: the specific data supporting or contradicting each one.
  • Confidence: how strongly the evidence supports each hypothesis.
  • Timelines: what happened in which order across systems.
  • Verification conditions: what would confirm or rule out a conclusion.

The structure matters because it turns an AI answer into something reviewable. A reviewer can see what the conclusion rests on and what to check next.

Operational Context that outlives the chat

Investigation results and what was learned are kept as reusable Operational Context outside the AI client. When the next engineer opens Claude, Cursor or Codex, they work from the same context instead of starting a fresh conversation with nothing in it. Cursor, Codex, Claude and other MCP-compatible clients all reach the same operational layer, so the choice of client stops being a choice about what the team can know.

If your team lives in a terminal, the integration pages cover Claude Code, GitHub Copilot CLI, Warp and OpenCode. Incident channels can be covered too: see how operational context reaches Slackbot via MCP.

Guardrails that should be on by default

An operations gateway touches production, so the defaults carry weight. Ours are:

  • Read-only by default. The 300-plus operational tools are read-only. An AI client can investigate without being able to change anything.
  • Tenant isolation. One organization’s operational data stays separate from another’s.
  • Environment scoping. Access can be limited to specific environments, so a question about staging does not reach production.
  • Source systems remain authoritative. Your cloud account, cluster and observability stack stay the source of truth. The gateway connects to existing tools without requiring replacement and without duplicating telemetry.

The last point also addresses a common misreading. A gateway governs protocol access, credentials and call logging. Data freshness and quality live in the systems behind the tools, which is exactly why keeping those systems authoritative is the sound design.

For how we handle data and disclosure, see the security page and the list of subprocessors.

Deployment considerations

Whether you run a gateway locally, self-hosted or in the cloud, a few decisions come first.

  1. Hosting model. AWS describes three options: local, remote, or through a gateway. Local suits one engineer exploring. Shared, production-facing use points toward a gateway.
  2. Identity. Decide how people and agents authenticate, and keep client-to-gateway authentication separate from gateway-to-upstream credentials.
  3. Blast radius. A gateway that holds credentials for many systems is a high-value component. Scope those credentials to read access wherever the work is investigation.
  4. Context budget. Exposing every tool from every server to a model costs tokens and accuracy. Alibaba Cloud’s production paper on its MCP gateway reports scaling agent access to more than 3,000 tools with a retrieval layer that surfaces relevant ones, a reminder that curation is part of the job.
  5. Operations ownership. Someone owns uptime, upgrades and policy. For small teams, a managed operational layer removes that burden.

A realistic example

Take a five-person SRE team running EKS on AWS with a separate observability stack and a CI/CD pipeline. Alerts fire for elevated 5xx on a payments service.

Through direct connections, the engineer asks one client about pods, another about metrics and a third about recent deploys, then assembles the story by hand.

Through an operational gateway, the engineer starts an investigation from their own client. Hypotheses such as a bad rollout, a resource limit and a downstream dependency are tested in parallel. The result lists the evidence per hypothesis, a timeline that lines up the deploy with the first error, a confidence level for each, and the checks that would confirm the leading explanation. The engineer verifies in the source systems and the context is saved for whoever picks it up next.

No tool was replaced, nothing was duplicated, and nothing could be modified along the way.

How to decide

Use these criteria before choosing a gateway approach.

Question If yes
Do several engineers or clients share MCP servers? Centralize access behind a gateway
Do agents touch production systems? Require read-only defaults and environment scoping
Do you need to answer who ran which tool? Require per-call audit
Do incidents span cloud, Kubernetes, observability and deploys? Look for structured investigations, not only tool routing
Is the team too small to run another platform? Prefer a managed layer over self-operated infrastructure

Where to start

The Community plan is listed at 0 € per month, the Developer plan at 19 € per month and the Team plan at 500 € per month, with Enterprise and Custom Solutions also available. Individuals can begin with a single client connected to one environment. Teams can scale to a shared operational layer where every engineer’s AI client sees the same context. Plans and current terms are on the pricing page.

Opsphere

If your team is already wiring MCP servers into Cursor, Codex or Claude, connect them to one governed operational layer and run your next investigation through it. You can also explore the Web Client for remote infrastructure operations from the browser.

FAQ

What is an MCP gateway in simple terms?

It is a single endpoint between AI clients and many MCP servers. It handles routing, authentication, policy and logging so each client does not have to connect to every server on its own.

Is an MCP gateway the same as an MCP server?

No. A server exposes the tools of one system. A gateway sits in front of several servers and decides who may call which tool. An operational gateway like ours goes further and runs investigations across systems, returning hypotheses, evidence and confidence.

Can AI agents change my infrastructure through the gateway?

Not with Opsphere by default. Access is read-only, scoped to the environments you choose, and isolated per tenant. Your source systems remain authoritative, so nothing is rewritten behind your back.

Which AI clients work with it?

Cursor, Codex, Claude and other MCP-compatible clients reach the same operational layer. Terminal-based tools such as Claude Code, GitHub Copilot CLI, Warp and OpenCode have their own integration pages.

Opsphere
Discuss your MCP gateway needs
Contact Opsphere to discuss bringing governed operational context across your cloud and engineering tools into one interface.

Sources

This article is provided for general informational purposes only and does not constitute professional, legal, security, or compliance advice. Please evaluate recommendations against your organization’s specific environment and requirements.