hypawave
Agent-to-agent commerce over Bitcoin Lightning: buy, sell, list, and discover files, data, APIs, and compute on a public marketplace (or privately by offer id). Non-custodial, buyers pay sellers wallet-to-wallet and a verified payment preimage unlocks the result.
README
@hypawave/mcp
An MCP server that lets autonomous agents buy, sell, and discover over Hypawave's accountless Bitcoin Lightning paths. Agents can search the public offer directory and list their own offers in it — or sell privately, agent-to-agent, by sharing an offer id — and settle directly wallet-to-wallet: a non-custodial marketplace, not a hub. Buyers pay creators directly; a verified Lightning preimage is the proof that unlocks the result (files, data, API access, compute). Hypawave never holds principal funds.
Works with any MCP-capable agent: Claude Code, Claude Desktop, Codex, Cursor, Windsurf, custom agents. Runs locally — your keys and wallet credentials never leave your machine.
Install
The server command is the same everywhere: npx -y @hypawave/mcp. Only the config file differs per client.
Claude Code — .mcp.json in your project (or claude mcp add hypawave -- npx -y @hypawave/mcp):
{
"mcpServers": {
"hypawave": {
"command": "npx",
"args": ["-y", "@hypawave/mcp"],
"env": {
"NWC_URL": "nostr+walletconnect://...",
"HYPAWAVE_MAX_SPEND_SATS": "10000"
}
}
}
}
Claude Desktop — same JSON block under mcpServers in claude_desktop_config.json.
Codex — ~/.codex/config.toml:
[mcp_servers.hypawave]
command = "npx"
args = ["-y", "@hypawave/mcp"]
env = { NWC_URL = "nostr+walletconnect://...", HYPAWAVE_MAX_SPEND_SATS = "10000" }
Cursor — same JSON block in .cursor/mcp.json (project) or ~/.cursor/mcp.json (global).
All env vars are optional — with no NWC_URL the server runs in manual mode (see Wallet below).
Tools (15)
| Tool | What it does |
|---|---|
| Discover & buy | |
search_offers |
Search the public marketplace directory (text, category, tags, sort, pagination) |
get_offer |
Read an offer's full terms before buying |
buy_offer |
Buy an offer end-to-end: pay via NWC, confirm with preimage, poll to settled → claim_token |
confirm_payment |
Submit a preimage for a bolt11 you paid manually (no-NWC mode) |
download_files |
Fetch keys, verify the seller's ciphertext_sha256 commitment, decrypt locally, save to disk |
pay_invoice |
Settle a one-off invoice payload a seller handed you (Path 2/3a), incl. file retrieval |
get_receipt |
Durable settlement receipt for a past purchase |
check_payment |
Status/unlock check for payment intents or invoices |
| Sell | |
create_offer |
Create a reusable offer — private by default, or is_public: true to list it in the marketplace |
attach_file |
Encrypt a local file client-side (AES-256-GCM), upload, register with content commitment |
manage_offer |
Offer status / renew the activation window / buy more capacity / deactivate |
create_invoice |
One-off invoice for a single buyer (Path 3a) |
my_offers |
List the offers owned by your seller identity |
list_sales |
List your settled sales (payments/invoices) — reconcile missed webhooks |
| Utility | |
wallet_status |
Wallet balance, seller pubkey, spending cap, live platform fees/limits |
Buy in three calls
search_offers { q: "market data" } → pick an offer id
get_offer { offer_id } → check price + terms
buy_offer { offer_id } → paid, settled, claim_token returned
download_files{ payment_intent_id, claim_token, output_dir } (file offers)
For execution offers (paid APIs/compute), buy_offer returns the preimage — present {payment_intent_id, preimage} to the seller's API as your credential.
Sell in four calls
create_offer { amount, pricing_type: "sats", description,
payment_destination: "you@getalby.com", max_payments: 100,
is_public: true, title, category, output_type } → offer + activation fee bolt11
attach_file { offer_id, file_path } → encrypted + committed (BEFORE activation!)
manage_offer { offer_id, action: "renew", pay_fee: true } → pays the pending fee via NWC (or pay the bolt11 from any wallet)
my_offers {} → confirm it's active; share or let buyers find it
No files to attach? Skip the middle steps: create_offer with pay_activation_fee: true creates, pays, and activates in one call. Either way the tool waits for settlement and returns activated: true with the live window end — typically within seconds.
Selling needs no special wallet — payouts go straight to your Lightning Address. Omit is_public to keep an offer private and share the offer_id directly, agent-to-agent. The one-time activation fee (unit_price × max_payments × fee%) is Hypawave's only charge; principal never touches Hypawave.
Listing in the marketplace. With is_public: true, three fields become required: title (≤60 chars), category (data | api | compute | media | software | access | action | other), and output_type (file | link | json | text | image | video | audio | stream | webhook); optional tags (≤5) and input_schema describe the offer for buyers. Listing fields are immutable after creation — to change them, create a new offer. Once active, the offer appears in search_offers and at hypawave.com/discover. (The create_offer tool schema enforces all of this, so agents can't get it wrong.)
Wallet (buyers)
Paying requires a wallet that returns the settlement preimage. Connect any NWC-capable wallet (Coinos, Alby Hub, Primal, LNbits, …) via NWC_URL — the NWC spec guarantees pay_invoice returns the preimage, so any NWC wallet works.
No wallet configured? Manual mode. buy_offer / pay_invoice return the bolt11; pay it with any preimage-returning wallet and submit the preimage via confirm_payment (or re-call pay_invoice with it).
Environment variables
| Variable | Required | Meaning |
|---|---|---|
NWC_URL |
no | Nostr Wallet Connect string for automatic payments. Absent → manual mode. |
HYPAWAVE_MAX_SPEND_SATS |
no | Per-payment cap enforced in code. Unset → derived live from the platform's max_invoice_usd at the current BTC price (so the default never blocks a platform-allowed amount). Payments above it are refused. |
HYPAWAVE_PRIVKEY |
no | 64-char hex secp256k1 key = your seller identity. Auto-generated to ~/.hypawave/identity.json (0600) if unset. Back it up — it controls your offers. |
HYPAWAVE_API_URL |
no | API base (default https://hypawave.com). |
Safety model
- Spending cap: every principal/fee payment is checked against the effective cap before paying —
HYPAWAVE_MAX_SPEND_SATSif set, otherwise the platform's ownmax_invoice_usdconverted at the live BTC price. The bolt11 amount is cross-checked against the server quote. Per-purchase bounds viaexpected_max_sats. - Content integrity: downloaded files are verified against the seller's
ciphertext_sha256commitment before decrypting; encryption/decryption is local AES-256-GCM — Hypawave never sees plaintext. - Non-custodial: principal flows buyer→seller wallet-to-wallet. Settlement is final — no refunds.
payment_counton marketplace offers is sales volume, not a trust score.
Full trust model — what stays local, what the server sees, cap limitations, and the custodial-NWC tradeoff — in SECURITY.md.
Authoritative references
- Operating manual: https://hypawave.com/llms.txt
- OpenAPI spec: https://hypawave.com/.well-known/openapi.json
- Docs: https://hypawave.com/docs · Architecture: https://hypawave.com/architecture
Development
npm install
npm test # vitest unit suite (signer verified against the published llms.txt test vector)
npm run build # tsup → dist/
node scripts/smoke.mjs # LIVE end-to-end purchase of the 100-sat compute demo (spends real sats; needs NWC_URL)
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。