Skip to content

MCP Runtime

MCP Runtime lets teams deploy MCP servers, control which agents may use each tool, and see what happened when an agent made a call. You can explore user and team workflows on the public reference platform, then install MCP Runtime in your own cloud or on-premises environment to manage it yourself.

MCP Runtime: deploy, govern, and broker MCP servers using a Kubernetes-native control plane

Kubernetes control plane for MCP servers

Build and push an MCP server image, deploy it as an MCPServer resource, and control which agents may call which tools with grants and sessions.

Which setup should I use?

Your goal Start with Have ready Success check
Try user and team workflows Public platform walkthrough User account and team access; Git, Go, and Docker for the example Your sample server becomes ready and your grant appears
Try platform setup and administration Platform Installation Prepared Kubernetes cluster, Docker, and kubectl Setup passes its smoke gate and authenticated platform access works
Adapt the project's deployment Reference deployment A chosen Kubernetes distribution and deployment profile Runtime and identity-provider endpoints work, with separate backups
Develop or test changes locally Local Kind and test mode Source checkout and contributor prerequisites Local setup and cluster health checks pass
Learn grants and client identity Guided tutorials Public platform for user and team steps; your own installation for successful governed calls A grant is applied and its tool-call decision is visible

For a guided entry point, use Getting Started. Once a platform is running, follow Server and Client Guides to publish a server, grant access, and connect a client. A ready server confirms deployment; a successful governed tool call also requires valid caller identity and policy.

Start here

  1. Public platform walkthrough: deploy a sample server and try user and team paths.
  2. Platform Installation: install MCP Runtime in your environment to try setup and admin paths.
  3. Guided tutorials: learn concepts, deploy a server, and set up teams.

OAuth setup and identity-provider configuration: MCP authorization. Operational details for MCP implementers: MCP implementation reference.

How it works

  • An MCPServer resource describes a server: image, port, route, and the tools it exposes with their required trust and side effect. The operator turns it into a Deployment, Service, Ingress, and a policy ConfigMap.
  • An MCPAccessGrant says which agent or team may call which tools, up to what trust level. An MCPAgentSession carries the trust a person consented to, an expiry, and a revoke switch.
  • With allow-list policy enabled, the mcp-gateway sidecar checks each tools/call against the grant, any required session, and the tool metadata before forwarding it. It emits an audit event with the decision. Observe mode forwards calls without enforcing policy.

See Concepts for details.

Try a server deployment on the public platform

These commands use platform.mcpruntime.org to try the user workflow. For your own organization, first follow Platform Installation and use your platform, registry, and MCP route hostnames.

mcp-runtime auth login --api-url https://platform.mcpruntime.org
mcp-runtime server init my-server --from-server http://localhost:8088
mcp-runtime server build image my-server --tag v1
# ^ prints the exact image ref, e.g. registry.mcpruntime.org/myteam/my-server:v1
mcp-runtime server push --image registry.mcpruntime.org/myteam/my-server:v1 --scope tenant
mcp-runtime server deploy my-server --scope tenant --metadata-dir .mcp

Run these commands from your server’s source directory, with a Dockerfile and Docker running. Use the exact image reference printed by the build command. The CLI generates the Kubernetes resources. To connect an MCP client, follow the client connection guide. On macOS, the Adapter app manages saved profiles and can install a profile into Cursor, Codex, Claude Code, or VS Code; other platforms can use the CLI proxy. The public platform lets you test the connection. The example tool calls are denied because it cannot verify which agent made them. The walkthrough explains what to expect.

Who is this for?

You are MCP Runtime gives you
Platform engineer Operator, registry, and ingress wiring generated from one resource
Security team Per-tool audit trail, trust levels, session revocation, deny rules, compliance evidence
Team lead Isolated namespace per team, grants scoped to teams, cross-team access without sharing credentials
Developer Try user and team workflows, including sample server deployment and access grants, on the public reference platform

Why I built this

I started building MCP servers at work in 2024 and went on to build many of them. Implementing the MCP specification led me to think beyond individual servers: how could teams host MCP servers internally, and how could they authorize access to them? That led me to build an internal platform and an authorization server, drawing on what I learned at work. Now I am bringing those lessons together in MCP Runtime, a platform for hosting, governing, and connecting MCP servers. Here I am building it in the open.

I have been reading the MCP SEPs for gateway and identity management patterns. There are active proposals for exactly these problems. The gateway policy enforcement is a work in progress, and I am following the spec and iterating. MCP still has a long way to go here, and so do I.

What MCP Runtime installs

mcp-runtime setup installs the CRDs, the namespaces in Namespaces, an operator, registry integration, ingress wiring, and the platform services. Those services include the gateway request path, grant/session policy materialization, analytics ingest and processing, dashboard and API services, and observability components.

Comparison

For how MCP Runtime relates to MCP directories and to other MCP gateways, see the README.

Governance, audit, and compliance

With allow-list policy enabled, the gateway evaluates MCPAccessGrant and any required MCPAgentSession before tool calls reach a server. Checks include tool-level allow/deny rules, side-effect allowances, trust requirements, consented trust, expiry, and revocation. Observe mode records decisions but does not enforce these checks.

Each decision can emit audit and analytics events with the server, namespace, team ID, human ID, agent ID, session ID, tool name, policy version, decision, reason, and trust and side-effect context. Use these records to review access, investigate denied calls, and prepare compliance evidence.

Before setup

You need a running Kubernetes cluster and a workstation with the CLI prerequisites installed. mcp-runtime setup applies the runtime manifests, installs the operator and platform services, and wires ingress and registry resources for your environment.

For provider-specific prerequisites such as container runtime registry trust, DNS, ingress, TLS, and Kubernetes distribution configuration, start with Deployment Options to choose the right install shape, then Cluster Requirements for distribution-specific preparation.

Documentation sections

Section What you will find
Getting Started Try user and team workflows on the public platform, or install your own platform for admin workflows
Server and Client Guides Publishing, team access, client connections, optional OAuth, and MCP implementation behavior
Deployment and Operations Installation, the public reference deployment, and ongoing operations
Concepts and Architecture Resources, identity, policy, and the platform's component model
CLI and API Reference Commands, API and resource contracts, endpoint authorization, and Go packages
Development and Testing Local setup, service iteration, verification, and regression coverage
Implementation Details Source contracts, request flows, components, security, and lifecycle behavior

Project status

MCP Runtime is alpha. The architecture is stable enough to evaluate as governed MCP infrastructure, but API and UX details are still evolving. Treat the v1alpha1 types as the source of truth. A security audit is planned but has not been completed, so do not use this in production without your own review.

Community