# Neurouter — self-hosted, open-source 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.

Source: https://neurouter.com/ · Last updated: 2026-11-24 · License: Apache-2.0 · Built by Perspektives Digital Oy, Espoo, Finland

## Why it matters

- **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.
- **Credentials on laptops.** Tokens and service keys sit in local JSON configs.
- **No record of what agents did.** The trail lives in a chat transcript, if anywhere.
- **Compliance without evidence.** Logs anyone can edit are not evidence.
- **No view of usage** per team, agent or tool.
- **Lock-in to one vendor.** Controls built into one AI vendor's product stop at that vendor.

## How it works

1. **Register upstream servers.** Admins add remote MCP servers and their credentials. Every tool definition is pinned; a changed tool is blocked until re-approved.
2. **Grant access.** Allow or deny servers or single tools for users, groups and agents; deny wins. Flag sensitive tools for human approval; set rate limits.
3. **Connect clients.** People get a ready-made config for Claude Code, Cursor, VS Code or any MCP client, and sign in with OAuth 2.1 or use an API key.
4. **Audit and measure.** Every call lands in a tamper-evident audit log and in usage metrics, with export to your monitoring and SIEM.

Agents see two meta-tools, `search_tools` and `call_tool`. Search is hybrid (keyword and vector) on a local embedding model, and access control is applied before ranking.

## Governance and security

- Single sign-on via OpenID Connect (Okta, Microsoft Entra ID, Google, Keycloak or any OIDC provider); Admin, Auditor, Server Owner and User roles.
- Neurouter's own OAuth 2.1 authorization server for MCP clients; revocable API keys for headless agents.
- No token passthrough: upstream credentials stay in the gateway, envelope-encrypted with AES-256-GCM under keys you control.
- Least privilege, deny wins; tools a caller can't use are indistinguishable from unknown tools.
- Tool pinning against changed ("rug pull") tool definitions.
- Human-in-the-loop approvals for sensitive tools; by default the requester can't approve their own call.
- Rate limits per agent and per agent and tool.
- SSRF-guarded egress.

## Audit

Every MCP call, search, admin change and sign-in is written to an append-only log, hash-chained and sealed by checkpoints signed with a key derived from your master keys. Verify reports the first row that doesn't match. Redaction runs before storage. Filter, search, export to CSV or JSON Lines, stream by webhook or OpenTelemetry logs; retention 90 days by default, with archive to S3, Google Cloud Storage or Azure Blob.

## Observability

Tool calls, success rate, latency p50/p95/p99 and sessions by server, tool, agent and user. Prometheus `/metrics` and OpenTelemetry traces, metrics and logs.

## Deployment

A single container on AWS, Google Cloud, Azure or your own Kubernetes: Docker, Docker Compose, Helm chart; PostgreSQL 16+ with pgvector in production, SQLite for local evaluation. Scales out on PostgreSQL alone (no Redis). Non-root, read-only root filesystem. Keys you own, rotated without downtime.

## Open source and Cloud

- **Self-hosted (available):** Apache-2.0, free, every feature included.
- **Neurouter Cloud (coming soon):** a managed, multi-tenant Neurouter. Not available yet; join the waitlist at signup@neurouter.com.

On the roadmap, not available yet: skill library, favorites and preloaded tool lists, managed stdio servers in sandboxes, MCP resources and prompts, tool bundles, argument-level access rules, alerts, SIEM connectors, SCIM, SAML, Terraform modules.

## Learn more

- [Documentation](https://neurouter.com/docs.md)
- [Quickstart](https://neurouter.com/docs/quickstart.md)
- [Features](https://neurouter.com/features.md)
- [Integrations](https://neurouter.com/integrations.md)
- [Compare MCP gateways](https://neurouter.com/compare.md)
- [Compliance mapping](https://neurouter.com/compliance.md)
- [llms.txt](https://neurouter.com/llms.txt)
