Self-hosted retrieval router for AI agents: budgets, provider routing, route receipts.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
One search endpoint for AI agents. Put a router in front of Brave, Tavily, Exa, Firecrawl, and Crossref. Every request carries a hard cost ceiling and deadline; every response comes back with a receipt that says which provider ran, why, and what it cost.
Your agents stop hard-coding a provider into prompts and app code. They send one request shape; the gateway picks an eligible provider under a policy you control, enforces the budget and deadline before the call, retries safely on failure, and returns normalized results plus a full trace. You keep your provider keys β they never leave your gateway.
Nothing is a black box. Every /v1/search response carries the routing decision:
A provider is eligible only when its credentials, task fit, circuit state, spend, and deadline all pass. Budgets and deadlines are eligibility rules, not best-effort hints. Fallback happens only on retryable failures.
No provider account needed β the public Crossref route runs out of the box:
From another shell:
To route real web search, set a provider key and use a web task instead:
New to Firecrawl? New accounts get 10% off the first month through this link (referral β FetchMux earns a small commission, no extra cost to you).
Point any MCP client (Claude, Cursor, and friends) at the published server:
Two read-only tools: search_web and preview_search_route.
Or use the typed SDK, @fetchmux/sdk:
Bring your own key for each. Set the matching *_API_KEY, plus an optional
*_COST_PER_REQUEST_USD if you want dollar budgets enforced.
| Provider | Use | Key |
|---|---|---|
| Brave | web search | BRAVE_API_KEY |
| Tavily | web search, research | TAVILY_API_KEY |
| Exa | web search, docs | EXA_API_KEY |
| Firecrawl | page content | FIRECRAWL_API_KEY |
| Crossref | scholarly metadata | none (CROSSREF_ENABLED=true) |
| Method | Path | Auth | Behavior |
|---|---|---|---|
GET | /health | public | Process health and version |
GET | /ready | public | Provider readiness |
GET | /v1/providers | bearer | Provider configuration status |
POST | /v1/route/preview | bearer | Ranked candidates, no provider call |
POST | /v1/search | bearer | Routed retrieval and route receipt |
Full contract: docs/openapi.yaml.
The process does not auto-load .env in local Node development; set variables in the shell or a
process manager. Docker Compose reads the ignored .env file.
| Variable | Default | Purpose |
|---|---|---|
FETCHMUX_API_KEY | none | Protected-route bearer key |
FETCHMUX_API_KEYS | none | Comma-separated keys for rotation |
FETCHMUX_AUTH_DISABLED | false | Exact true bypasses auth (trusted local use only) |
FETCHMUX_ALLOWED_ORIGINS | none | Comma-separated browser origins; no CORS when empty |
FETCHMUX_HOST | 127.0.0.1 | Bind address |
FETCHMUX_PORT | 8787 | TCP port |
BRAVE_API_KEY / TAVILY_API_KEY / EXA_API_KEY / FIRECRAWL_API_KEY | none | Provider credentials |
CROSSREF_ENABLED | false | Exact true enables the credential-free scholarly route |
CROSSREF_CONTACT_EMAIL | none | Monitored contact for Crossref's polite pool |
*_COST_PER_REQUEST_USD | none | Per-provider cost estimates used by dollar budgets |
See provider configuration before enabling maxCostUsd.
Non-root Distroless image: Linux capabilities dropped, read-only root filesystem, provider credentials passed only at container start.
Validate every case and provider pairing with no network calls or credits:
Live mode needs provider keys and an explicit --confirm-live. Check each provider's terms before
publishing results β see the benchmark methodology.
Open source, self-hosted, single-tenant, BYOK. Route events go to stdout as JSON and exclude your query text, keys, and result content by default. No database, no telemetry.
It is not a hosted service, a pooled-credit reseller, or a claim that these providers are interchangeable. Provider names are the adapters it ships with, not partnerships. A hosted version is on the roadmap β star the repo to follow.
More docs: product design Β· local development Β· deployment Β· provider configuration Β· data handling Β· incident response
Security issues: security@fetchmux.com.
Apache-2.0. Free to self-host, modify, and redistribute.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/fetchmux)<a href="https://allmcps.com/mcp/fetchmux"><img src="https://allmcps.com/api/badge/fetchmux?style=directory" alt="Fetchmux on AllMCPs" /></a>