
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@deepfirstsearch/agent-pay-mcp
Advanced tools
MCP server: any MCP agent (Claude, Cursor...) pays x402 APIs inside an owner-signed, on-chain budget
An MCP server that lets any MCP agent (Claude Desktop, Claude Code, Cursor, …) pay x402 APIs in USDC on Base without being able to overspend, even if a web page or API response prompt-injects it.
Beta, unaudited. Use Base Sepolia or small amounts on Base mainnet.
The model gets three tools and nothing else:
| Tool | What the model can do |
|---|---|
paid_fetch(url, method?, body?, contentType?) | Fetch a URL. If it answers 402 Payment Required, the payment goes through only if the merchant, price and budget match your config |
list_merchants() | See which origins it may pay, their prices and what's left |
budget_status() | Remaining budget per merchant, window renewal, vault balance |
The model cannot choose a payee, an amount, a network or a limit: there is no argument for any of them. Merchants, price pins, caps and the spending plan come from your config file; keys come from environment variables. Responses are returned inside a randomly tagged fence marked as untrusted data. On-chain, the Agent Safe vault enforces your signed per-payment and per-day caps even if this machine is compromised.
npx @deepfirstsearch/agent-pay owner create-vault, then owner budget …, which prints the intentId and a ready-to-paste merchants[] entry. (No vault? Leave out vault, tranche and intentId and fund the payer addresses yourself.)config.example.json and fill it in. Amounts are USDC decimal strings. Keep tranche at or below each intent's trancheCap and maxPerTx.AGENT_PAY_AGENT_KEY: the intent's agent key (needed with a vault).AGENT_PAY_BURNER_SEED: the 32-byte secret the payer addresses were derived from. Never your owner key.claude mcp add agent-pay \
-e AGENT_PAY_AGENT_KEY=0x… -e AGENT_PAY_BURNER_SEED=0x… \
-- npx -y @deepfirstsearch/agent-pay-mcp /absolute/path/config.json
npm install -g @deepfirstsearch/agent-pay-mcp
openclaw mcp set agent-pay '{"command":"agent-pay-mcp","args":["/absolute/path/config.json"],"env":{"AGENT_PAY_AGENT_KEY":"${AGENT_PAY_AGENT_KEY}","AGENT_PAY_BURNER_SEED":"${AGENT_PAY_BURNER_SEED}"}}'
openclaw mcp probe agent-pay # - agent-pay: 3 tools
Full walkthrough: OpenClaw guide.
claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"agent-pay": {
"command": "npx",
"args": ["-y", "@deepfirstsearch/agent-pay-mcp", "/absolute/path/config.json"],
"env": { "AGENT_PAY_AGENT_KEY": "0x…", "AGENT_PAY_BURNER_SEED": "0x…" }
}
}
}
From source instead of npm: cd integrations/mcp && npm ci && npm run build, then use node /path/to/integrations/mcp/dist/index.js as the command.
sdk/examples/demo-merchant.ts is a tiny x402 API on Base Sepolia with an honest route (/premium, 0.01 USDC) and a hostile one (/malicious: its 402 asks for 5 USDC to an attacker address and its body carries a prompt injection).
cd sdk && MERCHANT=0xYourMerchantAddress npx tsx examples/demo-merchant.ts
Point the config's merchant at http://127.0.0.1:4021 with that payTo, then ask your agent to fetch /premium and /malicious. Expected: the first is paid and settled on-chain; the second is refused before anything is signed ("payTo … is not the merchant's registered address").
| Field | Meaning |
|---|---|
network | eip155:84532 (Base Sepolia) or eip155:8453 (Base) |
vault, tranche | Agent Safe vault that tops up each merchant's payer, and the top-up size |
merchants[].origin, payTo | Who may be paid, and the only address the payment can go to |
merchants[].price, tolerancePct | Expected price per call; anything above price × (1 + tolerance) is refused |
merchants[].maxPerTx, maxSpend | Hard cap per call, and per merchant per plan window |
planWindowHours | The plan is sealed from this file at start and renewed from it every window |
periodBudget | Total across merchants per period |
approvalAbove | Payments above this are refused (this server has no approval channel the model can't reach) |
sessionHasSensitiveData | If the agent can also read private data, every payment needs a human (Rule of Two), so all are refused |
auditLog | Hash-chained JSONL log of every decision |
npm ci && npm run typecheck && npm test # tests drive the server through an MCP client against a mock x402 merchant
FAQs
MCP server: any MCP agent (Claude, Cursor...) pays x402 APIs inside an owner-signed, on-chain budget
The npm package @deepfirstsearch/agent-pay-mcp receives a total of 60 weekly downloads. As such, @deepfirstsearch/agent-pay-mcp popularity was classified as not popular.
We found that @deepfirstsearch/agent-pay-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.