Docs

Neurouter documentation

How to run, configure and operate Neurouter, the self-hosted open-source MCP gateway: quickstart, configuration, deployment, clients, security, audit, approvals and observability.

Last updated: 2026-11-24 · Markdown

Neurouter is a self-hosted gateway for the Model Context Protocol (MCP). AI clients connect to one endpoint, <PUBLIC_URL>/mcp, and reach only the upstream MCP servers and tools they have been granted. Every call is authenticated, authorized, rate-limited, optionally held for human approval, written to a tamper-evident audit log and measured. The same server hosts the admin console and the user portal.

How a tool call flows

  1. The client sends a request to /mcp over Streamable HTTP. The Origin header is checked.
  2. Neurouter verifies the caller's API key or OAuth access token, including its audience.
  3. The tool name is resolved and access control is applied. Deny wins, and a tool the caller may not use looks exactly like a tool that doesn't exist.
  4. Arguments are validated against the tool's pinned schema.
  5. Rate limits are applied per agent and per agent and tool.
  6. If the tool requires approval, the call is held until an approver decides or the approval times out.
  7. The upstream server is called with credentials held by the gateway. Client tokens are never forwarded.
  8. The result is returned; the audit record, metrics and session are written.

Concepts

  • Upstream server: a remote MCP server (Streamable HTTP or SSE) registered by an admin. Its tools are synced and each tool definition is pinned.
  • Agent: a first-class identity owned by a user, for example "release-assistant". Agents authenticate with API keys or OAuth and act with their owner's grants, optionally narrowed further.
  • Grant: allow or deny on a server or a single tool, for a user, group or agent. Deny always wins.
  • Roles: Admin, Auditor (read-only), Server Owner and User. Roles can be mapped from identity-provider groups.
  • Meta-tools: clients see search_tools and call_tool, so they can find and call any tool they're allowed to use without loading every definition into the context window.

Documentation

Requirements at a glance

ComponentRequirement
RuntimeNode.js 24 or newer when running from source; the container image is based on node:26-bookworm-slim
Database (production)PostgreSQL 16 or newer with the vector extension (pgvector)
Database (evaluation)SQLite in a local file, no Docker needed
IdentityAny OpenID Connect provider (production); a development-only email login for local evaluation
MCP specification2026-07-28 and 2025-11-25