com.deepfirstsearch/agent-pay-mcp

Official registry Finance and payments

x402 payments in USDC on Base inside an owner-signed, on-chain budget the model can't change

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @deepfirstsearch/agent-pay-mcp
Claude Code
claude mcp add agent-pay-mcp -e 'AGENT_PAY_BURNER_SEED=<your agent_pay_burner_seed>' -e 'AGENT_PAY_AGENT_KEY=<your agent_pay_agent_key>' -- npx -y @deepfirstsearch/agent-pay-mcp@0.2.1 '<config.json>'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "agent-pay-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@deepfirstsearch/agent-pay-mcp@0.2.1",
                "<config.json>"
            ],
            "env": {
                "AGENT_PAY_BURNER_SEED": "<your agent_pay_burner_seed>",
                "AGENT_PAY_AGENT_KEY": "<your agent_pay_agent_key>"
            }
        }
    }
}

Environment variables

  • AGENT_PAY_BURNER_SEED required secret 32-byte hex secret the per-merchant payer addresses are derived from. Never your owner key.
  • AGENT_PAY_AGENT_KEY secret The budget's agent key (needed when a vault is configured).

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Deep First Search: safe x402 payments for AI agents
  2. Try it in 10 seconds
  3. Pick your path
  4. What's in this repository
  5. MCP server: let Claude or Cursor pay x402 APIs safely
  6. Develop on this repository
  7. Documents
  8. Key decisions
  9. Using it? Tell us
  10. Security
  11. Contact
  12. License

Deep First Search: safe x402 payments for AI agents

Safe rails for the agent economy. Search deep. Reveal only what you choose.

AI agents now pay for things over x402. Every one of those payments is public, and any agent can be talked into paying the wrong party. Deep First Search makes the model propose payments while the owner's signed policy decides.

Try it in 10 seconds

No keys, no wallet, no chain: a local x402 merchant plays honest and hostile, and you watch the agent pay for data and refuse four attacks.

npx @deepfirstsearch/agent-pay demo

Already building an x402 client? See what it signs when the server lies — a swapped payee, fake decimals, no price cap — in one command:

npx @deepfirstsearch/x402-scan client @x402/fetch

x402-scan is a free, zero-dependency scanner (MIT); the findings explain what we keep seeing across published clients. The fix for everything it flags is the policy layer below.

Pick your path

You useInstallGuide
Claude Desktop, Claude Code, Cursor, OpenClaw, any MCP clientnpx @deepfirstsearch/agent-pay-mcp ./config.jsonintegrations/mcp
Vercel AI SDKnpm i @deepfirstsearch/agent-pay-ai-sdk @deepfirstsearch/agent-pay ai zod viemintegrations/ai-sdk
LangChain.js / LangGraphnpm i @deepfirstsearch/agent-pay-langchain @deepfirstsearch/agent-pay @langchain/core @langchain/langgraph viemintegrations/langchain
Coinbase AgentKitnpm i @deepfirstsearch/agent-pay-agentkit @deepfirstsearch/agent-pay @coinbase/agentkit viem@2.38.3 zod@3integrations/agentkit
Cloudflare Agents (paid MCP over x402)npm i @deepfirstsearch/agent-pay-cloudflare @deepfirstsearch/agent-pay agents viemintegrations/cloudflare
Your own agent, any walletnpm i @deepfirstsearch/agent-pay viemsdk
A Turnkey-held keynpm i @deepfirstsearch/agent-pay-turnkey @deepfirstsearch/agent-pay @turnkey/sdk-server viemTurnkey
A Privy server walletnpm i @deepfirstsearch/agent-pay-privy @deepfirstsearch/agent-pay @privy-io/node viemPrivy
A Coinbase CDP Server Walletnpm i @deepfirstsearch/agent-pay-cdp @deepfirstsearch/agent-pay @coinbase/cdp-sdk viemCDP
An Openfort backend walletnpm i @deepfirstsearch/agent-pay-openfort @deepfirstsearch/agent-pay @openfort/openfort-node viemOpenfort
Agents that place real orders (food, shopping)npm i @deepfirstsearch/order-guardintegrations/order-guard
On-chain budgets on Basenpx @deepfirstsearch/agent-pay owner helpowner CLI

The integrations take the SDK as a peer dependency, so your app always uses a single copy of it. Step-by-step guides for 40 x402 merchants, each tested with a real payment on Base mainnet, are in docs/integrations.

Full developer guide: deepfirstsearch.com/developers · building a wallet, framework or platform? Partners.

What's in this repository

ComponentWhat it doesStatus
MCP server (integrations/mcp/)Model Context Protocol server: Claude Desktop, Claude Code, Cursor and any MCP client get paid_fetch, list_merchants and budget_status tools that pay x402 APIs inside the owner's budget; x402 v1 merchants opt in per merchant (x402Versions), and an unreadable receipt is confirmed on-chain instead of resent (confirmOnChain, on by default)✅ npx @deepfirstsearch/agent-pay-mcp ./config.json (0.2.1) · 24 tests · tested with a real Claude session on Base Sepolia
Agent Safe (contracts/)On-chain vault: owner-signed, timelocked, per-merchant budgets; the agent key can spend but never widen✅ 98 tests (fuzzing, invariants, properties, regressions, Base mainnet fork with real USDC), two internal reviews · live on Base mainnet (beta)
agent-pay SDK (sdk/)x402 v2 client (v1 opt-in per merchant) with a policy engine outside the model, prompt-injection guards, stable refusal and block codes, never a second signature while the first might have paid, per-merchant payers, owner CLI✅ 293 tests (283 run offline; 10 need a Base mainnet fork or RPC) incl. on-chain loops and the official x402 facilitator · npx @deepfirstsearch/agent-pay owner …
Framework tools (integrations/)Vercel AI SDK paidFetchTool, LangChain/LangGraph createPaidFetchTool, Coinbase AgentKit agentPayActionProvider; wallet payers turnkeyPayer, privyPayer, cdpPayer, openfortPayer; order-guard for agents that place real orders✅ on npm
x402-scan (tools/x402-scan/)A free, zero-dependency scanner that attacks an x402 buyer client with the mistakes we keep finding (any payee, fake decimals, no cap, year-long windows) and grades what it signs; --json and a GitHub Action gate the grade in CI✅ npx @deepfirstsearch/x402-scan client @x402/fetch (0.2.2) · MIT
$DEPTH (contracts/)1B fixed supply, no mint function, no owner; fees burned through a fee jar + firepit✅ Implemented · not launched
Website (web/)Site, whitepaper, tokenomics, partner kit, legal pages; strict CSP, no cookies; only third party is cookieless Cloudflare Web Analytics✅

MCP server: let Claude or Cursor pay x402 APIs safely

@deepfirstsearch/agent-pay-mcp is a stdio MCP server. The model gets three tools and nothing that can move money on its own terms:

MCP toolWhat it does
paid_fetch(url, method?, body?, contentType?)Fetches a URL; if it answers 402 Payment Required, pays in USDC on Base only when the merchant, price and budget match your config
list_merchants()Merchants the agent may pay, their prices and the remaining budget
budget_status()Remaining budget per merchant, plan window, vault balance
{ "mcpServers": { "agent-pay": {
    "command": "npx", "args": ["-y", "@deepfirstsearch/agent-pay-mcp", "/path/config.json"],
    "env": { "AGENT_PAY_AGENT_KEY": "0x…", "AGENT_PAY_BURNER_SEED": "0x…" } } } }

Payees, prices and limits come from the config file and the owner-signed on-chain budget, never from the model or a 402 response, so a prompt-injected agent can't overspend or pay an attacker. Setup, config reference and a 5-minute Base Sepolia demo: integrations/mcp.

Status: pre-launch. Live on Base Sepolia, with a real x402 payment settled (see deployments); unaudited beta on Base mainnet since 2026-10-06 (small amounts, our own funds first, then invited design partners) while we arrange an independent audit; the public launch comes after the audit. No token exists.

Develop on this repository

# Contracts (needs Foundry: curl -L https://foundry.paradigm.xyz | bash && foundryup)
git submodule update --init --recursive
cd contracts && forge test

# SDK
cd ../sdk && npm ci && npm test && npm run demo

# Website
cd ../web && npm ci && npm run dev

Documents

WhitepaperFormal design, privacy model, risks (EN; structured for MiCA Annex I)
TokenomicsSupply, allocation, Firepit burn, vesting (EN)
DecisionsADRs: ticker, chain, burn, vesting, stand… (ES)
DeploymentsContract addresses on Base mainnet (unaudited beta) and Base Sepolia, plus the live demo vault
Audit scopeScope, nSLOC, roles, known issues and questions for reviewers
Internal pre-audit, Oct 2026Every finding of our latest internal review, fixed (with its test) or acknowledged (with the reason)
Airdrop toolBuilds the airdrop Merkle tree and proofs; tested against the contract
Mainnet runbookSafes, rehearsal, deploy, checks, guarded launch, monitoring
Security assessmentPentest findings, threat model, evidence (ES)
ResearchMarket pain, successes, failures, token models, launch mechanics (ES)

Key decisions

  • Ticker: $DEPTH.
  • Chain: Base.
  • Founder: 12%, nothing for 12 months, then 36 months linear, on-chain; the vesting contract cannot be transferred and the beneficiary is a public Safe.
  • Burn: burn-to-claim fee jar (no swaps, oracles or admins), fed only by Agent Safe, SDK and inference fees, never by privacy-pool fees.
  • No conference booth until there are users; hackathons instead.
  • No own privacy pool: integrate a third-party compliant one (ADR-011). Sales geo-blocked for the US and Argentina (ADR-012).

Using it? Tell us

There's no telemetry in the packages, so we only know who uses them if you say so. If your agent pays with Agent Safe, even once on testnet, tell us in this discussion: what it pays for, what got refused that shouldn't have, and what's missing. We'll test your sellers live and write a verified guide for any that's missing.

Security

See SECURITY.md to report vulnerabilities.

Contact

Built by Nicolas Tursi. General contact: hello@deepfirstsearch.com. Security reports: see SECURITY.md or write to security@deepfirstsearch.com.

License

MIT (contracts and SDK).

Frequently asked questions

What is com.deepfirstsearch/agent-pay-mcp?

x402 payments in USDC on Base inside an owner-signed, on-chain budget the model can't change

How do I install com.deepfirstsearch/agent-pay-mcp?

It runs on your machine. In Claude Code: claude mcp add agent-pay-mcp -e 'AGENT_PAY_BURNER_SEED=<your agent_pay_burner_seed>' -e 'AGENT_PAY_AGENT_KEY=<your agent_pay_agent_key>' -- npx -y @deepfirstsearch/agent-pay-mcp@0.2.1 '<config.json>'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does com.deepfirstsearch/agent-pay-mcp need an API key?

Yes. It expects AGENT_PAY_BURNER_SEED, AGENT_PAY_AGENT_KEY, which you set in its configuration.

Is com.deepfirstsearch/agent-pay-mcp open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains com.deepfirstsearch/agent-pay-mcp?

It is published by DeepFirstHQ. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.