Locus product guide · Updated
x402 MCP server: pay x402 APIs from your agent in 2026
To pay x402 APIs from Claude Code, Cursor or Codex, connect an x402 MCP server: Locus Pro pays x402 and MPP sellers from prepaid credits, so your agent holds no crypto, while AgentCash and PayAPI Market have your agent pay from its own USDC. If your agent already holds USDC, paying a seller's own x402 endpoint yourself can cost less per call.
What is an x402 MCP server?
It is an MCP server that gives your agent tools to find paid HTTP APIs and pay their 402 challenges. An x402 seller answers an unpaid request with HTTP 402 and a price, and only returns data after a signed payment. MPP sellers send a similar challenge under the Machine Payments Protocol. A coding agent with no way to pay stops at the 402.
There are two kinds. Some servers pay from a USDC wallet your agent controls, so you fund and secure that wallet. Others pay the seller for you and charge a balance you funded by card, so the agent never holds crypto. Locus Pro is the second kind.
Which x402 MCP servers work in Claude Code, Cursor and Codex?
All of these reach x402 sellers from a coding agent. They differ in who holds the money and who signs the payment. Details checked November 10, 2026.
| Option | Who pays the seller | What you fund | Protocols | Setup in a coding agent |
|---|---|---|---|---|
| Locus Pro | Locus, from your prepaid credits | Credits bought by card | x402 and MPP seller listings, plus APIs that sell only to key holders | One hosted MCP URL with OAuth sign-in |
| AgentCash | Your agent, from a local wallet AgentCash creates | USDC on Base, Solana, or Tempo, plus a sign-up bonus of up to $25 | x402 and MPP | An MCP server run with npx, or a skill file |
| PayAPI Market | Your agent, straight to each provider | USDC on Base, or Solana and Algorand on some listings | x402 | Free discovery MCP at payapi.market/mcp, plus your own x402 client |
| Coinbase x402 Bazaar MCP | Your MCP client, once you wrap it with an x402 payment client | A wallet, such as a CDP-managed one | x402 only | Free discovery MCP. Paying needs code around the MCP client |
| The seller's own x402 endpoint | Your agent, with an x402 client such as the awal CLI or @x402/fetch | USDC on the seller's network, often Base | x402, one seller at a time | No MCP server. The agent runs the client from code or a terminal |
Which one should you choose?
Pick by whether you want to hold crypto, and by how many sellers you need.
- Choose Locus Pro if you want no crypto at all, one balance for x402 and MPP sellers and for key-based APIs such as Perplexity or Brave, and a price ceiling on every call.
- Choose Locus Pro Enterprise if your product's agents call paid APIs on behalf of your customers and you want to bill each customer per call.
- Choose AgentCash if you already hold USDC and want your agent to pay x402 and MPP sellers from a wallet on your machine.
- Choose PayAPI Market if you want free search over many x402 listings and your client can already pay a 402.
- Choose the Coinbase Bazaar MCP if you build your own agent on the MCP SDK and want CDP-managed wallets.
- Choose the seller's own endpoint if you only need one API and your agent already holds USDC on that seller's network.
How does Locus Pro pay x402 and MPP sellers from credits?
Your agent uses the same Locus tools for every API. search finds an endpoint and shows its price and payment rail. describe returns the input schema, the price, and who receives the data. execute runs the call: Locus pays the seller over x402 or MPP and charges your credits. By default, 1,000 credits equal $1.
Seller listings are labeled. Exa's official x402 search, for example, is listed as an x402 seller Locus has not reviewed, so Locus cannot promise it stays available. Pass max_credits on execute as a ceiling. A call priced above it is declined before it runs, and nothing is charged.
What does an x402 or MPP call cost through Locus Pro?
These are live Locus Pro catalog prices for seller listings that Locus pays over x402 or MPP. Locus has not reviewed these four sellers, so it cannot promise they stay available. Prices checked November 10, 2026.
| API | Locus Pro listing | Seller rail | Locus Pro price |
|---|---|---|---|
| Exa web search | exa/search, Exa's official x402 API | x402 | From 8.5 credits ($0.0085) |
| Linkup web search | linkup/search | x402 | 10.1 credits ($0.0101) |
| Seltz web search | seltz/search | x402 | 6.3 credits ($0.0063) |
| Bytemine contact enrichment | bytemine/contacts-enrich | MPP | 30.3 credits ($0.0303) |
When should your agent pay sellers with its own USDC?
When it already holds USDC on the seller's network and you can protect the key. The agent pays the seller's own price, with no account and no API key. Tavily, for example, sells search at x402.tavily.com, and its docs say refunds for upstream failures go back to the wallet that paid.
The costs are operational. AgentCash stores private keys in plain text under ~/.agentcash, and anyone with them can spend the USDC. You fund each network you need, each seller sets its own price, and any spending limit lives in your client.
Use credits instead when you do not want to hold crypto, when you also need APIs that only sell to key holders, or when you want one ledger and spend caps across every call.
How do you connect Locus Pro in Claude Code, Cursor or Codex?
Add the hosted MCP server once and sign in with OAuth. The URL is the same in every client: https://api.paywithlocus.com/api/credits/mcp.
- Claude Code: run claude mcp add --transport http locus-pro https://api.paywithlocus.com/api/credits/mcp, then run /mcp, pick locus-pro, and choose Authenticate.
- Cursor: add a locus-pro entry with that url under mcpServers in ~/.cursor/mcp.json, then enable it in Cursor's MCP settings and approve Locus in your browser.
- Codex: run codex mcp add locus-pro --url https://api.paywithlocus.com/api/credits/mcp, then codex mcp login locus-pro.
- Then ask your agent to find an x402 search API in Locus, show its price, and run it with a max_credits ceiling.
Can a platform pay x402 sellers for its own customers?
Yes, and that is the main way companies use Locus Pro. On an Enterprise workspace, your server calls the catalog with your Locus key and names the customer on each call with the X-Locus-End-User header.
Locus checks that customer's credit balance before the call runs, pays the seller, and charges the catalog price plus the margin you set. Your customers never hold crypto or provider keys, and the ledger shows every charge per customer.
Frequently asked questions
Do I need a crypto wallet to call x402 APIs from Claude Code?
No. A service that pays sellers for you, such as Locus Pro, charges a prepaid balance you fund by card. You need USDC in a wallet only if your agent pays sellers itself, through a client such as AgentCash or the x402 libraries.
Can Locus Pro call MPP sellers too?
Yes. The catalog lists MPP sellers next to x402 sellers, such as Bytemine contact enrichment at 30.3 credits a call. Locus pays the seller and charges your credits. Listings from sellers Locus has not reviewed are labeled, and Locus cannot promise they stay available.
How do I stop an agent from overspending on x402 calls?
Set a ceiling on each call. With Locus Pro, pass max_credits on execute, and a call priced above it is declined before it runs with nothing charged. With your own USDC, keep a small balance and use a client that checks the price in the 402 before it signs.
Can my agent find x402 APIs without paying for search?
Yes. The Coinbase Bazaar MCP and the PayAPI Market MCP both offer free discovery with no API key. Locus Pro search and describe calls are free too, and only execute charges credits.
Implementation references
Use these first-party references for current request contracts and account requirements. Tool availability, prices, and negotiated terms can change.
Sources
Third-party details were checked on November 10, 2026. Vendors change pricing and features often, so confirm on their site before you decide.