com.macaroonnetwork/mcp-server
MCP server for browsing and paying for evidence-backed data/capabilities on Macaroon Network.
Search sale-ready products by natural-language intent (free).
Retrieve free freshness/content-hash metadata for feed targets.
Get canonical categories, live MCP servers/transports, and reviewed source/rights records (free, per README).
Execute paid marketplace capabilities with predicate verification and receipts, using x402/USDC challenge + signed retry (README) or L402 hold-invoice flow (schema).
Purchase feed-target change-events with spend caps and acceptance predicates (schema).
Override the registry URL with
MACAROONS_REGISTRY_URLfor local development.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@com.macaroonnetwork/mcp-serversearch for live Bitcoin price data feeds and show me freshness metadata before I buy one"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
macaroonnetwork-mcp
MCP discovery router for Macaroon Network, a marketplace where agents find evidence-backed products and pay per successful query.
The payment rail exposed by this release is x402 using USDC on Base mainnet. The package never holds a wallet or signs a payment. It returns the exact x402 challenge for the caller's own wallet infrastructure to sign, then accepts that signed proof on the retry.
Tools
macaroons_search— search sale-ready products by natural-language intent. Free.macaroons_metadata— retrieve free freshness and content-hash metadata for a feed target.macaroons_categories— retrieve the canonical category registry and exact mapped-product counts. Free.macaroons_discover_mcp— retrieve evidenced live Macaroon MCP servers and their transports. Free.macaroons_sources— retrieve reviewed source and rights records, with explicit partial-coverage reporting. Free.macaroons_execute— execute an x402 USDC product and receive the predicate-verified result and receipt.
Related MCP server: hypawave
Paying with x402
When a product needs payment, macaroons_execute returns an
x402_payment_required result instead of hiding the challenge:
{
"x402_payment_required": true,
"resource_url": "https://api.macaroonnetwork.com/execute/...",
"amount_atomic": "3000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "eip155:8453",
"pay_to": "0x33cc...",
"extra_name": "USD Coin",
"extra_version": "2",
"max_timeout_seconds": 60,
"x402_version": 2
}Sign the exact payment described by the challenge with your own wallet or
Coinbase CDP infrastructure. Then call macaroons_execute again with identical
arguments plus payment_signature. x402 exact settlement uses one signed
retry; there is no invoice-polling flow.
Install
pip install macaroonnetwork-mcpUse with an MCP client
{
"mcpServers": {
"macaroonnetwork": {
"command": "macaroonnetwork-mcp"
}
}
}The default registry is https://api.macaroonnetwork.com. For local
development, override it with MACAROONS_REGISTRY_URL.
License
MIT
Available Tools
4 toolsmacaroons_executeA
Execute a paid marketplace capability by capability_id. Pays via Lightning L402 against a hold invoice — payment only settles if the acceptance predicate passes against the bridge response; bridge errors and predicate failures refund. If no wallet is configured (the default), returns payment_required with a real invoice for you to pay yourself.
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Capability input payload matching the listing input_schema. | |
| predicate | No | Optional acceptance predicate. Defaults to the listing's sample_predicate when omitted. | |
| capability_id | Yes | Registry capability_id, e.g. 'polymathica-heated-channel-v1'. | |
| max_spend_sats | No | Hard per-call spend cap in satoshis. | |
| resume_macaroon | No | Only set this after a prior call returned payment_required and you've since paid that invoice with your own wallet — set it to the macaroon that call returned. Omit on a first attempt. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it delivers: it explains the hold-invoice settlement condition, refund on bridge errors or predicate failures, and the no-wallet default that returns payment_required with a real invoice. This is unusually concrete about payment behavior and error paths.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three dense sentences with the main action first, followed by payment mechanics and the default no-wallet behavior. Every sentence adds information and none repeats schema content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The complex payment flow, refund behavior, and no-wallet fallback are well covered. However, since there is no output schema, the description could be more explicit about the success return shape and how refund/error responses are surfaced; it only details the payment_required return path.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, but the description adds workflow-level meaning around predicate (settlement condition) and resume_macaroon (usable only after a prior payment_required) beyond the parameter descriptions. It still leaves max_spend_sats to the schema, which is acceptable because the schema already documents it.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb ('Execute') and resource ('paid marketplace capability by capability_id'), and the payment mechanism makes it distinct from sibling search/metadata/purchase tools. It is immediately clear what operation the tool performs.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description makes the tool's role clear—executing a paid capability and paying via L402—but does not explicitly state when to prefer it over macaroons_purchase or search. Context implies it, but no direct exclusions or alternatives are named.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
macaroons_metadataA
Get free metadata for a feed target before purchasing. Returns freshness and content_hash. No payment required.
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | The feed target id (e.g. 'runpod'). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of behavioral disclosure. It does well by stating the operation is free, requires no payment, and returns specific fields. It could have been more explicit that it performs no purchase or execution, but the 'Get' and 'before purchasing' framing strongly implies a read-only, non-destructive action.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences, front-loaded with the main action and outcome. Every sentence adds value: what it does, what it returns, and that no payment is required. No filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter metadata lookup with no output schema, the description provides enough context: when to call it, what it returns, and its cost/behavior. It is sufficient for an agent to select and invoke the tool correctly in the purchase workflow implied by the siblings.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%: the schema already documents target_id clearly. The description adds only the phrase 'feed target' which aligns with the schema, but does not enrich parameter semantics meaningfully beyond the schema. Baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Get'), a clear resource ('metadata for a feed target'), and concrete outputs ('freshness and content_hash'). It also distinguishes itself from purchase-related siblings by explicitly saying it is for 'before purchasing' and requires no payment.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear usage timing: use this when you want free metadata 'before purchasing'. It does not explicitly name alternatives or exclusion conditions, but the 'before purchasing' signal is enough to orient the agent relative to siblings like macaroons_purchase and macaroons_execute.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
macaroons_purchaseA
Purchase change-events for a feed target. Pays via Lightning L402 against a hold invoice — payment only settles if the acceptance predicate passes against the delivered payload; otherwise it is fully refunded. If no wallet is configured (the default), returns payment_required with a real invoice for you to pay yourself.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of change-events to return | |
| since | No | ISO-8601 timestamp — only change-events after this are considered. Defaults to 30 days ago. | |
| predicate | Yes | Acceptance predicate. Payment only settles if this passes against the real delivered payload. | |
| target_id | Yes | The feed target id from macaroons_metadata | |
| max_spend_sats | No | Hard per-call spend cap in satoshis. | |
| resume_macaroon | No | Only set this after a prior call returned payment_required and you've since paid that invoice with your own wallet — set it to the macaroon that call returned. Omit on a first attempt. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries full burden and does an excellent job: it discloses hold-invoice settlement, refund-on-failed-predicate, no-wallet default behavior, and the need to pay a returned invoice manually. Nothing important is hidden.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three tight sentences, with the core purpose first, the payment settlement mechanism second, and the no-wallet fallback last. Every clause earns its place and the unusual L402 behavior is explained compactly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the complex payment semantics, refund path, and fallback despite no output schema or annotations. It is slightly incomplete about what a successful paid response contains, but the phrase 'change-events' and rich input schema make the remaining gap minor.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The tool-level description mostly restates what the predicate and resume_macaroon schemas already say, adding no substantive parameter-level insight beyond the structured descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and object ('Purchase change-events for a feed target') and names the resource being acted on. The paid/retrieval nature and the feed-target scope distinguish it from search, metadata, and execute siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explains the payment flow and fallback behavior, and references feed target id from macaroons_metadata, giving some contextual guidance. However, it never explicitly states when to prefer this tool over macaroons_search or macaroons_execute, nor does it give when-not-to-use conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
macaroons_searchA
Search Macaroon Network for capabilities matching an intent. Returns ranked listings with price, predicate hash, and freshness. Free, no payment required.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return | |
| intent | Yes | Natural language description of what the agent needs. E.g. 'GPU pricing data updated in the last 24 hours' |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of behavioral disclosure. It does disclose that results are ranked and include price, predicate hash, and freshness, which is helpful. However, it does not describe sorting behavior, pagination semantics beyond the schema's limit parameter, error conditions, or the exact structure of the returned listings.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two short sentences with no filler. It front-loads the core purpose and then efficiently adds return-value highlights and the key cost-related behavior.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple search tool with a small parameter set and full schema coverage, the description is mostly complete. It tells the agent what the tool does, what results contain, and that no payment is needed; minor gaps such as exact response formatting and sort criteria are not critical for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents both parameters. The description adds no additional meaning beyond repeating the concept of 'matching an intent' and does not elaborate on how the 'limit' affects ranking or result completeness.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Search') and resource ('Macaroon Network') and clearly states the purpose: finding capabilities matching an intent. It also distinguishes itself from sibling tools by explicitly describing a read-only discovery operation with ranked results, rather than metadata access, purchase, or execution.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies this is the discovery tool to use before purchasing or executing, but it does not explicitly name alternatives or say when not to use it. The statement 'Free, no payment required' provides useful context that this is a non-purchase operation, but it stops short of routing the agent away from siblings like macaroons_metadata.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v0.2.0- First observed
macaroons_execute - First observed
macaroons_metadata - First observed
macaroons_purchase - First observed
macaroons_search
TDQS
Scored across 4 tools
Each tool targets a distinct stage: search discovers capabilities, metadata inspects a specific feed target pre-purchase, purchase acquires change-events, and execute runs a paid capability. Search and metadata both return freshness, which causes slight overlap, but their inputs and outputs are different enough for an agent to choose correctly.
All tools share the macaroons_ prefix and mostly follow a macaroons_<action> pattern. Three are clear verbs (search, purchase, execute), while metadata is a noun rather than get_metadata, creating a minor inconsistency but not a confusing one.
Four tools is well-scoped for this marketplace-focused server: discover, inspect, acquire, and use. Each tool has a clear purpose and none feel redundant or extraneous.
The core lifecycle for a paid capability marketplace is covered: find capabilities, inspect feed metadata, purchase change-events, and execute capabilities. A minor gap is the lack of a tool to list previously purchased capabilities or check wallet/payment status, but agents can likely work around that using returned capability IDs.
Maintenance
Related MCP Connectors
Agent-first data marketplace — AI agents search, purchase, and sell datasets via MCP.
Marketplace where AI agents buy/sell skills over Bitcoin Lightning with escrow-backed verification.
Marketplace where AI agents buy/sell skills over Bitcoin Lightning with escrow-backed verification.
Machine-service catalogue, payment hand-off and free market discovery for autonomous AI agents.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI agents to discover, purchase, and query blockchain-based datasets using Filecoin/IPFS storage with Ethereum NFT access controls and Lit Protocol encryption. Provides a decentralized marketplace for secure dataset trading with automatic purchase workflows and SQL query capabilities.0-
- AlicenseAqualityAmaintenanceGive your agent an address: private agent-to-agent messaging, free encrypted file handoffs, and Lightning commerce. Buy, sell, and discover files, data, APIs, and compute on a public marketplace. Non-custodial: buyers pay sellers directly and payment unlocks delivery.2755 npmMIT No Attribution
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover, preview, purchase, and sell datasets on the DataBazaar marketplace, with tools for search, secure Stripe payments, listings, and seller communication.224 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to access verifiable DePIN supply-side telemetry, browse and purchase data products using credits, query datasets, and verify data provenance with cryptographic and zero-knowledge tools.1023 npmMIT