Boltwork

io.github.Squidboy30由 GitHub 账号 Squidboy30 发布v0.1.12更新于 Oct 27, 2026

AI services via Bitcoin Lightning — PDF summarisation, code review, translation and more.

概览

AI 生成的概览

封装 Boltwork 按次付费 AI 服务 API,让助手通过闪电网络以比特币聪自动付费,完成摘要、代码审查、翻译和文档提取。

可以做什么
  • 对文本、URL 指向的 PDF 和网页生成摘要
  • 审查粘贴的代码或 GitHub/GitLab 链接中的代码,并用通俗语言解释代码
  • 从 PDF 提取结构化数据和表格,翻译文本或文档,比较两份 PDF 的差异
  • 存储、读取和删除持久化的智能体记忆键
  • 在一次调用中串联多个服务执行工作流
  • 两个免费试用工具(文本摘要与代码审查)无需钱包即可使用,限每小时 5 次
适用场景
适合希望在助手内完成文档摘要、代码审查、翻译或 PDF 提取,又不想注册 API 密钥或订阅,并愿意用闪电网络钱包支付费用的场景。可先用免费试用工具体验服务,再配置钱包。
运行要求
以本地 Python 包运行(pip install boltwork-mcp 或 uvx boltwork-mcp),NWC 钱包方式需安装 nwc 附加组件。付费工具需要一种闪电网络钱包后端:NWC_CONNECTION_STRING,或 LNbits 地址与 API 密钥,或 Strike API 密钥,或 PHOENIXD_URL 加 PHOENIXD_PASSWORD。需要能访问 Boltwork API 和钱包服务的网络。
安装前请注意
付费工具会自动花费真实比特币聪,且没有确认步骤:标价从记忆读取的 5 聪到代码审查的 2000 聪,run_workflow 为 1000 聪。NWC_CONNECTION_STRING、LNBITS_API_KEY、STRIKE_API_KEY、PHOENIXD_PASSWORD 等钱包凭据具有支付权限,应尽量设置预算或限额。提交的文档、代码和文本会发送到第三方 Boltwork API,记忆内容也存储在那里;memory_delete 可删除某个键。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Boltwork,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-name: io.github.Squidboy30/boltwork-mcp

boltwork-mcp

MCP server for Boltwork — AI services that pay for themselves via Bitcoin Lightning.

Give your AI agent PDF summarisation, code review, translation, web extraction, document comparison, and persistent memory — all paid autonomously in sats. No API keys. No subscriptions. No accounts.

[PyPI] [Python 3.11+] [License: MIT] [API]


What this is

Boltwork is a pay-per-call AI services API that uses the L402 protocol — your agent makes a request, receives a Lightning invoice, pays it automatically, and gets the result back. No human involved.

This package wraps Boltwork as an MCP server so any MCP-compatible AI (Claude, Cursor, Windsurf, etc.) can use it as a tool — with payments handled transparently in the background.


Try it immediately — no wallet required

Two tools work right now with zero setup:

json
{  "mcpServers": {    "boltwork": {      "command": "uvx",      "args": ["boltwork-mcp"],      "env": {}    }  }}

Then ask your AI:

"Use trial_review_code to review this: def add(a, b): return a + b""Use trial_summarise to summarise this: <paste any text>"

Real AI results instantly. No Lightning wallet. No setup. Rate limited to 5 calls/hour.


Install

bash
pip install boltwork-mcp
# If using NWC (Alby, Mutiny, Coinos, etc.):pip install "boltwork-mcp[nwc]"

Or use directly with uvx — no install needed:

bash
uvx boltwork-mcp

Setup — pick a wallet

Four wallet backends are supported. Pick whichever fits your setup:

Option A — NWC / Nostr Wallet Connect (easiest)

Works with Alby, Mutiny Wallet, Coinos, Primal, Cashu.me, and any NWC-compatible wallet.

  1. Get a connection string:
    • Alby — go to nwc.getalby.com, create a budget, copy the string
    • Mutiny — Settings → Connections → Add connection
    • Coinos — coinos.io → Settings → Nostr Wallet Connect
  2. Add to your MCP config:
json
{  "mcpServers": {    "boltwork": {      "command": "uvx",      "args": ["boltwork-mcp"],      "env": {        "NWC_CONNECTION_STRING": "nostr+walletconnect://your-string-here"      }    }  }}

Requires: pip install "boltwork-mcp[nwc]"


Option B — LNbits

Works with lnbits.com or any self-hosted LNbits instance. Popular with BTCPay Server users and home node operators.

  1. Create a wallet at lnbits.com or your instance
  2. Go to API info → copy your Invoice/read key
json
{  "mcpServers": {    "boltwork": {      "command": "uvx",      "args": ["boltwork-mcp"],      "env": {        "LNBITS_URL": "https://lnbits.com",        "LNBITS_API_KEY": "your-invoice-key-here"      }    }  }}

For self-hosted: set LNBITS_URL to your instance URL (e.g. https://lnbits.yourdomain.com).


Option C — Strike

Works with a Strike account. Custodial, simple API key setup. Good for US users or anyone who already uses Strike.

  1. Create an account at strike.me
  2. Go to dashboard.strike.me/developers/api-keys → create an API key
json
{  "mcpServers": {    "boltwork": {      "command": "uvx",      "args": ["boltwork-mcp"],      "env": {        "STRIKE_API_KEY": "your-api-key-here"      }    }  }}

Option D — Phoenixd

Works with Phoenixd — ACINQ's self-hosted Lightning node. Simple REST API, no channel management.

  1. Install Phoenixd: phoenix.acinq.co/server
  2. Get your HTTP password from the Phoenixd config
json
{  "mcpServers": {    "boltwork": {      "command": "uvx",      "args": ["boltwork-mcp"],      "env": {        "PHOENIXD_URL": "http://localhost:9740",        "PHOENIXD_PASSWORD": "your-password-here"      }    }  }}

MCP config locations

ClientConfig file
Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows)%APPDATA%\Claude\claude_desktop_config.json
Cursor.cursor/mcp.json in your project
Windsurf~/.codeium/windsurf/mcp_config.json

Available tools

ToolWhat it doesCost
trial_summariseSummarise text — free trialFree
trial_review_codeReview code — free trialFree
summarise_pdfSummarise a PDF from URL500 sats
summarise_webpageSummarise any web page100 sats
review_codeFull code review with bugs, security, quality2000 sats
review_code_urlReview code from GitHub/GitLab URL2000 sats
extract_dataExtract structured data from PDF200 sats
translateTranslate text or document (24 languages)150 sats
extract_tablesExtract all tables from a PDF300 sats
compare_documentsDiff two PDFs500 sats
explain_codeExplain code in plain English500 sats
memory_storeStore persistent agent memory10 sats
memory_retrieveRetrieve agent memory5 sats
memory_deleteDelete a memory keyFree
run_workflowChain multiple services in one call1000 sats

Payment flow

When your agent calls a paid tool:

  1. boltwork-mcp calls the Boltwork API
  2. Receives HTTP 402 with a Lightning invoice
  3. Pays the invoice automatically using your configured wallet
  4. Retries the request with the payment proof
  5. Returns the result to your agent

Your agent never sees this — it just gets the result.


Links

来源:README.md,提交 8d802db

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。