# 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). The source repository is private until the first public release; container images are planned at ghcr.io/neurouter/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. ## 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. ## Optional - [Home page](https://neurouter.com/index.md): product overview - [Security policy](https://neurouter.com/security): vulnerability reporting - [Source code](https://github.com/neurouter/neurouter): private until the first public release - [Full text of all pages](https://neurouter.com/llms-full.txt)