# Neurouter > Neurouter is a self-hosted, open-source (Apache-2.0) enterprise gateway for the Model Context Protocol (MCP). AI clients such as Claude Code, Cursor and VS Code connect to one /mcp endpoint and reach only the MCP servers and tools they are granted. Every call is authenticated (OIDC single sign-on, OAuth 2.1, API keys), authorized (per server and per tool, deny wins), rate-limited, optionally held for human approval, written to a hash-chained audit log with signed checkpoints, and measured (Prometheus, OpenTelemetry). It runs in your own cloud or on-premises and sends nothing to the vendor. Neurouter supports MCP specification versions 2026-07-28 and 2025-11-25. It is built by Perspektives Digital Oy (Espoo, Finland). Source code: https://github.com/neurouter/neurouter. Signed release images: ghcr.io/neurouter/neurouter; Helm chart: oci://ghcr.io/neurouter/charts/neurouter. A managed Neurouter Cloud is planned but not available. ## Docs - [Overview](https://neurouter.com/docs.md): How to run, configure and operate Neurouter, the self-hosted open-source MCP gateway: quickstart, configuration, deployment, clients, security, audit, approvals and observability. - [Quickstart](https://neurouter.com/docs/quickstart.md): Run Neurouter locally with Docker Compose and PostgreSQL, or with SQLite and no Docker, then register an MCP server and connect Claude Code. - [Configuration](https://neurouter.com/docs/configuration.md): Every Neurouter environment variable with its default and what it does, from PUBLIC_URL and DATABASE_URL to OIDC, OAuth, embeddings, egress policy and telemetry. - [Deployment](https://neurouter.com/docs/deployment.md): Run the Neurouter MCP gateway in production on Docker or Kubernetes with Helm, with PostgreSQL and pgvector, generated encryption keys, zero-downtime key rotation and backups. - [Connect clients](https://neurouter.com/docs/connecting-clients.md): Connect Claude Code, Cursor, VS Code or any Streamable HTTP MCP client to the Neurouter gateway with OAuth 2.1 sign-in or an API key. - [Security model](https://neurouter.com/docs/security-model.md): How Neurouter authenticates people and agents, authorizes every MCP tool call, stores upstream credentials, guards outbound requests and protects its web console. - [Audit log](https://neurouter.com/docs/audit-log.md): What Neurouter records for every MCP tool call, how the hash chain and signed checkpoints make tampering detectable, how to verify the chain, and how to export, stream and archive events. - [Approvals](https://neurouter.com/docs/approvals.md): Hold calls to sensitive MCP tools until an owner or admin approves them. How holding, timeouts, progress notifications, self-approval and auditing work. - [Observability](https://neurouter.com/docs/observability.md): Built-in dashboards and sessions, the Prometheus /metrics endpoint with an optional bearer token, the exported metric names, and OpenTelemetry traces, metrics and logs. - [Server library](https://neurouter.com/docs/library.md): Search a local copy of the official MCP Registry from the Neurouter console, see a deterministic A–F quality grade and a publisher badge for each server, and add a server to the gateway in a few clicks. ## Features - [Features](https://neurouter.com/features.md): What the Neurouter MCP gateway does to govern AI agent tool calls: tamper-evident audit log, human approvals, per-tool access control, tool pinning and observability. - [Audit log](https://neurouter.com/features/audit-log.md): Neurouter records every MCP tool call — who, which agent, which tool, what inputs, what decision — in a hash-chained log with signed checkpoints you can verify. - [Human approvals](https://neurouter.com/features/approvals.md): Flag sensitive MCP tools so the gateway holds each call until a server owner or admin approves it. Works with any MCP client, and every decision is audited. - [Tool pinning](https://neurouter.com/features/tool-pinning.md): Neurouter hashes and pins every upstream MCP tool definition. If a server silently changes a tool's description or schema, the tool is blocked until an owner re-approves it. - [Access control](https://neurouter.com/features/access-control.md): Grant or deny MCP servers and individual tools to users, groups and agents. Deny wins, agents can be narrowed below their owner, and hidden tools look like unknown tools. - [Observability](https://neurouter.com/features/observability.md): See how AI agents use your MCP tools: calls, success rate, latency p50/p95/p99 and sessions by server, tool, agent and user, exported to Prometheus and OpenTelemetry. ## Integrations - [Integrations](https://neurouter.com/integrations.md): Connect Claude Code, Cursor and VS Code to the Neurouter MCP gateway, and sign people in with Microsoft Entra ID, Okta, Google Workspace or Keycloak. - [Claude Code](https://neurouter.com/integrations/claude-code.md): Connect Claude Code to the Neurouter MCP gateway with OAuth sign-in or an API key, so every tool call is governed, approved when needed and audited. - [Cursor](https://neurouter.com/integrations/cursor.md): Connect Cursor to the Neurouter MCP gateway through mcp.json with OAuth sign-in or an API key from an environment variable. - [VS Code](https://neurouter.com/integrations/vscode.md): Connect VS Code to the Neurouter MCP gateway in .vscode/mcp.json with OAuth sign-in or an API key stored as a password input. - [Microsoft Entra ID](https://neurouter.com/integrations/entra-id.md): Sign in to Neurouter with Microsoft Entra ID over OpenID Connect and map Entra security groups to Neurouter Admin and Auditor roles. - [Okta](https://neurouter.com/integrations/okta.md): Sign in to Neurouter with Okta over OpenID Connect and map Okta groups to Neurouter roles and groups for MCP tool access control. - [Google Workspace](https://neurouter.com/integrations/google-workspace.md): Sign in to Neurouter with Google accounts over OpenID Connect, restrict sign-in to your Workspace domain, and manage roles and groups in Neurouter. - [Keycloak](https://neurouter.com/integrations/keycloak.md): Sign in to Neurouter with Keycloak over OpenID Connect and send Keycloak group membership as a groups claim for roles and MCP access control. ## Compare - [Compare MCP gateways](https://neurouter.com/compare.md): A dated, sourced comparison of open-source and self-hostable MCP gateways: licensing, OAuth, access control, human approval, audit, tool search and stdio support. - [vs IBM ContextForge](https://neurouter.com/compare/contextforge.md): How Neurouter and IBM's ContextForge MCP gateway compare on OAuth, access control, approvals, audit, tool search and stdio support, with sources checked 2026-11-24. - [vs agentgateway](https://neurouter.com/compare/agentgateway.md): How Neurouter and agentgateway, the Linux Foundation agent and MCP gateway, compare on OAuth, policy, approvals, audit and deployment, with sources checked 2026-11-24. - [vs ToolHive](https://neurouter.com/compare/toolhive.md): How Neurouter and Stacklok ToolHive compare on stdio isolation, OAuth, Cedar policy, approvals, audit and enterprise features, with sources checked 2026-11-24. - [vs Docker MCP Gateway](https://neurouter.com/compare/docker-mcp-gateway.md): How Neurouter compares with Docker's open-source MCP Gateway and its MCP Enterprise Gateway on authentication, policy, approvals, audit, tool search and stdio, checked 2026-11-24. - [vs Obot](https://neurouter.com/compare/obot.md): How Neurouter and the Obot MCP platform compare on licensing, OAuth, access control, approvals, audit, stdio hosting and breadth, with sources checked 2026-11-24. - [vs Kong](https://neurouter.com/compare/kong.md): How Neurouter compares with Kong's AI Gateway MCP features (ai-mcp-proxy, ai-mcp-oauth2) on licensing, OAuth, access control, approvals and audit, checked 2026-11-24. ## Compliance - [Compliance](https://neurouter.com/compliance.md): How Neurouter's access control, human approvals and tamper-evident audit log help provide evidence for EU AI Act, NIS2, DORA, ISO/IEC 27001 and SOC 2 controls when AI agents use tools. ## Blog - [Neurouter blog](https://neurouter.com/blog.md): Engineering notes on governing AI agents' tool access with MCP — tool poisoning and pinning, human approvals, tamper-evident audit logs — and how Neurouter implements them. - [Tool poisoning and MCP rug pulls: pin tool definitions like dependencies](https://neurouter.com/blog/mcp-tool-poisoning-rug-pulls.md) (2026-11-25): An MCP tool's description is text the model treats as instructions, and the server can change it at any time. Why definitions should be hashed, pinned and reviewed like dependencies, and how Neurouter does it. - [Governing AI agents' tool access: what an MCP gateway is for, and how to pilot one](https://neurouter.com/blog/mcp-gateway-guide-for-it-leaders.md) (2026-11-25): AI clients now reach company systems through MCP. A practical guide for IT and security leaders to the risks (shadow servers, credentials on laptops, no audit), the options (build, vendor admin controls, a gateway) and a two-to-four-week pilot. - [Human-in-the-loop for agent tool calls: designing approvals people will actually use](https://neurouter.com/blog/human-approval-for-agent-tool-calls.md) (2026-11-25): What to hold for approval, who may approve, what the reviewer and the agent see, how long to wait, how a live review page stays correct across replicas, and how every decision is audited. Design notes from Neurouter's MCP gateway. - [A tamper-evident audit log for AI agent actions: hash chains, checkpoints and their limits](https://neurouter.com/blog/tamper-evident-audit-log-for-ai-agents.md) (2026-11-25): How Neurouter records every MCP tool call in a hash-chained log with HMAC checkpoints, how to verify it with 40 lines of code you control, what redaction and retention do, what an attacker with database access can still do, and how it relates to EU AI Act, ISO 27001 and SOC 2 logging. ## Optional - [Home page](https://neurouter.com/index.md): product overview - [Live demo](https://neurouter-demo.web.app): read-only console with simulated data, runs in the browser - [Security policy](https://neurouter.com/security): vulnerability reporting - [Source code](https://github.com/neurouter/neurouter): GitHub repository, Apache-2.0 - [Full text of all pages](https://neurouter.com/llms-full.txt)