AgentPay402 MCP

v0.4.0
io.github.kato9292929/agentpay402-mcp Checked 22 hours ago Published 12 days ago

Pay for x402 APIs safely with your own wallet: Seller Probe check, on-chain proof, receipt refetch.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_wallet_address Get wallet address

Returns the address of the configured wallet on each chain it can pay on (CAIP-2 ids such as eip155:84532 for Base Sepolia). Use it to tell the user where to send funds or which address will appear as the payer. Read-only: looks the address up with the wallet provider and moves no money. Fails with a clear message when no wallet is configured (WALLET_PROVIDER=none).

ParameterTypeDescription
chainstringCAIP-2 chain id, e.g. "eip155:84532" (Base Sepolia) or "eip155:8453" (Base). Omit for all chains.

get_wallet_balance Get wallet balance

Returns the wallet's USDC balance on each supported chain (and other tokens the provider reports, e.g. USDXM on Crossmint staging), read directly from chain RPCs. Use it before paying to confirm there are funds, or after paying to see the result. Read-only: never moves money. Pass `chain` to check one chain only.

ParameterTypeDescription
chainstringCAIP-2 chain id, e.g. "eip155:84532" (Base Sepolia) or "eip155:8453" (Base). Omit for all chains.

show_wallet_app Show wallet (funding info)

Text stand-in for a wallet app: for each chain, the deposit address, faucet or onramp hints for adding funds, and which spending controls are in force (limit values are never shown). Use it when the user needs to fund the wallet or asks how payments are limited. Read-only. Agents cannot change limits, transfer funds or start an onramp; only the wallet owner can.

ParameterTypeDescription
chainstringCAIP-2 chain id, e.g. "eip155:84532" (Base Sepolia) or "eip155:8453" (Base). Omit for all chains.

check_sign_in_status Check sign-in status

Checks whether the configured wallet provider's credentials are present and accepted, which chains it can pay on, whether Nevermined credits are configured, and where each spending setting comes from. Call it first in a session, or whenever a payment tool reports a configuration problem; when not ready it says exactly what the owner must set. Read-only.

list_bazaar_resources List Bazaar resources

Finds paid x402 APIs in the public CDP Bazaar catalog. With `query` (and optional network / price filters) it runs a ranked search; without arguments it lists the catalog page by page. Returns each resource's URL, description, HTTP method and prices per network. Use it to discover services; then use get_resource_details for one entry, check_seller before buying, and make_x402_request to pay. Read-only, no authentication, nothing is paid.

ParameterTypeDescription
limitintegerMaximum number of results (1-100; a search returns at most 20)
maxUsdPricestringMaximum price in USD, e.g. "0.05"
networkstringFilter by network, e.g. "eip155:84532" for Base Sepolia
offsetintegerNumber of entries to skip when paging through the catalog without a query
querystringNatural-language search, e.g. "weather forecast"

get_resource_details Get resource details

Returns the full Bazaar record for one resource URL: every accepted payment option with its USD price, the description, and the input/output schema (required query or body fields). Use it after list_bazaar_resources to learn how to call a service correctly. Read-only, nothing is paid. If the URL is not in the Bazaar it says so; use check_payment_requirements to read the price from the endpoint itself.

ParameterTypeDescription
resource *stringThe resource URL exactly as returned by list_bazaar_resources

make_x402_request Make an x402 request

Calls a URL and, if it answers HTTP 402, pays for it with the configured wallet (USDC, x402 `exact`) or Nevermined credits, then returns the response. THIS SPENDS MONEY. Before signing it checks the owner's host allowlist, per-call and per-session limits, the seller's Seller Probe record, required input, the Bazaar price and remembered refusals, and stops without paying if any check fails (status `blocked` with a reason). After paying it confirms the transfer on chain and, if the seller did not deliver, refetches once with the same payment when the seller supports Delivery Receipts. Returns st…

ParameterTypeDescription
url *stringFull https URL of the x402 endpoint, including any query parameters the service requires
bodyRequest body for POST/PUT/PATCH; objects and arrays are sent as JSON with content-type application/json
headersobjectExtra request headers to send, e.g. {"accept": "application/json"}; payment headers are added automatically
methodstringHTTP method to call the endpoint with; use the method the service documents (default GET)

check_payment_requirements Check payment requirements

Calls a URL without paying and returns its HTTP 402 payment options (scheme, network, price, asset, pay-to), which option this wallet would pay, and whether that payment fits the owner's limits. Use it to quote a price before deciding to buy. Sends one unpaid request to the seller; nothing is signed or paid.

ParameterTypeDescription
url *stringFull https URL of the x402 endpoint, including any query parameters the service requires
bodyRequest body for POST/PUT/PATCH; objects and arrays are sent as JSON with content-type application/json
headersobjectExtra request headers to send, e.g. {"accept": "application/json"}; payment headers are added automatically
methodstringHTTP method to call the endpoint with; use the method the service documents (default GET)

check_seller Check seller

Runs every pre-payment check of make_x402_request without paying: the seller's Seller Probe record, the 402's payment options, required input missing from the request, the difference from the Bazaar price, payment refusals remembered for this host, and whether the seller supports Delivery Receipts. Use it before buying from an unfamiliar seller. Sends one unpaid request plus a Seller Probe lookup; nothing is signed or paid.

ParameterTypeDescription
url *stringFull https URL of the x402 endpoint, including any query parameters the service requires
bodyRequest body for POST/PUT/PATCH; objects and arrays are sent as JSON with content-type application/json
headersobjectExtra request headers to send, e.g. {"accept": "application/json"}; payment headers are added automatically
methodstringHTTP method to call the endpoint with; use the method the service documents (default GET)