Airsc is free for everyone. If it helps you, support it with $2–$20.

Support
MCP serverSafeDeploy & DevOpsAdvanced

toolhive

stacklok · stacklok/toolhive

An enterprise platform for securely running and managing MCP servers in isolated containers with identity and access policies.

ToolHive is an enterprise-grade platform for running and managing Model Context Protocol (MCP) servers.

2.3k stars318License: Apache-2.0Updated 3 days ago0 opens

Preview

▍

What you can do with it

  • Deploy and manage a fleet of MCP servers securely within a Kubernetes environment.
  • Enforce access control and audit logs for AI agent interactions with MCP tools.
  • Self-host MCP servers to maintain control over sensitive data and compliance requirements.

Safety check

Safe

No risky patterns found in the files we scanned.

Automated scan of the repo files. Always review code you run.

From the README

The open source MCP platform trusted by developers and enterprises

[![Release][release-img]][release] [![Build status][ci-img]][ci] [![Coverage Status][coveralls-img]][coveralls] [![License: Apache 2.0][license-img]][license] [![Star on GitHub][stars-img]][stars] [![Discord][discord-img]][discord]

Run any MCP server securely, instantly, anywhere.

ToolHive runs every MCP server in an isolated container, enforces identity and access policy per request when configured with an authentication source, and gives platform teams the observability they need to put MCP in production.

Why ToolHive?

Here are some of the more common use cases for ToolHive:

<strong>Developers.</strong> Run MCP servers with more security and more (token) savings
<strong>Platform Engineers.</strong> Run MCP on your existing Kubernetes infrastructure
<strong>Enterprises.</strong> Self-host MCP servers and stay in control of your data


Connect Claude Code, Cursor, GitHub Copilot, or your preferred client to MCP servers with a single click or command.
ToolHive wraps every MCP server in an isolated container with a minimal permission file (no local credentials) and uses semantic tool search to reduce your token usage by up to 85%.
Put an end to shadow MCP use by your developers, and give your security team the audit logs and configurable identity enforcement they require.
ToolHive includes a Kubernetes operator, so you can declare policies, integrate with your IdP and observability stack, emit OTel traces, and more … all with familiar tools and patterns.
Most MCP solutions are SaaS, but your compliance requirements prohibit sensitive info from being processed by SaaS providers.
ToolHive is the exception that allows you to self-host your MCP registry, gateway, etc. You can pilot the entire platform, and when you’re ready to scale, Stacklok’s got the added capabilities and expert team ready!


Download ToolHive and get started
Explore the Kubernetes operator in our docsRead more about running MCP on Kubernetes
Learn more about Stacklok’s platformCompare open source ToolHive and Stacklok Enterprise

Quick links


Core capabilities

ToolHive architecture: Gateway, Registry Server, and Runtime, accessible through ToolHive UI and the CLI

ToolHive is built on a modular architecture to streamline secure MCP server management and integration. Here's how the main components work.

🔌 Gateway

Define dedicated endpoints from which your teams can securely and efficiently access tools.

  • Orchestrate multiple tools into a virtual MCP with a deterministic workflow engine
  • Define access policies and network endpoints
  • Centralize control of security policy, authentication, authorization, auditing, etc.
  • Integrate with your IdP for SSO (OIDC/OAuth compatible)
  • Customize and filter tools and descriptions to improve performance and reduce token usage
  • Connect with local clients like Claude Desktop, Cursor, VS Code, and VS Code Server

📦 Registry Server

Curate a catalog of trusted servers your teams can quickly discover and deploy.

  • Integrate with the official MCP registry
  • Add custom MCP servers
  • Group servers based on role or use case
  • Manage your registry with an API-driven interface (or embed in existing workflows for seamless integration and governance)
  • Verify provenance and sign servers with built-in security controls
  • Preset configurations and permissions for a frictionless user experience

⚙️ Runtime

Deploy, run, and manage MCP servers locally or in a Kubernetes cluster with security guardrails.

  • Deploy MCP servers in the cloud via Kubernetes for enterprise scalability
  • Run MCP servers locally via Docker or Podman
  • Proxy remote MCP servers securely for unified management
  • Kubernetes Operator for fleet and resource management
  • Leverage OpenTelemetry and Prometheus for monitoring and audit logging

💻 Interfaces

Choose the interface that best fits your workflow.

  • Use ToolHive UI for a cross-platform desktop experience
  • Use the ToolHive CLI for terminal workflows and automation
  • Discover, configure, and run MCP servers
  • Automatically connect managed MCP servers to compatible AI clients

How it works together

  1. Admins curate and organize MCP servers in the Registry, configuring access and policies.
  2. Users discover, configure, and run MCP servers through ToolHive UI or the CLI, and ToolHive orchestrates deployment and access.
  3. Runtime securely deploys and manages MCP servers across local and cloud environments, integrating seamlessly with existing SDLC workflows, exporting analytics, and enforcing fine-grained access control.
  4. Gateway handles all inbound traffic, secures context and credentials, optimizes tool selection, and applies organizational policies.

Flexible deployment

Desktop experience

Individual developers can get started in minutes with the desktop UI or CLI, then apply the same concepts in enterprise environments.

Key features:

  • Run any MCP server from a container image, or build one dynamically from common package managers
  • Manage encrypted secrets and control network isolation with simple, local tooling
  • Test and validate MCP servers using
View source on GitHub