SwitchBord

io.github.6ixtyy由 GitHub 帳號 6ixtyy 發布v0.1.1更新於 Oct 29, 2026

Free live router for paid agent APIs (x402, MPP): the best working seller for a task, plus backups.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取金融開發者工具

概覽

AI 產生的概覽

免費的即時路由服務,告訴代理針對某項任務該呼叫哪個付費 x402 或 MPP API 端點,依可用性、速度與價格排序並提供備援。

可以做什麼
  • 用自然語言描述任務,取得排序後的付費端點與備援,並附即時健康檢查
  • 列出可互換賣家的市場,含賣家數量與支付通道
  • 回報付費呼叫結果(可選附支付交易雜湊)以改善排序
適用情境
當代理能透過 x402 或 MPP 付費呼叫 API,需要挑選目前可用且價格合理的賣家而非憑猜測時使用。也適合在接上支付前先了解有哪些市場與賣家。
執行需求
遠端 streamable HTTP 端點,無需註冊、金鑰或驗證。實際呼叫付費賣家時,代理需自備錢包與 x402 或 MPP 用戶端。自架需 Node 22;選用環境變數包括 PORT、SB_REBUILD_MS、DATABASE_URL 或 POSTGRES_URL、BLOB_READ_WRITE_TOKEN 與 CRON_SECRET。
安裝前請注意
它不代付、不保管資金,也不為賣家保證;由代理用自己的錢包直接付款給賣家,因此會產生真實支出。MPP 賣家在處理前收費,x402 賣家則在成功後才收費。回報的結果與支付交易雜湊會傳送給該服務,提交的任務描述也會一併送出。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SwitchBord,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.6ixtyy%2Fswitchbord/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "switchbord": {
      "type": "http",
      "url": "https://api.switchbord.xyz/mcp"
    }
  }
}

README

[SwitchBord: the live router for paid agent APIs. An agent asks for a task; SwitchBord checks sellers live and returns the best one plus backups.]

[Live endpoints] [MCP Registry] [Protocols: x402 and MPP] [MIT License]

Website · Quick start · API · MCP setup · Self-host


Agents can now pay for APIs on their own, over x402 and MPP. There are tens of thousands of paid endpoints, and many of them are down, slow or overpriced at any given moment. SwitchBord tells your agent which ones to call. It asks for a task in plain words, like "search the web" or "ETH price", and gets back the sellers that are working, cheapest and fastest right now, checked live just before the answer, plus backups.

Free and openNo signup, no keys, no auth. MIT-licensed code you can read, run and fork.
Never touches your moneyYour agent pays the seller directly with its own wallet. SwitchBord only says who to call.
Live, not a directoryThe top candidates get a free, unpaid check right before the answer, so dead sellers drop out.
One inventory, every protocolEvery endpoint on Coinbase Bazaar (x402) and mpp.dev (MPP), rebuilt daily and grouped into markets of interchangeable sellers.

Quick start

Claude Code

bash
claude mcp add --transport http switchbord https://api.switchbord.xyz/mcp

Cursor, Windsurf, Cline and any client that reads an mcpServers block:

json
{ "mcpServers": { "switchbord": { "type": "http", "url": "https://api.switchbord.xyz/mcp" } } }

Any agent, one paste. Add this to CLAUDE.md, AGENTS.md or a system prompt (more in AGENTS-SNIPPET.md):

Before you pay any x402 or MPP API, ask SwitchBord who to call (free, no key).MCP: https://api.switchbord.xyz/mcp  or  GET https://api.switchbord.xyz/route?task=<what you need>&accepts=x402:base:usdcCall the top result; if it fails, try the next.

Building your own agent? integrations/switchbord-tool.mjs is a dependency-free tool with OpenAI-style and Anthropic-style schemas.

Selling on x402 or MPP? Show a live badge on your README: ![SwitchBord](https://api.switchbord.xyz/badge/your-host.com.svg) (details).

Plugins, Gemini CLI and other clients
  • Claude Code plugin: /plugin marketplace add 6ixtyy/switchbord, then /plugin install switchbord@switchbord
  • Gemini CLI: gemini extensions install https://github.com/6ixtyy/switchbord
  • Claude Desktop, VS Code and others: see MCP.md

Or just call the HTTP API:

bash
curl "https://api.switchbord.xyz/route?task=search%20the%20web&accepts=x402:base:usdc&max_price=0.05"

What you get back

A real answer for "search the web", trimmed to two candidates:

jsonc
{  "mode": "market",  "market": "web-search",  "sellersMatched": 99,  "candidates": [    {      "rank": 1,      "service": "StableEnrich",      "method": "POST",      "url": "https://stableenrich.dev/api/exa/search",      "priceUsd": 0.01,      "pay": ["x402:base:usdc"],      "charges": "after_success",          // x402: only charged when the seller answers OK      "input": { "body": { "query": "…", "numResults": 10 } },      "up": true, "ms": 264                // checked live just now    },    {      "rank": 2,      "url": "https://win.oneshotagent.com/v1/tools/search",      "priceUsd": 0.001,      "up": true, "ms": 217      // …    }  ]}

Every field is documented in API.md. Runnable snippets are in examples/.

How it works

mermaid
sequenceDiagram    participant A as Your agent    participant S as SwitchBord    participant P as Sellers (x402 / MPP)    A->>S: "search the web", accepts x402:base:usdc, max $0.05    S->>P: free, unpaid check of the top matches    P-->>S: payment terms + response time    S-->>A: ranked sellers, plus backups    A->>P: call the best one and pay it directly    A-->>S: (optional) report how it went
  1. Inventory. Every day SwitchBord pulls every listed endpoint from Coinbase Bazaar and mpp.dev, merges them and groups interchangeable sellers into markets.
  2. Match. Your task is matched to a market. If none fits, you still get the closest single endpoints.
  3. Check live. The top candidates get an unpaid request that reads their payment terms, so sellers that are down or misconfigured drop out.
  4. Rank. Candidates are ordered by health, speed, price and real-world results. The full logic is in src/router.ts and src/health.ts.

Reference

MCP toolUse it to
find_paid_endpointGet the best sellers for a task, with backups. Pass accepts (e.g. ["x402:base:usdc"]) so you only get sellers you can pay.
list_marketsSee the markets and how many sellers each has.
report_resultOptional: say how a call went, which improves rankings for everyone.
HTTP endpointWhat it returns
GET /route?task=…Ranked sellers for a task, checked live
GET /marketsMarkets and seller counts
GET /endpoints/:idOne endpoint from the inventory
POST /reportOptional: how a call went
GET /healthzInventory size and when it was last rebuilt
POST /mcpThe MCP server (streamable HTTP, stateless)

Paying sellers

SwitchBord does not pay for you, hold funds, or guarantee sellers. To call a paid seller, your agent needs its own wallet and an x402 or MPP client, for example Coinbase's @x402/fetch. Each candidate says how it charges:

  • after_success (x402): charged only when the seller answers OK, so trying a backup after a failure is safe.
  • before_handler (MPP): charged up front.

Run it yourself

The hosted service at api.switchbord.xyz runs this code. You can run your own copy with Node 22:

bash
git clone https://github.com/6ixtyy/switchbord && cd switchbordnpm cinpm run inventory   # pull Bazaar + mpp.dev, merge and classify → data/inventory.jsonnpm start           # API and MCP on http://localhost:8402

Everything works with no configuration. These environment variables are optional:

VariableWhat it doesWithout it
PORTPort for the local server8402
SB_REBUILD_MSHow often the local server rebuilds the inventoryevery 6 hours
DATABASE_URL or POSTGRES_URLSaves every live check to Postgresdata/checks.jsonl
BLOB_READ_WRITE_TOKENKeeps state in Vercel Blob between serverless runslocal files
CRON_SECRETLets your scheduler run the rebuild and sampling routes at any timeopen to anyone, rate-limited

To deploy on Vercel, import the repo: vercel.json builds the inventory and the function, and runs the daily rebuild.

Code map
PathWhat
src/sources/Pull listings from Coinbase Bazaar (x402) and mpp.dev (MPP)
src/inventory.ts, markets.ts, labels.tsMerge into one inventory, group into markets, label payment options
src/health.tsFree live checks: an unpaid request that reads the seller's 402
src/router.tsMatching, ranking and backups
src/history.tsCheck history (Postgres or a local file)
src/app.ts, mcp-tools.tsHTTP API and the remote MCP server
src/server.ts, vercel.tsLocal server and Vercel entry
site/switchbord.xyz: one static page, no build step
scripts/Vercel build and the API contract check
examples/curl, Node and MCP snippets

Contributing

Issues and pull requests are welcome. Bad rankings, dead sellers, new protocols and docs fixes are all useful. Read CONTRIBUTING.md first; for security issues see SECURITY.md. What changed: CHANGELOG.md. For language models: llms.txt. Privacy: PRIVACY.md.

License

MIT

來源:README.md,提交 9cbb32d

工具

3

find_paid_endpoint

Find a paid API seller

Find the best paid API endpoint (x402 / MPP) for a task right now. Returns sellers ranked by live health, speed and price, with fallbacks when several sell the same thing. Works for any task: if no group of sellers matches, it returns the closest single endpoints from the full inventory. You pay the seller directly; SwitchBord never touches money.

輸入參數task必填limitmarketacceptsmax_price_usd

list_markets

List markets

List the markets (groups of interchangeable paid endpoints) with seller counts and payment rails.

無需輸入參數。

report_result

Report a call result

Report how a paid call went so rankings stay honest. Include the payment tx hash when you paid.

輸入參數mstxnetworkoutcome必填endpoint_id必填

版本歷史

2
  1. v0.1.1最新Oct 29, 2026
  2. v0.1.0Oct 14, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分