MCP Gateway: Approve and secure every tool connection

A self-hosted MCP gateway that gives every employee one governed endpoint, with Cedar-based authorization, full audit trails and lower input-token costs.

What can you do with Stacklok’s MCP gateway?

An MCP gateway is a single, governed endpoint that sits between AI clients and your MCP servers, handling authentication, authorization, aggregation and auditing in one place. With Stacklok you can: 

  • Provide each user with one URL instead of multiple connections to configure
  • Aggregate every MCP server behind one governed endpoint
  • Build multi-step, cross-system workflows to coordinate tasks across MCP servers
  • Centralize authentication and authorization (with Amazon’s Cedar policy language)
  • Segment each endpoint by identity group (the engineering team sees engineering tools, the marketing team sees marketing tools, etc.)
  • Maintain a full audit trail with OTel and Prometheus plug-ins to your existing observability stack
  • Filter in only the tools and descriptions needed for a task to save a small fortune in input tokens

“Once we realized that we could get local MCP servers off developers’ laptops, that really became the main driver for building on Stacklok.”

Andrew Hannigan, TRM Labs

Let’s get a little more technical. Here’s what separates Stacklok’s MCP gateway from alternatives.

Alternatives: SaaS gateways route your MCP traffic through a third-party cloud, which violates strict data residency requirements  or private cloud mandates. 

Stacklok: Our MCP gateway runs entirely within your infrastructure. Your data stays inside your perimeter, and your telemetry can be neatly integrated (via OTel or Prometheus) into your existing observability stack. 

Alternatives: Users that need multiple MCP servers to complete a task have to separately manage connectively and authentication for each server. 

Stacklok: Our virtual MCP server (vMCP) aggregates all needed servers into a single endpoint, so users connect their client once instead of juggling URLs, credentials and more. 

Alternatives: Most solutions stop at basic OAuth authentication; users may even be required to locally store API keys or service account tokens. 

Stacklok: Beyond authentication, Stacklok enforces authorization using Amazon’s Cedar policy language, so MCP servers don’t need to implement their own OAuth. Governance for all servers is centralized and simplified.

Alternatives: Other solutions feed dozens of unnecessary tools into your context window, driving up input token usage and costs, while degrading model performance. 

Stacklok: Stacklok filters only the tools and descriptions needed to complete a task into the context window. Our customers save 85%+ on input tokens (because our filtering capability has proven more accurate than Anthropic’s own tool).

Frequently Asked Questions

Yes. Stacklok’s MCP gateway can run on Kubernetes inside your own cluster, [via an operator or Helm chart], so you manage it like any other workload. It runs entirely within your infrastructure, with no SaaS dependency.

Stacklok’s MCP gateway exports telemetry through OpenTelemetry (OTel) and Prometheus plug-ins, so audit and usage data flow into the observability tools you already run. You don’t need a separate logging system.

This gives you a full audit trail of agent-to-tool activity inside your own stack, alongside the rest of your infrastructure telemetry. Because the gateway is self-hosted, that data never has to leave your environment.

Stacklok enforces authorization at the gateway using Amazon’s Cedar policy language. You write Cedar policies that define which users, groups or agents may call which MCP servers and tools, and the gateway enforces them centrally.

Because authorization lives in the gateway, individual MCP servers don’t need to implement their own OAuth or permission logic. Most solutions stop at basic OAuth authentication and may even require users to store API keys or service account tokens locally. With Stacklok, governance for all servers is centralized, and access can be segmented by identity group.

Self-hosting keeps your MCP traffic and data inside your own infrastructure. SaaS gateways route that traffic through a third-party cloud, which can conflict with strict data residency requirements or private cloud mandates.

Stacklok’s MCP gateway runs entirely within your infrastructure, so your data stays inside your perimeter. Your telemetry integrates with your existing observability stack through OpenTelemetry (OTel) or Prometheus, instead of living in a vendor’s dashboard. Self-hosting also removes a third party from the path between your agents and your internal tools and APIs, which many security and compliance teams require.

For setups where clients are outside your network, Stacklok can deploy the gateway with a frontier model tunnel, which gives clients an outbound-only connection.

An MCP gateway governs the connections between AI agents and the tools and data they use (MCP servers). An API gateway manages general application API traffic, and an AI or LLM gateway manages traffic between your applications and model providers.

The MCP gateway also addresses a problem that general-purpose gateways don’t: sending dozens of tool definitions to a model drives up token costs. Stacklok filters in only the tools and descriptions needed for a task. Many organizations use an MCP gateway for tool governance and an AI gateway for model access.

An MCP gateway is a single, governed endpoint that sits between AI clients and your MCP servers. It handles connection, authentication, authorization and auditing in one place, so each user and agent connects once instead of configuring every server separately.

Without a gateway, every user has to manage a separate URL and set of credentials for each MCP server, and each server has to implement its own security. Stacklok’s MCP gateway aggregates your servers behind one endpoint, segments access by identity group (engineering sees engineering tools, marketing sees marketing tools), and keeps a full audit trail of every agent-to-tool connection.

Want to talk through your options?

We’ll get you on a call with a technical expert. Schedule a time here.