bolthub

ai.bolthub由 bolthub.ai 發布v0.7.2更新於 Oct 27, 2026

The bolthub API marketplace, L402 gateways, and your other MCP servers, on one Lightning budget.

概覽

AI 產生的概覽

把 bolthub API 市集、L402 閘道和你其他的 MCP 伺服器整合在單一入口下,依次以聰(sats)付款,共用一份閃電網路預算。

可以做什麼
  • 搜尋、檢視、預估費用並呼叫市集中的 API,購買額度,簽發或撤銷受限權杖
  • 用 OpenAPI 或 Postman 規格把自己的 API 上架為付費清單,進行稽核、發布,並查看收益與用量
  • 執行節點啟動工具,管理工作區與錢包,並開啟、讀取或關閉即時 SSE 資料流
  • 把某個 L402 閘道的 OpenAPI 端點直接暴露為具名工具
  • 代理你其他的本機或遠端 MCP 伺服器,在預算內支付 L402 付款挑戰並重試
適用情境
適合希望讓助理透過單一連線與單一支出上限存取眾多付費 API 或既有 MCP 伺服器的情境,也適合把自己的 API 當作付費清單販售並追蹤收益。
執行需求
透過 npx 以 stdio 程序在桌面 MCP 用戶端本機執行。錢包為選用:設定 LND_REST_HOST 與 LND_MACAROON、NWC_URI、LNBITS_URL 與 LNBITS_ADMIN_KEY,或 PHOENIXD_URL 與 PHOENIXD_PASSWORD 其中之一。帳戶類工具需要 BOLTHUB_ACCOUNT_TOKEN 或瀏覽器配對工具。預算由 BUDGET_SATS 或設定檔決定。
安裝前請注意
付費呼叫會從你的錢包花掉真實的聰;務必設定預算,因為未設定 BUDGET_SATS 代表無上限。LND_MACAROON、NWC_URI、LNBITS_ADMIN_KEY、PHOENIXD_PASSWORD 等錢包憑證屬於機密,建議使用僅限付款的 macaroon。帳戶類工具可發布清單並簽發或撤銷權杖,草稿只有在你發布後才會公開。被代理的下游伺服器會收到各自的流量。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@bolthub/mcp

The bolthub MCP server. One entry in your MCP client config; behind it, three kinds of tool source sharing one wallet and one Lightning budget:

  • The bolthub marketplace — search, inspect, and call every listed API (search_apis, get_api_details, preview_cost, call_api, buy_credit, mint_scoped_token, revoke_token, plus the Node Launcher tools).
  • Your own API as a listing — turn an OpenAPI/Postman spec into a draft paywalled listing, audit it against the seller rubric, take it live when you're ready, and track what it earns (list_api, analyze_listing, publish_listing, get_earnings, usage_summary). These act on your account, so they need a token: say "connect my bolthub account" (connect_account runs a one-click browser pairing; nothing secret touches the chat) or set BOLTHUB_ACCOUNT_TOKEN yourself. Buying stays account-less. Drafts stay invisible until you explicitly publish.
  • Specific L402 gateways — a gateway's OpenAPI endpoints become directly-named tools.
  • Your other MCP servers — local or remote, proxied transparently: free tools pass straight through; a tool that answers with an L402 payment challenge is paid inside your budget and retried.

Replaces @bolthub/mcp-registry and @bolthub/mcp-bridge (both deprecated — migration below).

Source: signaltech-org/bolthub-sdk · Docs: docs.bolthub.ai

Quick start

Add to your MCP client config (Cursor, Claude Desktop, OpenClaw, etc.):

json
{  "mcpServers": {    "bolthub": {      "command": "npx",      "args": ["-y", "@bolthub/mcp"],      "env": { "NWC_URI": "<your-nwc-connection-string>" }    }  }}

With no config file this runs in marketplace mode: every listed bolthub API is available to your agent through the meta-tools. New listings appear automatically; no config changes, ever.

The full setup: one config file

~/.bolthub/mcp.json — the mcpServers block is the exact shape your MCP client already uses, so paste your existing entries in wholesale:

jsonc
{  "marketplace": true,  "gateways": ["https://btc-intel.gw.bolthub.ai"],  "mcpServers": {    "filesystem": {      "command": "npx",      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/me/notes"]    },    "remote-tools": {      "url": "https://tools.example.com/mcp",      "headers": { "Authorization": "Bearer …" }    }  },  "budget":     { "sat": 10000 },   // lifetime ceiling for this run, ALL sources combined  "maxPerCall": { "sat": 500 },     // per-call ceiling  "namespace":  "prefix",           // "prefix" (default) or "flat"  "telemetry":  false               // reserved; v1 sends nothing anywhere}

Then point the client at it:

json
{  "mcpServers": {    "bolthub": {      "command": "npx",      "args": ["-y", "@bolthub/mcp", "--config", "~/.bolthub/mcp.json"],      "env": { "LND_REST_HOST": "…", "LND_MACAROON": "…" }    }  }}

What the agent sees

  • Marketplace meta-tools, unprefixed: search_apis, get_api_details, preview_cost, call_api, buy_credit, mint_scoped_token, revoke_token, deploy_node, node_status, list_api, analyze_listing, publish_listing, get_earnings, usage_summary, connect_account, connect_status, create_workspace, connect_wallet, get_onboarding_state, plus open_stream / read_stream / close_stream for live SSE feeds.
  • With a wallet configured, wallet_status: inspect the SPENDING wallet (balance, permissions, connectivity) — the payer-side counterpart to node_status, and the first thing to run when a payment fails.
  • Gateway endpoints, prefixed by gateway slug: btc-intel__get_v1_history_candles, ….
  • Downstream MCP tools, prefixed by their config key: filesystem__read_file, ….

Two servers can both expose a search tool — prefixing keeps them apart. namespace: "flat" passes bare names through instead and fails at startup on any collision (a tool is never silently shadowed).

Wallet (optional)

Set ONE of these in the server's env:

LND_REST_HOST + LND_MACAROON         (recommended, fastest <200ms)NWC_URI                              (easiest setup, slower 1-3s)LNBITS_URL + LNBITS_ADMIN_KEY        (alternative, <300ms)PHOENIXD_URL + PHOENIXD_PASSWORD     (alternative, <200ms)

No wallet is not an error: free tools and marketplace search keep working; paid calls return their payment challenge with a setup hint.

One budget, hard guarantee

budget.sat caps what the server can spend over its lifetime — across gateway calls, call_api, and paid downstream MCP tools combined. Reservations are synchronous, so concurrent calls on different sources can't jointly overspend. budget.sat: 0 is valid and means "free tools only". The agent can never lift the ceiling; refusals come back as clean "Payment refused" results.

Every payment logs one line to stderr (your local audit trail). The telemetry flag is reserved: v1 sends nothing anywhere, on or off; if a future version adds an opt-in ingest it will carry { scheme, asset, amount } only — no tool arguments, no resource identity.

Migrating from @bolthub/mcp-registry / @bolthub/mcp-bridge

BeforeAfter
npx @bolthub/mcp-registrynpx @bolthub/mcp (zero config = same behavior)
npx @bolthub/mcp-registry --api-url <url>npx @bolthub/mcp --api-url <url>
npx @bolthub/mcp-bridge --gateway <url>npx @bolthub/mcp --gateway <url>
--budget / BUDGET_SATSunchanged (now a single pool across all sources)
gateway tool btc-intel_get_v1_xbtc-intel__get_v1_x (double-underscore namespace)

Remove the old entries from your client config rather than stacking them next to this one — a nested bolthub bin inside mcpServers would pay from its own wallet env, invisible to the shared budget (the server warns at startup if it spots this).

Notes & limits (v1)

  • Proxies MCP tools only — no resources, prompts, or sampling passthrough yet.
  • The downstream tool list is snapshotted at startup; hot add/remove needs a restart.
  • A downstream that fails to start is skipped with a stderr warning; the rest keep serving.
  • Everything logs to stderr, never stdout (stdout is the MCP channel).

License

MIT

來源:packages/mcp/README.md,提交 0ed257e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.7.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分