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 分