MCP client for Macaroon Network -- discover and buy from a live marketplace where AI agents pay per query in Bitcoin over Lightning.
Project description
macaroonnetwork-mcp
MCP client for Macaroon Network — a marketplace where AI agents discover, pay for (Bitcoin/Lightning via L402), and buy live data.
What this does
Four tools:
macaroons_search— semantic search over the live marketplace registry by natural-language intent. Free.macaroons_metadata— free freshness/content-hash metadata for a feed target, before deciding whether to buy. Free.macaroons_purchase/macaroons_execute— pay via Lightning L402 and receive the real, predicate-verified result. See "Paying" below — by default this package holds no wallet and doesn't attempt payment for you.
Paying
This package never holds a private key or wallet credential by default.
When a purchase/execute call needs payment, it returns a payment_required
result instead of failing:
{
"payment_required": true,
"invoice": "lnbc...",
"macaroon": "eyJ...",
"amount_msat": 250000,
"instructions": "Pay this BOLT11 invoice with your own Lightning wallet, then call this same tool again with identical arguments PLUS resume_macaroon set to the macaroon above."
}
Pay the invoice with whatever Lightning wallet you actually have, then call
the same tool again with resume_macaroon set to the macaroon above. A
plain retry without resume_macaroon mints a brand-new invoice instead of
resuming the one you just paid — always pass it back.
If you run your own real LND node and want this package to auto-pay from
it instead of returning payment_required, set:
MACAROONS_BUYER_LND_MODE=external
LND_BUYER_HOST=your-node:10009
LND_BUYER_TLS=/path/to/tls.cert
LND_BUYER_MACAROON=/path/to/admin.macaroon
This shells out to a real lncli binary on your machine — install LND's
lncli separately, it isn't bundled here.
Install
pip install macaroonnetwork-mcp
Use with an MCP client
{
"mcpServers": {
"macaroonnetwork": {
"command": "macaroonnetwork-mcp"
}
}
}
Talks to https://api.macaroonnetwork.com by default. Override with
MACAROONS_REGISTRY_URL / MACAROONS_FEED_URL env vars to point at a local
dev stack instead. MACAROONS_SESSION_BUDGET_SATS (default 1000) caps total
spend per server process; each tool call also takes a max_spend_sats
per-call cap (default 100).
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file macaroonnetwork_mcp-0.2.0.tar.gz.
File metadata
- Download URL: macaroonnetwork_mcp-0.2.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3ce4020723d65764f4cd2af7092dfe16fa248648a5a3664bfbb4c0d4bf155fb
|
|
| MD5 |
23c848a540a8a4be13b8225a4b804210
|
|
| BLAKE2b-256 |
b1a2fad9c3ef8301d4784066c00b5450bb49c31ce2d04d35e0f390c8260f0554
|
Provenance
The following attestation bundles were made for macaroonnetwork_mcp-0.2.0.tar.gz:
Publisher:
publish-mcp-pypi.yml on kevmoz/macaroonnetwork
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macaroonnetwork_mcp-0.2.0.tar.gz -
Subject digest:
c3ce4020723d65764f4cd2af7092dfe16fa248648a5a3664bfbb4c0d4bf155fb - Sigstore transparency entry: 2339994368
- Sigstore integration time:
-
Permalink:
kevmoz/macaroonnetwork@c4bde2629562640be51c11b9163c9d2f1cee7a13 -
Branch / Tag:
refs/tags/mcp-v0.2.0 - Owner: https://github.com/kevmoz
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp-pypi.yml@c4bde2629562640be51c11b9163c9d2f1cee7a13 -
Trigger Event:
push
-
Statement type:
File details
Details for the file macaroonnetwork_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: macaroonnetwork_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e458154ac2de02b7a91cb5d32eb43e1f3e079d9b5a225d898183f63e3098d47c
|
|
| MD5 |
8021bc85b8d0e0a3f7a270e0ab61c0f3
|
|
| BLAKE2b-256 |
6931f675e622e3d866c6edd6a80797746fa2247943d6babe28a641cb09d55970
|
Provenance
The following attestation bundles were made for macaroonnetwork_mcp-0.2.0-py3-none-any.whl:
Publisher:
publish-mcp-pypi.yml on kevmoz/macaroonnetwork
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
macaroonnetwork_mcp-0.2.0-py3-none-any.whl -
Subject digest:
e458154ac2de02b7a91cb5d32eb43e1f3e079d9b5a225d898183f63e3098d47c - Sigstore transparency entry: 2339994392
- Sigstore integration time:
-
Permalink:
kevmoz/macaroonnetwork@c4bde2629562640be51c11b9163c9d2f1cee7a13 -
Branch / Tag:
refs/tags/mcp-v0.2.0 - Owner: https://github.com/kevmoz
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp-pypi.yml@c4bde2629562640be51c11b9163c9d2f1cee7a13 -
Trigger Event:
push
-
Statement type: