Open source · Apache-2.0 · Self-hosted MCP gateway

One governed gateway between your AI agents and your systems.

Neurouter is a self-hosted gateway for the Model Context Protocol (MCP). Claude Code, Cursor, VS Code, ChatGPT and your own agents connect to one /mcp endpoint and reach only the MCP servers and tools you have granted. Every call is authenticated, authorized, rate-limited, audited and measured — in your cloud, under your keys.

  • Runs in your cloud
  • Docker & Helm
  • SSO via OIDC
  • No token passthrough
How Neurouter routes agent traffic Six AI clients — Claude Code, Cursor, VS Code, ChatGPT, a CI pipeline and an unregistered client — connect to one /mcp endpoint. The unregistered client is rejected with 401. Inside the Neurouter gateway every call passes authentication, access control, rate limiting, human approval for sensitive tools, audit logging and metrics, and upstream credentials are injected from an encrypted vault. Calls then fan out to MCP servers: code hosting, an issue tracker, a data warehouse whose query tool needs approval, a CRM, docs and wiki, and internal APIs. AI CLIENTS MCP SERVERS 401 Claude CodeOAuth 2.1 sign-in CursorOAuth 2.1 sign-in VS CodeOAuth 2.1 sign-in ChatGPTOAuth 2.1 sign-in CI pipelineAPI key nr_live_… Unregistered clientno credentials Neurouter gateway · runs in your cloud Policy grants · deny wins · approvals allowgroup:data-engwarehouse__* denyagent:ci-botcrm__delete_* holdany callerwarehouse__run_query Credential vault AES-256-GCM Auth ACL Rate limit Approval Audit Metrics SSO · keys deny wins per agent held call hash chain p50–p99 /mcp Audit log hash-chained · signed checkpoints Metrics calls · success · latency Prometheus · OpenTelemetry Code hostingget_file · create_pr Issue trackersearch_issues Data warehouserun_query · needs approval CRMfind_account Docs & wikisearch_pages Internal APIsyour own MCP servers How Neurouter routes agent traffic AI clients — Claude Code, Cursor, VS Code, ChatGPT and a CI pipeline — connect to one /mcp endpoint; an unregistered client is rejected with 401. Inside the gateway each call passes authentication, access control, rate limiting, human approval, audit and metrics, and upstream credentials come from an encrypted vault. Calls then reach MCP servers: code hosting, an issue tracker, a data warehouse that needs approval, a CRM, docs and wiki, and internal APIs. AI CLIENTS 401 Claude Code Cursor VS Code ChatGPT CI pipeline Unregistered Neurouter /mcp AuthenticateOIDC SSO · OAuth 2.1 · API keys Authorizeper server & tool · deny wins Rate limitper agent and per tool Approvesensitive tools wait for a human Audithash chain · signed checkpoints Measurep50–p99 · Prometheus · OTel Credential vault AES-256-GCM MCP SERVERS Code hosting Issue tracker Data warehouse CRM Docs & wiki Internal APIs
Illustrative. Every call passes the same checks before it reaches an MCP server; clients and servers shown are examples.
Why it matters

Agents are already wired into your systems. Can you say which ones?

MCP made it easy for any AI client to call real tools: read a repository, query a warehouse, update a ticket. It also made it easy for every team, and every laptop, to wire that up on its own. Most organizations end up with the same six gaps.

Shadow MCP sprawl

People add MCP servers to their own clients, one config file at a time. Nobody holds the full list of which agents can reach which systems.

Which agents can write to production data today?

Credentials on laptops

Personal access tokens and service keys sit in local JSON configs, copied between machines and rarely rotated. A lost laptop becomes a credential incident.

Where are our API tokens stored right now?

No record of what agents did

When an agent changes something, the trail lives in a chat transcript on someone's machine — if it exists at all.

What did that agent do, for whom, with which inputs?

Compliance without evidence

Auditors ask who approved access and what happened. Screenshots of config files are not an answer, and logs anyone can edit are not evidence.

Can we prove the log hasn't been changed?

No view of usage

Without a central point there is no count of calls, failures or latency per team, agent or tool — the starting point for any capacity or cost conversation.

Which teams use which tools, and how much?

Lock-in to one vendor

Controls built into one AI vendor's product stop at that vendor. Your teams use several clients, and that mix will keep changing.

What happens to our controls when we switch clients?
How it works

Put one endpoint between agents and tools.

Neurouter is an MCP server to your agents and an MCP client to your upstream servers. Everything in between is policy you control, applied the same way to every client.

  1. Register upstream servers

    Admins add remote MCP servers and their credentials. Neurouter syncs each server's tools and pins every definition, so a tool that changes silently is blocked until someone re-approves it.

  2. Grant access

    Allow or deny whole servers or single tools for users, groups and agents — deny always wins. Flag sensitive tools for human approval and set rate limits per agent and per tool.

  3. Connect clients

    In the portal, people browse what they can use, request what they're missing, create API keys and copy a ready-made config for Claude Code, Cursor, VS Code or any MCP client.

  4. Audit and measure

    Every call lands in a tamper-evident audit log and in usage metrics by server, tool, agent and user, with export to the monitoring and SIEM you already run.

Connect Claude Code (OAuth sign-in)

claude mcp add --transport http neurouter \
  https://mcp.example.com/mcp
# In Claude Code: /mcp → Authenticate

Or a headless agent with an API key

claude mcp add --transport http neurouter \
  https://mcp.example.com/mcp \
  --header "Authorization: Bearer ${NEUROUTER_API_KEY}"

Agents find tools by asking for them

Instead of loading hundreds of tool definitions into every context window, agents get two meta-tools: search_tools and call_tool.

  • Hybrid searchKeyword and vector search over tool names, descriptions and parameters, merged with reciprocal rank fusion.
  • Local embedding modelThe model ships inside the container image. Queries and tool descriptions never leave your network.
  • Filtered before rankingAccess control runs first, so tools a caller can't use never appear in results.
Governance & security

Controls a security team can reason about.

Neurouter follows the MCP authorization specification and keeps identities, credentials and policy in one place that you operate.

  • Single sign-on via OIDCPeople sign in with your identity provider — Okta, Microsoft Entra ID, Google or any OIDC provider. Admin, Auditor, Server Owner and User roles map from IdP groups.
  • Its own OAuth 2.1 serverMCP clients get audience-bound tokens issued by Neurouter: PKCE, rotating refresh tokens, client ID metadata documents. Headless agents use revocable API keys with a prefix secret scanners can match.
  • No token passthroughClient tokens are never forwarded upstream. Shared service credentials and per-user upstream OAuth tokens stay in the gateway, envelope-encrypted with AES-256-GCM under master keys you supply and can rotate without downtime.
  • Least privilege, deny winsGrants on servers or single tools, for users, groups or agents. An agent can be narrowed below its owner. Tools a caller may not use are indistinguishable from tools that don't exist.
  • Tool pinningEach upstream tool definition is hashed and approved. If a server changes a tool's description or schema, the tool is blocked until an owner re-approves it. Arguments are validated against the pinned schema.
  • Human-in-the-loop approvalsCalls to sensitive tools are held until an admin or the server's owner approves — never the person who asked. Denials and timeouts return a clear error to the agent, and every decision is audited.
  • Rate limitsToken-bucket limits per agent and per agent-and-tool, shared across every replica.
  • Guarded egressOutbound requests are SSRF-guarded: cloud metadata endpoints are always blocked, private networks only when you allow them.
audit event · tools/callillustrative example
time
2026-11-24T09:41:07.212Z
agent
release-assistant
on behalf of
j.doe@example.com
client
Claude Code
tool
warehouse__run_query
decision
allowed after approval
approved by
a.lee@example.com
input
{"sql": "SELECT region, count(*) …", "api_token": xxxxxxxx redacted}
output
18.2 KB · sha256:9f2c…e104
latency
1.84 s
trace
4bf92f3577b34da6…
prev hash
7a1d…c03b
Fields simplified for illustration. Outputs are stored as size and hash by default.
Audit

A record of every call, and a way to prove it's intact.

Every MCP call, search, admin change and sign-in is written to an append-only log. Rows are hash-chained and sealed at regular checkpoints signed with a key derived from your master keys. Verify checks the chain and reports the first row that doesn't match.

We're explicit about the limits: someone with database write access could rewrite rows, but cannot forge checkpoint signatures without your keys. Stream events to a system your database admins don't control and you close that gap too.

  • Who, what, when, and the outcomeAgent, the user it acted for, client, server and tool, decision (allowed, blocked with reason, approval pending or denied), input parameters, output size and hash, status, latency and trace ID.
  • Redaction before storageRedaction rules run before anything is written, so secrets in arguments never land in the log.
  • Search, filter, exportFilter by user, agent, server, tool, decision, status and time range; full-text search over parameters; export to CSV or JSON.
  • Into your SIEMStream events by webhook or OpenTelemetry logs. Retention defaults to 90 days and is configurable, with archive to S3, Google Cloud Storage or Azure Blob before rows are deleted.
Observability

See how agents actually use your tools.

Per-minute rollups broken down by server, tool, agent and user, with built-in dashboards and session views — and the same data in the monitoring stack you already run.

Tool callsVolume by server, tool, agent and user.
Success rateErrors and blocked calls, with the reason.
Latencyp50, p95 and p99 per server and tool.
SessionsCalls grouped by client session or trace.
  • Prometheus /metrics
  • OpenTelemetry traces
  • OpenTelemetry metrics
  • OpenTelemetry logs
  • Webhook
Deployment

Runs in your cloud. Your data stays there.

Neurouter is a single container with no hosted component. Run it on AWS, Google Cloud, Azure, or your own Kubernetes on-premises. It talks only to your identity provider, the MCP servers you register and the export targets you configure.

  • Docker image · amd64 & arm64
  • Docker Compose
  • Helm chart
  • PostgreSQL 16+ with pgvector
  • SQLite for local evaluation
  • Scales out on Postgres aloneReplicas coordinate through Postgres, so rate limits, approvals and caches are shared. No Redis or message queue to run.
  • Hardened by defaultNon-root container, read-only root filesystem, strict Content Security Policy. The Helm chart adds a PodDisruptionBudget, zero-downtime rolling updates, and optional NetworkPolicy, ServiceMonitor and autoscaling.
  • Keys you ownMaster encryption keys come from your secret store and rotate without downtime. Backups are a database dump plus your keys.
  • Safe upgradesForward-only, additive migrations run as a pre-upgrade job, so old and new pods can serve side by side during a rollout.

Kubernetes, with Helm

helm install neurouter deploy/helm/neurouter \
  --set publicUrl=https://mcp.example.com \
  --set crypto.existingSecret=neurouter-crypto \
  --set database.existingSecret=neurouter-db \
  --set oidc.issuer=https://idp.example.com \
  --set oidc.clientId=neurouter \
  --set oidc.existingSecret=neurouter-oidc \
  --set ingress.enabled=true \
  --set ingress.host=mcp.example.com

Or try it on one machine

cp .env.example .env
npm run keys -- gen   # paste the values into .env
docker compose up --build
Open source · Cloud

Open source today. A managed cloud later.

Governance software should be something you can read. Neurouter is licensed under Apache-2.0: inspect it, run it, change it.

Available

Self-hosted

Apache-2.0 · free to use, modify and run in production.

  • The complete gateway, admin console and user portal
  • Run as many replicas as you need, on any cloud
  • Every line of code open to your security review
  • Support from the community on GitHub
Coming soon

Neurouter Cloud

A managed, multi-tenant Neurouter, operated for you.

  • The same gateway, policy model and audit log
  • No infrastructure to run, scale or upgrade
  • Not available yet — join the waitlist to hear when it is

Opens an email to signup@neurouter.com. We'll use your address only to tell you when Neurouter Cloud is available — see the privacy policy.

On the roadmap — not available yet

  • Skill library (Agent Skills over MCP)
  • Favorites & preloaded tool lists
  • Managed stdio servers in sandboxes
  • MCP resources & prompts
  • Tool bundles
  • Argument-level access rules
  • Alerts
  • SIEM connectors
  • SCIM provisioning
  • SAML sign-in
  • Terraform modules
FAQ

Questions we expect from IT and security.

What is MCP, briefly?

The Model Context Protocol is an open standard for connecting AI applications to tools and data. An MCP server exposes tools; an MCP client — Claude Code, Cursor, VS Code, ChatGPT or your own agent — calls them. The specification is at modelcontextprotocol.io.

Which clients work with Neurouter?

Any client that can connect to a remote MCP server over Streamable HTTP. Interactive clients sign in through Neurouter's OAuth 2.1 server; scripts and CI use API keys. The portal generates connection snippets for Claude Code, Cursor, VS Code and generic clients. Both the 2025-11-25 and 2026-07-28 versions of the MCP specification are supported.

Which MCP servers can sit behind it?

Remote MCP servers that use Streamable HTTP or the older SSE transport. Upstream authentication can be none, a shared service credential, or per-user OAuth, where each person connects their own account once and the gateway holds the encrypted token. Local stdio servers, run in managed sandboxes, are on the roadmap.

Does any data leave our environment?

Neurouter has no hosted component and sends nothing to us. It runs in your infrastructure and connects only to your identity provider, the upstream MCP servers you register and the export targets you configure. Tool search uses an embedding model that ships inside the container image.

How is this different from the admin controls in our AI vendor's product?

Vendor controls cover that vendor's client. Neurouter works at the protocol level, so one set of policies, one audit log and one credential store apply to every MCP client your teams use — and you can change or add clients without rebuilding your governance.

Is it ready for production?

Neurouter is new and under active development. The capabilities described on this page are in its first release; anything marked roadmap is not built yet. Start with a pilot, review the code, and run it behind your normal change process.

What does it cost?

The self-hosted gateway is free and open source under Apache-2.0; you pay only for the infrastructure it runs on. Pricing for Neurouter Cloud will be published when it launches.

What database does it need?

PostgreSQL 16 or newer with the vector extension in production; it's required for more than one replica. For a local evaluation it runs on SQLite with no Docker needed. The audit log can live in a separate database if you prefer.

How do we report a security issue?

Please don't open a public issue. See our security and responsible disclosure policy.

Give every agent a front door you control.

Read the code, run it in your own cloud, and judge it on what it does.