Scan your whole stack
From OX Research Newsroom
Latest version: v0.2.0
Neurouter Hub was last scanned on 26 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0 LATEST | 26 Nov 2026 | No rules fired |
Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Self-hosted enterprise MCP gateway. Agents connect to one /mcp endpoint and reach only the
upstream MCP servers and tools they've been granted; every call is authenticated, authorized,
rate-limited, audited and measured. The same server hosts the admin console and user portal.
A built-in server library syncs the official MCP Registry (opt-in) and grades every server
A–F by rules you can read (how grading works).
Renamed in 0.2.0: Neurouter is now Neurouter Hub. The image is
ghcr.io/neurouter/hub(alsodocker.io/neurouter/hub), the chart isoci://ghcr.io/neurouter/charts/neurouter-hub, and the registry entry iscom.neurouter/hub. Nothing else changes: env vars, secrets, resource names and data stay the same, sohelm upgrade <release> oci://ghcr.io/neurouter/charts/neurouter-hub --version 0.2.0 --reuse-valuesupgrades in place.ghcr.io/neurouter/neurouterstill receives 0.2.x images.
Website: hub.neurouter.com · Live demo (read-only, simulated data): neurouter-hub-demo.web.app · Docs: hub.neurouter.com/docs
38 s walkthrough of the live demo (simulated data): approvals, the live audit log, a blocked tool definition change, grants and metrics.
Phase 1 is in progress.
npm install
cp .env.example .env # then edit; see "Environment" below
npm run keys -- gen # prints NEUROUTER_MASTER_KEYS / NEUROUTER_ACTIVE_KEY_ID / HASH_PEPPER for .env
npm run dev # API server (tsx watch) + Vite dev server with the API proxy
npm run dev starts the server, waits for GET /healthz, then starts Vite. Open the URL Vite
prints. The server applies migrations on start (MIGRATE_ON_START=true) and creates
apps/server/data/neurouter.db.
Run them separately if you prefer:
npm run dev:server # API on $PORT (default 3000)
npm run dev:web # Vite; proxies /api, /mcp, /oauth, /.well-known, /metrics to $NEUROUTER_DEV_API_URL
Health checks: GET /healthz (liveness, alias /health) and GET /readyz (DB + audit store).
UI without a backend: set VITE_ENABLE_MSW=true and run npm run dev:web; the app runs against
MSW handlers generated from the shared API contract.
A prod-like stack on one machine: the Neurouter Hub image plus Postgres 18 with pgvector.
cp .env.example .env
npm run keys -- gen # paste the three values into .env (never commit them)
docker compose up --build # http://localhost:3000, MCP endpoint http://localhost:3000/mcp
Compose runs the production image in "local production" mode (NODE_ENV=development semantics
for login and URLs, because production mode requires an https PUBLIC_URL and OIDC). Sign in with
AUTH_DEV_LOGIN=true and BOOTSTRAP_ADMIN_EMAIL=<you> in .env, or use a real IdP:
docker compose --profile oidc up starts a local Dex (deploy/compose/dex.yaml, user
admin@example.com / password). Set OIDC_ISSUER=http://<host-ip>:5556/dex,
OIDC_CLIENT_ID=neurouter, OIDC_CLIENT_SECRET=neurouter-dev-secret. The issuer URL must be
reachable from both your browser and the container.docker compose --profile otel up adds an OpenTelemetry collector that logs traces and logs;
set OTEL_SDK_DISABLED=false.The image (see Dockerfile) is multi-stage on node:26-bookworm-slim (glibc, because the
onnxruntime and sqlite-vec prebuilds target glibc), runs as the non-root node user and bakes the
embedding model in, so it needs no network egress for models (EMBEDDINGS_ALLOW_REMOTE=false).
Multi-arch build: docker buildx build --platform linux/amd64,linux/arm64 -t neurouter:<tag> .
Released images (linux/amd64 and linux/arm64) are published to GHCR, signed with cosign (keyless) and shipped with an SBOM and build provenance:
docker pull ghcr.io/neurouter/hub:0.2.0
cosign verify ghcr.io/neurouter/hub:0.2.0 \
--certificate-identity-regexp '^https://github.com/neurouter/hub/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
kubectl create secret generic neurouter-crypto \
--from-literal=NEUROUTER_MASTER_KEYS='k1:…' --from-literal=NEUROUTER_ACTIVE_KEY_ID=k1 --from-literal=HASH_PEPPER='…'
kubectl create secret generic neurouter-db --from-literal=DATABASE_URL='postgres://…'
helm install neurouter oci://ghcr.io/neurouter/charts/neurouter-hub --version 0.2.0 \
--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
The chart is also in this repo at deploy/helm/neurouter-hub; it defaults to the
ghcr.io/neurouter/hub image at the chart's appVersion.
vector extension is required for more than one replica (SQLite is
single-process). Replicas coordinate through Postgres (LISTEN/NOTIFY, advisory locks, leases), so
rate limits, approvals and caches are shared; no Redis is needed.RollingUpdate with maxUnavailable: 0, a PodDisruptionBudget, a
read-only root filesystem with an emptyDir on /tmp, and migrations.mode=job (a
pre-upgrade Job migrates and pods skip it; the first install migrates on pod start). Migrations are forward-only and additive, so
old and new pods run side by side during a rollout.terminationGracePeriodSeconds is approvals.maxTimeoutSec + 30, so calls held for human
approval can finish during a rollout. Keep it at least the approvalMaxTimeoutSec setting./mcp held calls, /api/approvals/stream) needs proxy buffering off and long
read timeouts; the chart's nginx annotations set both.metrics.serviceMonitor.enabled, autoscaling.enabled, networkPolicy.enabled
(cloud metadata endpoints are always denied), archive.url for audit retention archives.| Variable | What it protects | Rotation |
|---|---|---|
NEUROUTER_MASTER_KEYS |
KEKs (id:base64-32-bytes, comma-separated) that wrap the data keys (DEKs) encrypting upstream credentials, upstream OAuth tokens and the audit checkpoint MAC key |
supported, see below |
NEUROUTER_ACTIVE_KEY_ID |
which KEK wraps new DEKs | |
HASH_PEPPER |
HMAC pepper for API keys and OAuth tokens | changing it invalidates every API key and OAuth token |
npm run keys -- gen [keyId] prints fresh values. Store them in a secret manager and back them
up: without the KEKs, stored credentials can't be decrypted, and without the pepper no API key
works.
KEK rotation (no downtime):
npm run keys -- gen k2) and append it: NEUROUTER_MASTER_KEYS=k1:…,k2:….
Set NEUROUTER_ACTIVE_KEY_ID=k2 and roll the deployment.POST /api/system/keys/rotate {"type":"rewrap"} rewraps every DEK under k2.
Poll GET /api/jobs/:id. The result's kekIdsInUse lists the KEKs still referenced.k1 is no longer in kekIdsInUse, remove it from NEUROUTER_MASTER_KEYS and roll again.DEK rotation: POST /api/system/keys/rotate {"type":"dek"} creates a new data key, re-encrypts
every secret under it and deletes retired DEKs that nothing references.
API keys look like nr_live_<10-char id>_<43-char secret>. The fixed prefix lets secret scanners
match them (e.g. a GitHub custom pattern nr_live_[0-9A-Z]{10}_[0-9A-Za-z]{43}). Only an HMAC of
the secret is stored; a leaked key is revoked from the agent's page and stops working at once on
every replica.
AUDIT_DATABASE_URL is separate,
and the crypto secret (KEKs + pepper). A database backup without the keys can't decrypt upstream
credentials; the keys without the database are useless.pg_dump -Fc "$DATABASE_URL" > neurouter.dump (and the same for the audit DB).
Restore into an empty database with pg_restore -d "$DATABASE_URL" neurouter.dump, start
Neurouter Hub with the same crypto values, then run an audit verification (below).sqlite3 neurouter.db ".backup backup.db" while it runs),
then copy the file. Restore by putting the file back at DATABASE_URL.AUDIT_ARCHIVE_URL: file:, s3://, gs://, azblob://) are
written before rows are deleted; keep them under the same retention policy as your backups.Every audit row is hash-chained (sha256(prev_hash ‖ JCS(row))), and a checkpoint signed with an
HMAC key derived from the KEKs is written every 10,000 rows or 5 minutes, on key rotation and before
every retention cut.
POST /api/audit/verify {"from"?, "to"?} (ISO timestamps; omit both to verify the whole retained log) (auditor or
admin) returns 202 {jobId}; poll GET /api/jobs/:id. The result is
{ ok, checked, firstSeq, lastSeq, checkpointsVerified, brokenAt }; brokenAt names the first
row whose hash, link or checkpoint doesn't match. The run itself is audited.OIDC_ADMIN_GROUPS,
OIDC_AUDITOR_GROUPS). AUTH_DEV_LOGIN is refused outside development./mcp with an API key or an OAuth access token issued by Neurouter Hub's
own authorization server (RFC 8414 metadata, client ID metadata documents, dynamic registration,
PKCE S256, audience-bound tokens, rotating refresh tokens). Client tokens are never forwarded
upstream.requires_approval tools are held until an owner or admin approves (never the
requester), the approval expires, or the client cancels. Clients that time out sooner should send
a progressToken; Neurouter Hub sends progress every 10 s while a call is held.UPSTREAM_ALLOW_PRIVATE_NETWORKS,
OUTBOUND_ALLOW_PRIVATE_NETWORKS).default-src 'self', no inline script), frame-ancestors 'none', and the
/mcp endpoint checks Origin against PUBLIC_URL and MCP_ALLOWED_ORIGINS.| Command | What it does |
|---|---|
npm run dev |
server + web in watch mode |
npm run build |
packages/shared → apps/web/dist → apps/server/dist |
npm start |
runs the built server (node apps/server/dist/main.js) |
npm test |
all Vitest unit tests (projects: shared, server, web) |
npm run test:e2e |
build, then the Playwright browser suite (apps/web/e2e) |
npm run coverage |
tests with v8 coverage |
npm run typecheck |
tsc -b for every workspace (TypeScript 6.0.3) |
npm run lint |
ESLint (flat config) |
npm run db:migrate -- up\|down\|status [--set main\|audit] |
migration CLI (down is dev-only) |
npm run keys -- gen |
generate crypto env values |
Not yet probed. This server declares a remote endpoint but we have not observed it, so nothing below is known either way.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.