● Community
stacklok
⚡ Sofort
toolhive
von stacklok · stacklok/toolhive
Run MCP servers in isolated containers with one-click installs, a curated registry, SSO, and Kubernetes support.
ToolHive (Stacklok) is an enterprise-grade platform for running MCP servers. Gateway + Registry + container Runtime + Portal. Targets team and org deployments where you want least-privilege containerized MCPs, SSO, audit logs, and a curated catalog.
Warum nutzen
Hauptfunktionen
Container-isolated MCP servers (Docker / Kubernetes) Curated, verified MCP registry with preset configs One-click install into Claude Desktop, Cursor, VS Code SSO, encrypted secrets, audit logging, OpenTelemetry Desktop app, web, CLI, and Kubernetes Operator
Live-Demo
In der Praxis
toolhive.replay
▶ bereit
▶ Abspielen
Schritt ›
0/0
Anwendungsfälle
Praxisnahe Nutzung: toolhive
Wann einsetzen: You want the GitHub MCP running locally but don't want to give it unrestricted filesystem access.
Voraussetzungen
Docker Desktop — docker.comToolHive desktop app — stacklok.com/download
Ablauf
Open ToolHive, search the registry
Install 'github' from the ToolHive registry.✓ Kopiert
→ Container pulled, config prompt for GITHUB_TOKEN
Auto-configure your client
Click 'Connect to Claude Desktop'.✓ Kopiert
→ Claude Desktop config updated; restart required
Verify isolation
Confirm the container only has the env vars you set and no host filesystem mounts.✓ Kopiert
→ Inspect container config in the ToolHive UI
Ergebnis: A sandboxed MCP with least-privilege access to your machine.
Fallstricke
Filesystem MCPs need a mount — default no-mount is too tight — Add a scoped mount (e.g. ~/Projects only) rather than full-home
Wann einsetzen: You want org-wide standardized MCP availability.
Voraussetzungen
Kubernetes cluster + cluster-admin — Existing EKS/GKE/AKS or kind for devToolHive Operator CRDs installed — kubectl apply -f the Stacklok-provided manifests
Ablauf
Declare MCPServer resources
kubectl apply -f mcp-github.yaml — declaratively register a GitHub MCP with scoped secrets.✓ Kopiert
→ Pod running; Portal lists it
Expose to users via Portal
Engineers log into the Portal with SSO and one-click install into their client.✓ Kopiert
→ Per-user configs auto-generated
Ergebnis: Central catalog + per-user install; auditable.
Fallstricke
Stdio MCPs don't fit network-exposed Kubernetes well — Prefer Streamable HTTP MCPs for k8s; use the gateway for stdio ones
Wann einsetzen: Your org needs 'who called what tool when' for SOC2 or internal policy.
Ablauf
Enable OpenTelemetry export
In ToolHive settings, set the OTLP endpoint to your collector.✓ Kopiert
→ Traces appear in your backend
Tag by user
Enable per-user identity propagation via SSO.✓ Kopiert
→ Each trace has actor id
Ergebnis: Per-user, per-tool audit log.
Kombinationen
Mit anderen MCPs für 10-fache Wirkung
Use ToolHive for isolation, MCPHub for multi-server routing
Run each MCP in its own ToolHive container and expose them through MCPHub groups.✓ Kopiert
Combine ToolHive-run MCPs with Unla's REST-to-MCP conversion
Register our Unla-converted internal API in ToolHive so it runs containerized with SSO.✓ Kopiert
Kosten & Limits
Was der Betrieb kostet
API-Kontingent None at platform layer
Tokens pro Aufruf Minimal overhead
Kosten in € Desktop + CLI + open-source Operator are free. Enterprise plans for support/compliance.
Tipp Start with the free tier; upgrade only if you need dedicated SLAs or advanced SSO/RBAC.
Sicherheit
Rechte, Secrets, Reichweite
Minimale Scopes: Per-MCP: least privilege env vars and mounts SSO for team deployments
Credential-Speicherung: Encrypted secrets manager built into ToolHive
Datenabfluss: Determined by downstream MCPs; ToolHive adds telemetry if configured
Niemals gewähren: Don't auto-grant filesystem mounts beyond what each MCP needs
Running too many MCPs in a single container defeats the isolation; one per container.
Fehlerbehebung
Häufige Fehler und Lösungen
Container starts then exits immediately
Check the MCP's required env vars are set (e.g., GITHUB_TOKEN). View logs in ToolHive UI.
Claude Desktop can't find the server after install
Restart Claude Desktop — config changes only load on launch.
K8s Operator CRD install fails
Ensure cluster-admin and supported k8s version (>= 1.27).
Prüfen: kubectl version
OTLP traces missing
Collector endpoint must accept OTLP/HTTP or OTLP/gRPC; confirm protocol match.
Alternativen
toolhive vs. andere
Alternative Wann stattdessen Kompromiss
MCPHub You want multi-server aggregation more than container isolation Not container-runtime focused
Docker MCP Toolkit You prefer Docker's own integrated tooling Less curated registry