WebRouter

Agent frameworks and SDKs

Search, extract, answer, research and browse the web through one interface, across many providers.

Your AI app calls the WebRouter MCP server, which does the agent frameworks and SDKs work and sends the result back to the chat.

About WebRouter

WebRouter is a community MCP server from Nimbleway, filed in our directory under agent frameworks and sdks. Search, extract, answer, research and browse the web through one interface, across many providers.

WebRouter runs on your own machine: your AI app starts it with the command uvx webrouter==0.17.0 and talks to it over standard input and output.

WebRouter is listed in the official MCP registry as io.github.Nimbleway/webrouter, version 0.17.0.

At a glance

Publisher
Nimbleway (community)
Runs
Locally on your machine
Install from
Python package on PyPI: webrouter
Written in
Python
License
Apache-2.0
GitHub stars
1,250
Official MCP registry
io.github.Nimbleway/webrouter

How to set up WebRouter

  1. Install uv on the machine that runs your AI app, because WebRouter starts with uvx and fetches its Python package on first run.
  2. Check the WebRouter README for keys or settings; the registry lists none that WebRouter requires.
  3. Add WebRouter to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the WebRouter tools to confirm the connection.
  5. Run one read-only task with WebRouter first, and keep your app asking before each tool call until the results look right.

WebRouter compared with similar servers

  • Arcade by ArcadeAI has fewer GitHub stars than WebRouter (1.1k against 1.3k); both are community servers, and both run locally.
  • Search2ai by fatwang2 has more GitHub stars than WebRouter (1.3k against 1.3k); both are community servers, and both run locally.
  • Gateway Registry by agentic-community has fewer GitHub stars than WebRouter (1.1k against 1.3k); both are community servers, and both run locally.

Before you connect WebRouter

  • Give WebRouter its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each WebRouter tool call until you trust what it does with them.
  • Treat text that WebRouter fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for WebRouter on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for WebRouter

How marketing and sales teams put WebRouter to work, by company size. Pick the size closest to yours and start WebRouter on one use case.

Small business

  • A small business with a developer can use WebRouter to build one focused agent, such as lead follow-up, without a big platform.
  • Technical founders can prototype marketing agents with WebRouter and keep what works as a small, owned tool.
  • WebRouter runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineering teams can use WebRouter to build agents that combine CRM, analytics and content tools behind one workflow.
  • Marketing ops can standardize on WebRouter so every agent they ship has the same logging, approvals and error handling.
  • Start WebRouter on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can build on WebRouter with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Platform teams can use WebRouter to give business units a governed way to ship agents without each one starting from scratch.
  • WebRouter is a community server, so have security review the code and pin a version before WebRouter touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

WebRouter README

From Nimbleway/webrouter on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

WebRouter

The open source standard for agent web access.
One typed interface for search, extract, answer, research, live data and browsers, across about 30 providers.

Documentation (docs.webrouter.net) · Quickstart · Providers · Examples · WeBench · Website · Discord

Developer preview: the API may change before 1.0. Share feedback on Discord.

Every web API for agents has its own SDK, parameters and response shape. WebRouter puts one interface in front of about 30 of them, which between them cover search, extract, answer, research, live data and browsers. Your agent makes the same call whichever provider answers, a failing provider falls back to the next, and each search, extract, answer, research and browse call says who answered, how long it took and, where the price is known, what it cost. Search and page reading work free, with no key.

from web_router import WebRouter

with WebRouter() as router:  # no API key needed to start
    results = router.search("what is retrieval augmented generation", max_results=5, timeout=10)
    pages = router.extract(results.urls[:3], timeout=30)  # markdown, whichever backend serves it

print(results.provider, [doc.url for doc in pages.documents])

Why WebRouter

  • One interface, about 30 providers. Tavily, Exa, Brave, Perplexity, Firecrawl, Nimble and more. The same call and the same typed result from every provider that serves a method; switching is one argument. Nothing is lost: unmapped fields stay in extra and the raw payload in raw.
  • Never silently weaker. An option a provider cannot honour raises UnsupportedParameterError instead of being dropped, so a call never runs under looser constraints than you asked for.
  • Automatic fallback. auto tries the providers you hold keys for, best-benchmarked first, then the free tiers, and passes the call on when one fails or returns nothing. The order comes from committed benchmark results, and response.provider always says who answered. Compare the providers yourself on WeBench.
  • Cost and time you can see and cap. Search, extract, answer, research and browse responses name the provider, the time taken and, where the price is known, the cost; budgets cap a call or a whole session in dollars and seconds. Try the free backends first and keep a log of what you spent (budgets).
  • Free to start. Search and extract work with no key; each key you add unlocks more providers. A local browser needs no key either.
  • Built for agents. An MCP server, plus ready-made tools for LangChain, Claude and OpenAI agents.
  • Measure, don't guess. benchmark() and evaluate() compare providers on your own queries and score their accuracy against known answers.
  • Yours to run. Apache 2.0, runs in your process with your own keys, and sends each key only to its own provider.

Install

pip install webrouter     # or: uv add webrouter

Or try the command line with no install and no key:

uvx --python ">=3.11" --from webrouter webrouter search "rust async runtimes" -n 5

Python 3.11 or later. The base install runs search and extract with no key. Extras add the rest: browser, mcp, aws, or all for every one; see the Quickstart.

Keys are read from the environment. Copy .env.example, which names every variable and where to get it, and fill in the ones you hold. To pass them in code instead, and never from the environment, see keys from code only.

Methods

Method What it does Keyless
search Web results for a query Yes
extract Page contents for URLs, in markdown, html or text Yes
answer A written answer with its sources, in one call No
research A multi-step research run, as prose or a schema you give No
live_data A vendor's ready-made scraper for one site, returning records No
open_browser A browser session you drive, local or in the cloud Yes (local)
browse A task handed to a hosted browser agent No
call_data_api A data API: a vendor's own API (Google Ads, Datadog, ...) with your credentials No
with WebRouter() as router:
    router.answer("who won the 2022 world cup final")  # .answer, .citations
    router.research("how did nvidia's datacenter mix shift in 2025", output_schema=MySchema)
    router.live_data("amazon_products", {"url": product_url}, provider="brightdata")

    with router.open_browser() as browser:  # a local Chromium, no key
        browser.goto("https://example.com")

Every method has an async twin on AsyncWebRouter.

Providers

Method Providers
Search Nimble, Tavily, Exa, Brave, Context.dev, Perplexity, Parallel, Linkup, You.com, WebIQ, Keenable, DeepSeek, AWS AgentCore, Valyu, Seltz, Octen, Keirolabs, SpecStream, Firecrawl, Apify, plus the keyless You.com, Exa and Parallel MCP endpoints
Extract Nimble, Tavily, Firecrawl, Exa, Linkup, Oxylabs, Bright Data, Jina Reader, WebIQ, Keenable, DeepSeek, Browserbase, SpecStream, Apify, plus Obscura run on your machine, and LiteParse and LlamaParse for documents
Answer Perplexity, You.com, Linkup, Parallel, Exa, Brave
Research Nimble, Parallel, Perplexity, Linkup, You.com
Live data Nimble, Apify, Bright Data, Oxylabs
Browser sessions Local Chromium, Browserbase, Steel, Hyperbrowser, Anchor, Kernel
Browser agents Browserbase, Browser Use, Skyvern

Providers has each provider's key, the options it maps and how it was verified. Adding one is two methods: see Adding a provider.

Routing and fallback

For search, extract, answer, research and the browser methods, name no provider and auto serves the call: every provider you hold a key for, in the order committed benchmark results rank them, then the free tiers. A member that fails, is rate-limited or answers empty passes the call to the next. A member that cannot honour an option you set is skipped for that call, and if none can, the call raises rather than running without it. Live data has no fallback, since a source belongs to one vendor: live_data_sources() with no provider searches every vendor you hold a key for, and each source it returns names its own, which live_data() runs it on. Vendor calls always name their vendor, since an account belongs to one.

from web_router import Provider, WebRouter

WebRouter(Provider.TAVILY).search("...")  # one provider, by name
WebRouter().search("...", provider="exa")  # or per call

router = WebRouter(provider_config={"auto": {"chain": {"extract": ["nimble", "firecrawl"]}}})
router.extract(url)  # Nimble, then Firecrawl if Nimble fails

A named provider is never quietly swapped for another: a missing key raises an error naming the variable to set. In a service, share one router per process, set timeout= on each call and turn on the web_router logger: see Running in production. The auto order lists each method's order and how it is generated.

Budgets and cost control

from web_router import Budget, PreferredRouter, WebRouter, prices

router = WebRouter(router=PreferredRouter("cheap"))  # free backends first, then the cheapest paid ones
log = router.log_spend("spend.jsonl")  # from here on, every answered call is logged
response = router.answer("...", budget=Budget(max_cost_usd=0.01, time_limit_s=10))
response.provider, response.cost_usd, response.cost_source, response.elapsed_s

with router.budget(Budget(max_cost_usd=3.0, time_limit_s=600)) as b:
    b.search("...")
    b.research("...")
    b.status()  # spent, reserved, remaining, time left

log.report()  # what you spent, by day, backend and method
prices.estimate("tavily", "search")  # 0.008: list price of one request

Every response carries cost_usd: the backend's own figure where it states one (cost_source="reported"), 0 for a call on a backend's keyless tier (cost_source="keyless"), else an estimate. The data-driven router, when attached, orders measured search candidates in plan(), run() and MCP web_run. When no router orders the backends, a cost cap makes auto try the cheaper of the backends that score alike first.

Each attempt is checked against what is left before it starts, so parallel calls never overspend together, and a backend that does not fit is skipped with the reason recorded. Estimates come from the list prices shipped in web_router.prices, not your bill. Only search (its keyless backends) and open_browser (local) have a $0 backend; Cost and budgets has the table per method, a fall-back for a batch that runs out, and the spend log. An experimental router can also pick the method and provider for each prompt, and url_policy="public_only" keeps a planned call off private and cloud-metadata hosts. See Smart routing.

Use it from an agent

Let your agent set it up. Paste one prompt into Claude Code, Codex, Cursor or any agent with a shell: it installs WebRouter, runs a real search and page read with no key, and reports which provider answered and what it cost. See Onboard your agent.

MCP server. Every method as a tool, running on your machine with your keys:

claude mcp add web-router -- uvx --python ">=3.11" --from "webrouter[mcp]" web-router-mcp

The MCP guide covers Claude Desktop, Cursor and other clients, credentials, tool costs and browser guards.

Command line. The same methods from a shell, printing JSON, for scripts and agents that run commands rather than speak MCP:

webrouter search "rust async runtimes" -n 5 | jq -r '.results[].url'

See Command line for every command and its exit codes.

Agent frameworks. Ready-made web_search and web_extract tools, with a compact rendering for the model and the full response kept for you:

from web_router import WebRouter
from web_router.integrations.langchain import web_router_tools

tools = web_router_tools(WebRouter(), max_results=5)  # LangChain

web_router.integrations.anthropic and web_router.integrations.openai give Claude and OpenAI agents the same tools as plain tool definitions. See Agent integrations.

Data flow

WebRouter runs inside your process, or as an MCP server you start yourself. There is no WebRouter service in between, and nothing to sign up for.

  • Each call goes straight from your machine to the backend that serves it, carrying your query or URL and that backend's own key. A key is sent only to its own provider.
  • Which backends: the ones you hold a key for, and, when auto has none left for a method, the free tiers listed in Working with no credentials. Name a provider to keep a call on that backend alone.
  • Beyond the backends: call_data_api reaches the vendor API you name, with that vendor's credentials; WEB_ROUTER_MCP_ROUTER=remote sends a prompt to the router service at the URL you set; and evaluate() downloads the question set you pick and calls the judge model you configure.
  • No telemetry. The package sends no usage data and does not call home.
  • Keys stay in the process. They are read from the environment (and, for the MCP server, from a .env it is pointed at), held in memory, and kept out of logs and tool results. The server writes no key to disk: load_env's remember records the file's path, never its contents.

Compare providers on your own queries

report = router.benchmark("nvidia q3 earnings", providers=["nimble", "tavily", "you-mcp"])
for run in report.runs:
    print(run.provider, run.latency, run.count if run.ok else run.error)

benchmark_extract() does the same for extract, and evaluate() scores each provider's accuracy on a question set with known answers (SimpleQA, FRAMES, SealQA or your own CSV) with an LLM judge. See Benchmarks and evaluation, and benchmarks/ for the published runs behind the default order.

WebRouter or calling each provider directly

Each provider's SDK WebRouter
Switching provider Rewrite the call, options and parsing One argument
Response shape Different per provider One typed model, raw payload kept
An unsupported option Varies by provider Raises, naming who can serve it
A provider fails Your retry code Falls back to the next you hold a key for
Which provider to use Guesswork Order from published benchmarks, benchmark() on your queries
Spend Per-vendor dashboards Per-call and per-session caps, list prices in the package
Agent tools One integration per provider One MCP server and one set of tools

Documentation

Contributing

Contributions are welcome, and the most useful one is small: map one more of a provider's options, or add a provider.

make install  # every extra, dev tools and pre-commit hooks
make check    # lint, typecheck and the offline unit tests; no keys needed

CONTRIBUTING.md has the workflow and the provider checklist, STYLE_GUIDE.md the review standards, and AGENTS.md the rules for AI coding agents working on this repo.

Community

Useful? Star the repo so more agent developers can find it. ⭐

License

Apache License 2.0. The SimpleQA grader prompt vendored at src/web_router/evals/prompts/ keeps its own MIT license, in LICENSE-simple-evals beside it. NOTICE carries the attribution for the data-driven router's table.

Questions about WebRouter

What is the WebRouter MCP server?

Search, extract, answer, research and browse the web through one interface, across many providers. WebRouter is maintained by Nimbleway on GitHub at Nimbleway/webrouter, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the WebRouter MCP server?

Add WebRouter to your AI app's MCP config with the command uvx webrouter==0.17.0. In Claude Code, run claude mcp add --transport stdio webrouter -- uvx webrouter==0.17.0. To run WebRouter this way you need uv installed.

Does WebRouter need an API key?

The registry lists no required keys for WebRouter. Check the WebRouter README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is WebRouter an official MCP server?

No. WebRouter is a community server maintained by Nimbleway. Community servers can be excellent; read the code and the open issues before you give WebRouter access to company data.

What license is WebRouter under?

WebRouter is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of WebRouter; the service it connects to has its own terms.