Paying for MCP tools with USDC in an agent workflow
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
Data source: live tool catalog snapshot, fetched 2026-11-13.
Chart data as a table
| Tool | Price per call | Cache-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 |
| Tool | Provider | Price/call | Cache-hit |
|---|---|---|---|
| Usage Time Series | account | $0 | $0 |
| Per-Tool Usage Breakdown | account | $0 | $0 |
| Usage Summary | account | $0 | $0 |
| Discover Tools | apibase | $0 | $0 |
| Batch Tool Calls | platform | $0 | $0 |
| Tool Quality Metrics | platform | $0 | $0 |
| Tool Quality Rankings | platform | $0 | $0 |
| List Programming Languages | judge0 | $0.001 | $0.0001 |
| Check CVE ID Reservation Status | cve-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
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.
Recommended next step
- STEP 1/2 Connect your MCP client
- STEP 2/2 Browse the full catalog
Related guides
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