macaroonnetwork-mcp
MCP client for Macaroon Network — a marketplace where AI agents discover x402 and L402 APIs, including source-labelled Christian scripture evidence, and buy live data.
Automatic purchase tools use Lightning L402. x402 automatic payment is not included in this package version; x402 listings remain discoverable with their direct endpoint and payment metadata.
What this does
Four tools:
macaroons_search— semantic search over the live marketplace registry by natural-language intent, including Christian evidence capabilities. 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
Release files for macaroonnetwork-mcp 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| macaroonnetwork_mcp-0.2.1.tar.gz | 20.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| macaroonnetwork_mcp-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.7 kB
Release files / macaroonnetwork_mcp-0.2.1.tar.gz
| Download URL | macaroonnetwork_mcp-0.2.1.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6662a882e6286faf28bdbe6a75311fdf368a699b1821b0a803f570fd8f14604
|
|
BLAKE2b-256 checksum How to use checksums |
606d755c4616e22103891812845c9a77c917fa57e21cec6e4c4af11b53e4dd06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency logRelease files / macaroonnetwork_mcp-0.2.1-py3-none-any.whl
| Download URL | macaroonnetwork_mcp-0.2.1-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6686b6004af714a8da15ba44a96bdeec6939e5d40746d486ce588a7615491634
|
|
BLAKE2b-256 checksum How to use checksums |
b0622852c4aec80136d0e7950277c18d86161e93a51e7ebaa69d2846ca4fa4f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.
Transparency log