Paying for MCP tools with USDC in an agent workflow

developer2026-11-13

On this page

A USDC-paid MCP tool charges a fixed amount per call. The agent pays over HTTP before the tool runs. Choose a tool by its payment network, its per-call price, and its failure handling. In the current snapshot, per-call prices run from 0 to 29.99 USD.

How a USDC payment reaches the tool

The agent sends a normal HTTP request to the tool endpoint. The server answers with status 402 Payment Required and a payment request that states the amount and the network. The agent signs a USDC transfer for that amount and sends the request again with proof of payment. The server checks the proof and runs the tool.

An HTTP payment flow such as x402 handles this exchange. The whole sequence runs inside one agent workflow. No person approves each call. The agent needs a funded wallet on the network the tool accepts.

A small wallet balance limits the damage from a bug. Top up the wallet on a schedule instead of funding it for a large run.

Three checks before an agent pays

Run these three checks before the agent makes its first paid call.

  • Network. Confirm the tool accepts USDC on the chain where the wallet holds funds.
  • Per-call price. Read the price in the tool listing. Set a spend cap for each run.
  • Failure handling. Check whether a failed call after payment triggers a refund. Check how the tool reports the failure.

Each check is a quick lookup. Skip one, and the agent may pay for work it never receives.

Read a tool listing before the first call

A listing shows the tool name, the input schema, the per-call price, and the accepted payment network. The input schema tells the agent which fields to send. Match the required fields to what the agent produces.

A malformed request can still cost a payment if the server charges before it validates input. Run the tool's sample request once with a small balance. Record the response time and the response shape.

The agent prompt can then name the exact fields the tool expects. This keeps the first live run predictable.

What the current price range looks like

Per-call prices in the current snapshot run from 0 to 29.99 USD. Prices change with each tool, so read the listing before you set a spend cap.

This page does not compare prices against other gateways. We found no public price comparison that met our review bar. So this page makes no claim about competitor prices.

Handle payment errors in the agent loop

An agent needs three error branches. The first handles a 402 response with a price above the spend cap. The second handles a payment that succeeded but returned a server error. The third handles a timeout after payment.

For the first branch, stop the call and report the price to the operator. For the second and third branches, retry once with the same payment proof if the tool accepts it. Do not send a new payment for the same result, because that pays twice for one answer.

Wire a paid MCP tool into an agent

Start with a wallet that holds a small USDC balance. Give the agent one paid tool at a time. Log each payment with the tool name, the amount, and the response code.

Set a per-run spend cap in the agent configuration. The cap stops the agent before a loop spends the full balance. Raise the cap only after the logs show normal behavior across several runs.

Review the log after each new tool. A pattern of repeated payments for one request signals a loop in the agent code.

Where this approach fits and where it does not

Paid tools suit agents that call a narrow set of services. They need no account signup. They also suit one-off tasks, where a monthly contract adds no value.

Tools that need a long-lived customer agreement or invoicing fit a different model. This page does not cover tax or accounting treatment of stablecoin payments. Ask a qualified advisor about those rules for your jurisdiction.

Live pricing — developer

Price per call, developer tools Horizontal bar chart of the price per call and the cache-hit price, in US dollars, for 12 developer tools. The same values are in the table below the chart. Price per call Cache-hit price $0.0 $0.0005 $0.001 Usage Time SeriesUsage Time Series $0.0 $0.0 Per-Tool Usage BreakdownPer-Tool Usage Breakdown $0.0 $0.0 Usage SummaryUsage Summary $0.0 $0.0 Discover ToolsDiscover Tools $0.0 $0.0 Batch Tool CallsBatch Tool Calls $0.0 $0.0 Tool Quality MetricsTool Quality Metrics $0.0 $0.0 Tool Quality RankingsTool Quality Rankings $0.0 $0.0 List Programming LanguagesList Programming Languages $0.001 $0.0001 Check CVE ID Reservation Stat…Check CVE ID Reservation Status $0.001 $0.0001 Security Advisories (deps.dev)Security Advisories (deps.dev) $0.001 $0.0001 Dependency Tree (deps.dev)Dependency Tree (deps.dev) $0.001 $0.0001 Package Info (deps.dev)Package Info (deps.dev) $0.001 $0.0001 US dollars per call
Price per call for developer tools, cheapest first.

Data source: live tool catalog snapshot, fetched 2026-11-13.

Chart data as a table
ToolPrice per callCache-hit price
Usage Time Series$0.0$0.0
Per-Tool Usage Breakdown$0.0$0.0
Usage Summary$0.0$0.0
Discover Tools$0.0$0.0
Batch Tool Calls$0.0$0.0
Tool Quality Metrics$0.0$0.0
Tool Quality Rankings$0.0$0.0
List Programming Languages$0.001$0.0001
Check CVE ID Reservation Status$0.001$0.0001
Security Advisories (deps.dev)$0.001$0.0001
Dependency Tree (deps.dev)$0.001$0.0001
Package Info (deps.dev)$0.001$0.0001
ToolProviderPrice/callCache-hit
Usage Time Seriesaccount$0$0
Per-Tool Usage Breakdownaccount$0$0
Usage Summaryaccount$0$0
Discover Toolsapibase$0$0
Batch Tool Callsplatform$0$0
Tool Quality Metricsplatform$0$0
Tool Quality Rankingsplatform$0$0
List Programming Languagesjudge0$0.001$0.0001
Check CVE ID Reservation Statuscve-mitre$0.001$0.0001
Security Advisories (deps.dev)depsdev$0.001$0.0001
Dependency Tree (deps.dev)depsdev$0.001$0.0001
Package Info (deps.dev)depsdev$0.001$0.0001

Connect via MCP

How a tool call worksAn AI agent sends a tool call to the APIbase gateway. The gateway checks payment, calls the provider API, and returns the JSON result to the agent.Your agentAPIbase gatewayProvider API1. tool call2. paid call3. JSON result flows back to the agent
Diagram: the path of one tool call.

Data source: gateway design, no measured values.

$ curl -X POST https://apibase.pro/api/v1/tools/account.timeseries/call \
  -H "Content-Type: application/json" -d '{"params": {}}'

FAQ

Can an agent pay for an MCP tool with USDC?

Yes, when the tool accepts USDC over an HTTP payment flow such as x402. The agent signs the payment and sends the request again. Check the tool listing for the accepted network before the first call.

What does an agent need before its first USDC payment?

The agent needs a funded wallet on the accepted network. It also needs a spend cap for each run. Start with a small balance. Log each payment so the first run can be reviewed.

What happens if the tool fails after payment?

The outcome depends on the tool. Read its failure handling in the listing. If the listing does not describe failure handling, treat the payment as unrecovered and keep the spend cap low.

Does this page name the cheapest tool?

No. The page gives the price range from the current snapshot and three checks to run before paying. Compare tools in the live listing before you choose one.

  1. STEP 1/2 Connect your MCP client
  2. STEP 2/2 Browse the full catalog

Written with AI assistance from APIbase's published documentation and public data; checked automatically against them. Corrections: https://apibase.pro/

Published: 2026-11-13Source: live apibase.pro catalog snapshot