Open source · Apache-2.0 · First release in progress

Know whether agents can actually use your API.

Point Neurouter at your OpenAPI or GraphQL spec. In ten minutes you have a governed MCP server, a score for how well agents use it, and a feed of what they wish it could do.

  • Apache-2.0
  • Self-hosted
  • Read-only by default
  • OpenAPI 3.x and GraphQL
From an OpenAPI spec to a governed MCP server with an agent-readiness score Example with the fictional Acme Orders API. Left: an openapi.yaml spec card listing GET /orders, GET /orders/{id}, POST /refunds and 42 more operations. It is compiled through a Neurouter governance gate with three checks: read-only by default, per-call policy, and audited. Out come MCP tools on the acme-orders server: list_orders, get_order and search_customers; legacyExportOrders struck through because an overlay hides it; create_refund locked as a write that is off in prod; and a run_script code-mode tool. Right: an agent-readiness gauge that rises from a ghosted 52 to 87, labelled Ready, with tool mode at 81 and code mode at 87. SPEC GOVERN MCP TOOLS MEASURE openapi.yaml Acme Orders API · 3.1 GET/orders GET/orders/{id} POST/refunds …42 more 46 operations · 9 writes compile Neurouter policy on every call read-only by default per-call policy audited dev · qa · prod acme-orders /mcp/acme-orders/prod list_ordersread get_orderread search_customersread legacyExportOrdershidden by overlay create_refundwrite · off in prod run_script()code mode 31 tools · 15 hidden · ops tools pinned neurouter_begin_task · neurouter_report_unmet_need neurouter_explain_error · neurouter_whoami … 87 was 52 Agent readiness READY tool mode81 code mode87 From an OpenAPI spec to a governed MCP server with an agent-readiness score Example with the fictional Acme Orders API. An openapi.yaml spec with GET /orders, GET /orders/{id}, POST /refunds and 42 more operations is compiled through a Neurouter gate: read-only by default, per-call policy, audited. It becomes MCP tools: list_orders, get_order, search_customers, a hidden legacyExportOrders, create_refund as a write that is off in prod, and run_script for code mode. The agent-readiness gauge rises from 52 to 87, Ready, with tool mode 81 and code mode 87. SPEC openapi.yaml Acme Orders API · 3.1 · 46 operations GET/orders GET/orders/{id} POST/refunds …42 more compile Neurouter policy on every call mock · dev · qa · prod read-only by default per-call policy audited acme-orders /mcp/acme-orders/prod list_ordersread get_orderread search_customersread legacyExportOrdershidden by overlay create_refundwrite · off in prod run_script()code mode 31 tools · 15 hidden · ops tools pinned 87 was 52 Agent readiness READY tool mode81 code mode87
Illustrative. Example (fictional Acme Orders API): 46 operations become 31 curated tools; readiness goes from 52 to 87 after four fixes and code mode.
Why it matters

Turning a spec into MCP is free now. Knowing it works isn't.

Any OpenAPI file can become an MCP server in a minute. What you get is a mirror of your API, built for programmers, handed to a model. Six things go wrong.

Agents fail quietly

A wrong tool pick or a malformed argument looks fine in a demo. You find out from a support ticket, not from a dashboard.

800 operations, 20 useful

Mirror a whole API and the model has to choose among near-duplicates, deprecated endpoints and internal routes it should never see.

Responses burn tokens

Full upstream payloads land in the context window: nested objects, links and fields nobody asked for.

Writes near production

The generated server that reads orders can also issue refunds, with whatever credential was pasted into a config file.

No feedback channel

When an agent can't do what the user asked, it guesses or gives up. Nobody learns what the API was missing.

No evidence for security review

“Which calls did the agent make, under which policy, with what result?” needs an answer that isn't a chat transcript.

How it works

Import, govern, measure, improve. Then measure again.

One loop, run against your spec and a mock of your API until the number says agents succeed.

  1. Import

    spec → tool model → overlay

    Import OpenAPI 3.x or GraphQL from a URL, a file or introspection. Neurouter compiles a tool model and lints it; you curate it with an overlay.

    Importing specs
  2. Govern

    environments · read-only · policy

    Each server gets a built-in mock plus the dev, QA and prod environments you add, each with its own credentials. Writes stay off until you turn them on, and every call passes one policy pipeline.

    Environments
  3. Measure

    tasks · evals · readiness

    Agents' calls are grouped into tasks you can trace. Evals generate tasks from your spec, run them on your model keys and produce a readiness score.

    Evals
  4. Improve

    fix suggestions · unmet needs

    Failed tasks become fix suggestions in the form of overlay changes, verified before you apply them. Unmet needs show what to build next.

    Overlays

↻ Re-run the eval after every change: the score tells you whether it helped.

Agent readiness

A number you can put in CI.

Neurouter generates realistic tasks from your spec, including some the API can't do, runs them against a mock with the models you choose, and checks what the agents actually called. The result is a score from 0 to 100 for each model and mode: Not ready, Needs work, Ready or Excellent.

Example (fictional Acme Orders API)

Before

Needs workRaw spec, tool mode · run #14

+35 pts

After

Ready4 fixes + code mode · run #18
Run #18 · score (task success) · 3 repetitions per task
ModelTool modeCode mode
claude-sonnet81 (83%)87 (90%) best
claude-opus84 (86%)89 (92%)
claude-haiku70 (71%)74 (76%)

The headline is the first model's best mode. Model names are generic tiers; the numbers are an illustration, not benchmark results.

What the score is made of

  • Task success45%
  • Tool quality (spec lint)20%
  • Impossible tasks handled10%
  • Efficiency (calls per task)10%
  • Stability across repetitions10%
  • Task framing5%

.github/workflows/agent-readiness.yml

on: pull_request
jobs:
  readiness:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: neurouter/core/actions/eval@v0.2.1
        with:
          spec: openapi.yaml
          min-score: 75
          openai-api-key: ${{ secrets.OPENAI_API_KEY }}

Or locally

npx neurouter eval --spec openapi.yaml --min-score 75
Code mode, governed

One round trip instead of N.

For multi-step work, the agent writes a short Python script that calls your tools as functions. Every inner call passes the same ACL, policy, rate limit and audit as a direct call. Writes in dry-run return a plan, not a side effect.

run_script · mode="dry_run"

# Late, unpaid orders: add a note to each one
orders = acme_orders.list_orders(status="unpaid", limit=200)
late = [o for o in orders if ops.days_since(o["due_date"]) > 30]
for o in late:
    acme_orders.add_order_note(order_id=o["id"], text="Reminder sent")
return {"late": len(late)}
  • 30 s wall time
  • 10 s CPU
  • 200 tool calls
  • 64 MiB memory
  • no imports, files or network
Planned changesdry run · 3 writes
ToolArguments
add_order_noteorder_id: "ord_1042", text: "Reminder sent"
add_order_noteorder_id: "ord_1077", text: "Reminder sent"
add_order_noteorder_id: "ord_1093", text: "Reminder sent"
Example (fictional Acme Orders API). Nothing was written. In prod, executing asks the user to confirm this exact plan, and any write outside it is refused.
Ops tools

Agents tell you what they need.

Every Neurouter server includes a small set of neurouter_* tools. Agents use them to frame their work and report problems; you read the result in the ops inbox.

ToolWhat the agent doesWhat you get
begin_task / end_taskStates the goal, then the outcomeCalls grouped into tasks with success rates
report_unmet_needSays what the user wanted that no tool can doGrouped requests: your API's missing features
report_issueFlags a tool that misbehavesBugs with evidence, linked to the call
log_decisionRecords a choice and its reasonThe “why” next to each call in the trace
explain_errorAsks how to fix a failed callFewer retries in the dark
get_examplesAsks for known-good argumentsFewer malformed calls
whoamiChecks environment, scopes and limitsAgents that know writes are off before trying
The Neurouter console ops inbox: unmet-need groups such as “Refund several orders at once” with report counts, and open issues reported by agents.
The ops inbox in the demo console (fictional Acme Corp data).
Safe by construction

Agents get the access you chose, nothing more.

Defaults are conservative and every rule runs in one place: the same pipeline checks direct calls, searched calls, script calls and eval runs.

Security model
  • Read-only by defaultA new environment refuses every write tool until you enable writes, for all tools or a list.
  • dev, QA and prod, each with its own credentialsAn MCP endpoint per environment, and keys and tokens bound to one of them. Evals never run against prod.
  • Per-tool write switchesTurn on exactly the writes an environment needs, such as add_order_note but not create_refund.
  • Prod writes need confirmationThe user confirms each production write in their client. Clients that can't ask are refused.
  • Scripts never see tokens or URLsCode-mode scripts call functions; credentials and base URLs stay in the server.
  • Audit log and OpenTelemetryEvery call, script and admin change in a hash-chained audit log, with spans and metrics for your own observability stack.
  • Credentials from your secret storeConfiguration holds references such as env:ORDERS_TOKEN, never values. Stored secrets are encrypted.
Overlays

Curate without forking the spec.

An overlay is a small YAML file next to your spec. It renames tools, hides the ones agents shouldn't see, rewrites descriptions, adds examples and trims responses to the fields that matter.

Re-import the spec; your curation stays. Overlays point at operations, not at lines in the file, and anything that no longer matches is listed after the import.

acme-orders.overlay.yaml

overlay: 1
tools:
  "operationId:getOrdersV2":
    name: list_orders
    description: List orders, newest first. Filter by status or customer_id.
    response:
      include: ["[].id", "[].status", "[].total", "[].created_at"]
      maxItems: 50
  "operationId:legacyExportOrders":
    hidden: true
  "operationId:createRefund":
    name: create_refund
    examples:
      - title: Refund 12.50 EUR # amount is in minor units
        arguments: { order_id: ord_1042, amount: 1250, currency: EUR }
Deployment

Runs where your API runs.

Neurouter is one Node.js service with a sandboxed executor beside it. Start it on a laptop with SQLite, then run it next to your API in Docker or Kubernetes with Postgres. Bring your own model keys for evals.

  • npx neurouter
  • Docker
  • Helm
  • SQLite or Postgres
  • one neurouter.yaml in git

Local, with the config in your repository

npx neurouter serve --config neurouter.yaml
# prints a one-time sign-in link for the console

neurouter.yaml

version: 1
servers:
  - slug: acme-orders
    name: Acme Orders
    spec: { path: ./specs/orders.yaml }
    overlay: ./overlays/acme-orders.overlay.yaml
    environments:
      - slug: prod
        kind: prod
        baseUrl: https://api.orders.acme.test
        auth: { type: bearer, secret: "env:ORDERS_TOKEN" }

v0.2.1 is out: npm neurouter, image ghcr.io/neurouter/core and the neurouter-core Helm chart.

Open source

The core is Apache-2.0.

Software that sits between agents and your API should be something you can read. Inspect it, run it, change it.

v0.1 in progress

Neurouter, self-hosted

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

  • Spec compiler, overlays and the MCP server
  • Environments, policy pipeline and audit log
  • Code mode with the sandboxed executor
  • Ops tools, tasks and the ops inbox
  • Evals, readiness score, CLI and GitHub Action
  • The console
Planned

Managed cloud

A hosted Neurouter, operated for you.

  • The same compiler, policy model and evals
  • No infrastructure to run or upgrade
  • Not available yet, and no prices set
The Neurouter family

Already running many MCP servers?

Neurouter Hub puts one governed gateway in front of them: single sign-on, per-tool access control, human approvals and a tamper-evident audit log.

Neurouter Hub ↗
FAQ

Questions we expect.

Isn't this another OpenAPI-to-MCP generator?

Generating tools from a spec is the easy part, and Neurouter does it too. The difference is what comes after: overlays to curate the tool set without forking the spec, one policy pipeline with read-only defaults on every call, a governed code mode, ops tools that let agents report what's missing, and evals that tell you with a number whether agents succeed.

Which models do evals use, and who pays?

Evals run on your own model API keys. OpenAI, Anthropic and Gemini models are supported (default gpt-6-luna). You choose the models, modes and repetitions, and the console estimates the number of model calls before a run starts. Neurouter adds no charge of its own.

Does any data leave my network?

Neurouter is self-hosted and sends nothing to us. It connects to the APIs you configure, your identity provider if you use one, and, when you run evals, the model provider whose key you supplied. The optional embedding model for tool search runs locally; it is downloaded once when you turn it on.

How is code mode sandboxed?

Scripts are a restricted Python subset with no imports, classes, files or network, run by the Monty interpreter in a separate executor process with CPU, memory, time and call limits. The worker is discarded after every run. Scripts reach your API only through Neurouter, so every inner call passes the same policy, and they never see credentials or upstream URLs.

Does it work with Claude Code, Cursor and VS Code?

Yes. Each server and environment is a remote MCP endpoint over Streamable HTTP. Clients connect with an API key or sign in with OAuth 2.1, and the console generates the configuration snippet for Claude Code, Cursor, VS Code and generic clients.

GraphQL?

Yes, from SDL or introspection. Each query and mutation field becomes a tool, mutations count as writes, and overlays, policy and evals work the same way as for OpenAPI.

How is it related to Neurouter Hub?

They come from the same team. Neurouter makes one API ready for agents; Neurouter Hub is a gateway that governs the many MCP servers an organization already runs. A Neurouter server is a remote MCP server, so it can sit behind Hub.

What's the license?

The core is open source under Apache-2.0. A managed cloud is planned; its pricing isn't set, so we don't publish any.

Give agents an API they can use, and a score that proves it.

Import a spec, connect a client, run an eval. Then make the number go up.