Skip to content
@mcp-hangar

mcp-hangar

Deterministic policy enforcement plane for the Model Context Protocol. Self-hosted, MIT, no SaaS.

MCP Hangar

The MCP policy enforcement plane.

One deterministic allow/deny path on every Model Context Protocol call — where Cilium sits on the packet path and OPA Gatekeeper sits on the admission path.

mcp-hangar on PyPI Latest operator release MIT licensed

Hangar enforces explicit policy on the MCP call path, not beside it. Every tool call crosses one decision path: caller identity, tool-access authorization, schema digest verification, egress rules. Nothing is inferred — there are no anomaly scores and no learned baselines, so a decision is reproducible from the policy that produced it. Self-hosted and MIT across the stack.

Enforced today

  • Caller identity from JWT/OIDC, with RFC 8707 audience binding and multi-issuer trust.
  • Tool-schema digest pinning: a server that changes a pinned tool's schema fails closed.
  • L7 egress policy written in MCP semantics — which upstream, which tool, which arguments — through the MCPEgressPolicy CRD (alpha API).
  • Governed task relay with a consent gate: Hangar interposes on the task lifecycle and never executes the task. Shipped in core 2.0.0; not in the 1.6.x line.
  • Attributable audit chain, exported to SIEM as CEF, LEEF 2.0, RFC 5424 syslog or JSON-lines, and to OTLP.
  • Kubernetes-native: CRDs, admission validation, and an operator that reconciles them.

What Hangar deliberately is not

  • Not ML threat detection. Policy is deterministic and auditable.
  • Not SaaS. No hosted control plane, and none planned.
  • Not MDM or endpoint discovery. It governs MCP servers you register, not devices.
  • Not a connector marketplace. It governs servers; it does not distribute them.
  • Not full OWASP MCP Top 10 coverage. Command injection, intent-flow subversion and context injection are out of scope by design: prompt and argument semantics are not parsed. Coverage per category.

Repositories

Repository What it is
mcp-hangar The enforcement plane itself, and the Python package.
mcp-hangar-operator Kubernetes operator: CRDs, admission validation, default-deny egress.
helm-charts OCI-published charts for the core and the operator.
docs Policy model, guides, ADRs, OWASP coverage.
benchmarks Sequential vs parallel MCP tool-call measurements.

Start

pip install mcp-hangar
helm install mcp-hangar oci://ghcr.io/mcp-hangar/charts/mcp-hangar --namespace mcp-hangar

Website · Docs · Learn · Why Is This Down? — our writing on observability and operations · MIT License

Popular repositories Loading

  1. mcp-hangar mcp-hangar Public

    MCP policy enforcement plane — deterministic policy on every Model Context Protocol call: identity, RFC 8707 audience binding, tool schema digest pinning, full audit trail. Python, self-hosted, MIT.

    Python 14 7

  2. mcp-hangar-website mcp-hangar-website Public

    Source for mcp-hangar.io — the MCP policy enforcement plane.

    MDX

  3. benchmarks benchmarks Public

    Python

  4. helm-charts helm-charts Public

    Helm charts for MCP Hangar — the MCP policy enforcement plane. OCI-published, core + operator, production-grade defaults.

    Go Template

  5. .github .github Public

  6. mcp-hangar-operator mcp-hangar-operator Public

    Kubernetes operator for MCP Hangar — declarative MCP governance via MCPServer, MCPServerGroup and MCPDiscoverySource CRDs, admission validation, default-deny egress.

    Go

Repositories

Showing 7 of 7 repositories

Top languages

Loading…

Most used topics

Loading…