
Coal — Payments for AI agents
Adds USDC payment rails on Base directly to Claude Desktop. Exposes merchant discovery, checkout session creation, payment verification, and receipt lookups through a multi-tenant MCP endpoint. Implements dual-protocol agent payments: Coinbase x402 paywalls and OKX APP envelopes hit the same verification route. Payment receipts get published to 0G Storage and anchored on-chain with proof hashes. The server wraps Coal's hosted checkout API, so agents can initiate purchases, poll transaction status, and retrieve verifiable receipts without leaving the MCP context. Useful when you want Claude to autonomously pay for digital goods, query merchant catalogs, or build commerce workflows that settle in stablecoins.
- GitHub stars
- 1
- tools
- 13
- auth
- Secret needed
- transport
- HTTP
- last updated
- May 7, 2026
Install
From registry metadata$ npx add-mcp https://mcp.usecoal.xyz/api/mcp --name coal --header 'X-Coal-Agent-Key: ${X_COAL_AGENT_KEY}' --header 'X-Coal-Api-Key: ${X_COAL_API_KEY}'Run in your terminal. add-mcp asks which agents to add it to, then asks for each value it needs. Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http coal https://mcp.usecoal.xyz/api/mcp --header 'X-Coal-Agent-Key: YOUR_X_COAL_AGENT_KEY' --header 'X-Coal-Api-Key: YOUR_X_COAL_API_KEY'Run in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 13 toolsVerified live against the running server on Nov 6, 2026.
discover_merchantsTHE DEFAULT FIRST CALL whenever the user wants to buy, get, fetch, grab, order, purchase, shop for, find, or browse anything (digital goods, ebooks, APIs, prompts, datasets). Returns a Markdown product grid with images, prices, and merchant payout addresses inline — so you can...
THE DEFAULT FIRST CALL whenever the user wants to buy, get, fetch, grab, order, purchase, shop for, find, or browse anything (digital goods, ebooks, APIs, prompts, datasets). Returns a Markdown product grid with images, prices, and merchant payout addresses inline — so you can...
No parameters. Call it with no arguments.
search_productsSearch products across all Coal merchants. Filter by name, max price, or tag. Returns a Markdown product grid with images. Use this when looking for something specific like "find a figurine under $1".3 params
Search products across all Coal merchants. Filter by name, max price, or tag. Returns a Markdown product grid with images. Use this when looking for something specific like "find a figurine under $1".
maxPricenumbersearchstringtagstringget_merchant_profileGet the full profile of a Coal merchant including products (with images), paywalls, supported networks/tokens, and 0G Storage proof. Returns rendered Markdown.1 params
Get the full profile of a Coal merchant including products (with images), paywalls, supported networks/tokens, and 0G Storage proof. Returns rendered Markdown.
merchantId*stringquery_merchant_memoryAsk a natural language question about a merchant's products, policies, or catalog. Powered by 0G Compute with Sealed Inference (TEE). Needs a Coal API key — set once via Claude config header `X-Coal-Api-Key:YOUR_KEY`, or pass per-call as `coalApiKey`. Get one at https://usecoa...3 params
Ask a natural language question about a merchant's products, policies, or catalog. Powered by 0G Compute with Sealed Inference (TEE). Needs a Coal API key — set once via Claude config header `X-Coal-Api-Key:YOUR_KEY`, or pass per-call as `coalApiKey`. Get one at https://usecoa...
coalApiKeystringmerchantId*stringquestion*stringcheck_paywallCheck whether an address has paid for a specific x402 paywall. Returns pricing info if not paid, or content access status if paid.2 params
Check whether an address has paid for a specific x402 paywall. Returns pricing info if not paid, or content access status if paid.
addressstringpaywallId*stringcreate_checkoutCreate a Coal checkout session to pay for a product or amount. Settles in USDC on Base (~2s). Returns a checkout URL. Needs a Coal API key — set once via Claude config header `X-Coal-Api-Key:YOUR_KEY`, or pass per-call as `coalApiKey`. Get one at https://usecoal.xyz/console/keys.5 params
Create a Coal checkout session to pay for a product or amount. Settles in USDC on Base (~2s). Returns a checkout URL. Needs a Coal API key — set once via Claude config header `X-Coal-Api-Key:YOUR_KEY`, or pass per-call as `coalApiKey`. Get one at https://usecoal.xyz/console/keys.
amount*numbercoalApiKeystringdescriptionstringproductIdstringproductNamestringget_checkout_statusCheck the payment status of a checkout session: pending, verifying, confirmed, expired, failed.1 params
Check the payment status of a checkout session: pending, verifying, confirmed, expired, failed.
sessionId*stringverify_receiptVerify a payment receipt and see its 3-step proof trail: (1) Base TX, (2) 0G Storage receipt, (3) 0G Chain anchor.1 params
Verify a payment receipt and see its 3-step proof trail: (1) Base TX, (2) 0G Storage receipt, (3) 0G Chain anchor.
sessionId*stringget_0g_healthCheck the live status of all 5 0G components: Storage, Chain, Compute, KV, DA.
Check the live status of all 5 0G components: Storage, Chain, Compute, KV, DA.
No parameters. Call it with no arguments.
agent_wallet_statusCheck the USDC balance for your agent wallet (or any address). If `X-Coal-Agent-Key` is set in your Claude config header, this auto-resolves your wallet's address. Otherwise pass `address` or `agentPrivateKey`. The server holds NO long-lived keys — every payment is signed per-...2 params
Check the USDC balance for your agent wallet (or any address). If `X-Coal-Agent-Key` is set in your Claude config header, this auto-resolves your wallet's address. Otherwise pass `address` or `agentPrivateKey`. The server holds NO long-lived keys — every payment is signed per-...
addressstringagentPrivateKeystringpay_merchantSend USDC on Base to any merchant payout address (the `payoutAddress` field shown by discover_merchants — NOT the merchantId). Use this whenever the user has confirmed they want to buy, purchase, pay, or send money for something. Gasless for you — Coal pays gas. Returns the on...5 params
Send USDC on Base to any merchant payout address (the `payoutAddress` field shown by discover_merchants — NOT the merchantId). Use this whenever the user has confirmed they want to buy, purchase, pay, or send money for something. Gasless for you — Coal pays gas. Returns the on...
agentPrivateKeystringamount*numberreasonstringsessionIdstringto*stringdownload_productRetrieve / download / get the file for a digital product after the user paid for it. Use after `pay_merchant` succeeds for digital goods (PDFs, ebooks, cheatsheets, datasets). Pass the on-chain `txHash` from `pay_merchant` OR a Coal checkout `sessionId`. Returns a verified dow...3 params
Retrieve / download / get the file for a digital product after the user paid for it. Use after `pay_merchant` succeeds for digital goods (PDFs, ebooks, cheatsheets, datasets). Pass the on-chain `txHash` from `pay_merchant` OR a Coal checkout `sessionId`. Returns a verified dow...
product*stringsessionIdstringtxHashstringsetup_instructionsPrint step-by-step instructions for using Coal MCP from Claude / Cursor / any MCP client. Run this FIRST if you are unsure how to authenticate or which credentials to provide.
Print step-by-step instructions for using Coal MCP from Claude / Cursor / any MCP client. Run this FIRST if you are unsure how to authenticate or which credentials to provide.
No parameters. Call it with no arguments.
Sponsors
Readme
Coal
0G APAC Hackathon 2026 — Track 3: Agentic Economy
Payments for humans and AI agents — one checkout, real USDC on Base, verifiable receipts on 0G.
| Surface | URL |
|---|---|
| Marketing site | usecoal.xyz |
| Public API | api.usecoal.xyz |
| Hosted checkout | usecoal.xyz/pay/... |
| Live AI-agent demo (Claude buying ebooks) | agent.usecoal.xyz |
| Demo merchant store (with download flow) | store.usecoal.xyz |
| MCP server (multi-tenant) | mcp.usecoal.xyz/api/mcp |
| x402 oracle paywall demo | oracle.usecoal.xyz/api/price/ETH |
| Live 0G health (all 5 components) | api.usecoal.xyz/api/0g/health |
| Docs site | usecoal.xyz/docs |
| React SDK on npm | coal-react v0.4.1 |
🎥 Watch
Details
- Repository
- github.com/emmanuel39hanks/coal
- Website
- usecoal.xyz
- Category
- Finance & Commerce
- Transport
- HTTP
- Auth
- Required
- Registry
- MCP registry, active
- Tools verified
- Nov 6, 2026