AI API · Bitcoin Lightning · MCP Server

Boltwork.
Pay per call.

AI services for autonomous agents. Pay in sats via Bitcoin Lightning — no accounts, no API keys, no subscriptions. Plug into any MCP-compatible AI in 2 minutes.

Install MCP Server API Reference Live API

Your agent pays automatically

Boltwork uses the L402 protocol — an open standard for machine-to-machine payments over the Lightning Network. Your agent calls an endpoint, receives a Lightning invoice, pays it in under a second, and gets the result back. No human involved.

01
Agent calls API
POST to any Boltwork endpoint
02
402 + invoice
Server returns Lightning invoice
03
Wallet pays
Your wallet settles in <1 second
04
Result returned
AI result delivered to agent

Works with Claude, Cursor, Windsurf

The boltwork-mcp package wraps the Boltwork API as a Model Context Protocol server. Add it to your MCP config and your AI can call any Boltwork tool as a native capability — payments handled transparently in the background.

Two tools work free with zero setup:

Install
pip install boltwork-mcp

# Or use directly with uvx (no install):
uvx boltwork-mcp
claude_desktop_config.json / .cursor/mcp.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"

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

Pick a Lightning wallet

For paid tools, you need a Lightning wallet configured. Alby NWC is the fastest — 2 minutes from zero to paying.

⚡ Alby / NWC Recommended

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

  1. Go to nwc.getalby.com
  2. Create account → set a budget
  3. Copy the connection string
  4. Add to MCP config as NWC_CONNECTION_STRING

"env": {
  "NWC_CONNECTION_STRING": "nostr+walletconnect://..."
}

🏦 LNbits

Works with lnbits.com or any self-hosted LNbits instance.

  1. Create wallet at lnbits.com
  2. Copy your Invoice/read key
  3. Add to MCP config

"env": {
  "LNBITS_URL": "https://lnbits.com",
  "LNBITS_API_KEY": "your-key"
}

💳 Strike

Simple API key setup. Good for US users.

  1. Create account at strike.me
  2. Go to Developers → API keys
  3. Add to MCP config

"env": {
  "STRIKE_API_KEY": "your-api-key"
}

🔧 Phoenixd

Self-hosted Lightning node by ACINQ.

  1. Install Phoenixd
  2. Get HTTP password from config
  3. Add to MCP config

"env": {
  "PHOENIXD_URL": "http://localhost:9740",
  "PHOENIXD_PASSWORD": "your-password"
}

15 tools. Fractions of a penny.

ToolWhat it doesCost
trial_summariseSummarise text — free trial, rate limitedFree
trial_review_codeCode review — free trial, rate limitedFree
summarise_pdfSummarise a PDF from URL500 sats
summarise_webpageSummarise any web page100 sats
review_codeFull code review — bugs, security, quality2000 sats
review_code_urlReview code from GitHub/GitLab URL2000 sats
extract_dataExtract structured data from a PDF200 sats
translateTranslate text or document (24 languages)150 sats
extract_tablesExtract all tables from a PDF300 sats
compare_documentsDiff two PDF documents500 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

Direct API access

All endpoints are at https://parsebit.fly.dev. Every paid endpoint uses L402 — you'll receive a 402 Payment Required with a Lightning invoice if you don't include a valid payment token.

Example — summarise a PDF
curl -X POST https://parsebit.fly.dev/summarise/upload   -H "Content-Type: application/json"   -d '{"url": "https://example.com/document.pdf"}'

# Returns HTTP 402 with WWW-Authenticate header containing invoice
# Pay the invoice, then retry with:
# -H "Authorization: L402 <token>:<preimage>"
Check setup endpoint
curl https://parsebit.fly.dev/setup
# Returns wallet setup guide as JSON

For full endpoint documentation and the L402 manifest: parsebit.fly.dev/.well-known/l402.json

📦
PyPI
pip install boltwork-mcp
GitHub
Source code & issues
🚀
Live API
parsebit.fly.dev