Skip to main content
The BoltzPay MCP server gives Claude 7 tools for discovering, quoting, diagnosing, and paying for API data, all through natural language. It communicates via the Model Context Protocol, an open standard for AI tool use.

Quick Start

1

Open your Claude Desktop config file

2

Add the BoltzPay server (Explore mode, no keys needed)

This gives Claude read-only tools: quote, discover, diagnose, budget, history, and wallet. No credentials required.
3

Restart Claude Desktop

Quit and reopen the app. Open Settings > MCP Servers to confirm BoltzPay is listed, or type /mcp in a conversation to check.
You can also run npx @boltzpay/mcp setup to launch an interactive wizard that writes the config file for you.

Enable Payments

To let Claude actually pay for API data, add your credentials:
Get your keys at portal.cdp.coinbase.com. The wallet is automatically provisioned on first use. No manual wallet setup needed.
On Windows, use "command": "cmd" and "args": ["/c", "npx", "-y", "@boltzpay/mcp"] instead.

Credential requirements

Not every tool needs keys. Only boltzpay_fetch requires credentials to make payments:

Budget Control

Set spending limits via environment variables in your config. When a limit is hit, boltzpay_fetch returns a structured error and Claude informs you. See Configuration for all environment variables and advanced options.

Tools

boltzpay_fetch

Fetch data from a paid API. Automatically detects the payment protocol (x402, L402, or MPP), pays the required amount, and returns the response.
Success
The payment field is only present when a payment was made. Free endpoints omit it.
Error

boltzpay_quote

Check an endpoint’s cost without paying. Returns protocol, price, currency, and multi-chain alternatives when available.
Paid endpoint
Free endpoints return a plain text response: This endpoint does not require payment (free).

boltzpay_discover

Browse paid API endpoints from the BoltzPay registry with filtering by protocol, score, and category.
Output

boltzpay_budget

View current spending limits, amount spent, and remaining balance. No parameters.
With budget configured
Returns No budget limits configured when no limits are set.

boltzpay_history

List all payments made during the current session. No parameters.
Output
Returns No payments made yet when the session has no transactions.

boltzpay_diagnose

Run a full diagnostic on any API endpoint in under 2 seconds. Checks DNS resolution, HTTP reachability, protocol detection (x402/L402), format version, pricing, and latency. No credentials required.
Output
The health field classifies the endpoint into one of four states:

boltzpay_wallet

View wallet addresses, balances, network, supported protocols, and budget configuration. No parameters.
Output
When credentials are not set, balances returns "Balance unavailable". Without budget config, budget returns "No limits configured".

Error Handling

All tools return structured errors with isError: true. The format is consistent:

Environment Variables

MCP Transport (Outgoing Payments)

To pay other MCP servers that require payment, use wrapMcpClient() in your code. This is separate from the BoltzPay MCP server. See the MCP Transport guide.

Troubleshooting

”Tool not found” or no hammer icon

Claude Desktop didn’t load the MCP server. Check:
  1. The JSON config is valid (no trailing commas, correct braces).
  2. The file is at the correct path for your OS.
  3. You restarted Claude Desktop after editing the config.

”npx fails” or “command not found”

Node.js is not in Claude Desktop’s PATH.
  • macOS: Install Node.js via the official installer (not just nvm). Or use the full path: "command": "/usr/local/bin/npx".
  • Windows: Use the cmd wrapper: "command": "cmd", "args": ["/c", "npx", "-y", "@boltzpay/mcp"].

”MISSING_CREDENTIALS” error

The boltzpay_fetch tool requires Coinbase keys to make payments. Read-only tools (quote, discover, diagnose) work without credentials. To enable payments, add the three COINBASE_* env vars to your config.

”BUDGET_EXCEEDED” error

You’ve hit your configured spending limit. Ask Claude to run boltzpay_budget to see the current state, or increase the limit in your config and restart.

Payments work but responses are empty

Some endpoints only accept POST requests. Ask Claude to use method: "POST" with the appropriate body. Check the endpoint’s documentation for the correct method.