Connect your agent in minutes.
Plug ExactJSON into Claude, Cursor, or your own TypeScript runtime via MCP, @x402/fetch, or any x402 wallet. No accounts, no API keys, and no subscriptions.
Paste into Cursor, Claude Code, Antigravity, Lovable, Bolt, or Replit — your coding agent reads /llms.txt and wires the client safely.
Read https://exactjson.com/llms.txt and connect my app to all 5 ExactJSON packs (https://exactjson.com/mcp/all or any /v1/* endpoint).
Requirements:
1. Use @x402/fetch with @x402/evm/exact/client (or exactjson-mcp if wiring an MCP client).
2. Read BUYER_PRIVATE_KEY from process.env (.env only, add .env to .gitignore, never hardcode keys).
3. Enforce a hard spend limit of maxAmountPerPayment: "$0.05".
4. Handle non-200 responses cleanly (400/404/502/503 cost $0.00 — never treat 502 as safe).
5. Start by testing https://exactjson.com/v1/evm/safety?address=0x4200000000000000000000000000000000000006&chain=base and show me the parsed JSON result.Paste into Claude Desktop, Cursor, or Windsurf. Signing stays local on your machine, and only HTTP 200 answers charge.
{
"mcpServers": {
"exactjson": {
"command": "npx",
"args": [
"-y",
"exactjson-mcp",
"--pack",
"all"
],
"env": {
"BUYER_PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY",
"MAX_PAYMENT_USD": "$0.05"
}
}
}
}Already using AgentCash or an x402-native MCP client? Point directly to https://exactjson.com/mcp/all — no local bridge needed.
Drop into Node.js or TypeScript with @x402/fetch and viem. Swap the URL for any of our 31 endpoints.
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client()
.setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, {
signer: privateKeyToAccount(process.env.BUYER_PRIVATE_KEY),
});
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://exactjson.com/v1/evm/safety?address=0x4200000000000000000000000000000000000006&chain=base");
console.log(await res.json());
Fund a dedicated low-balance EVM address with $2–$5 of native Base USDC (100–1,000 live calls) and keep MAX_PAYMENT_USD="$0.05" set. Because x402 settles gasless EIP-3009 authorizations, $0 ETH is required for gas.
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA029130x...). Passkey-only smart wallets do not export a raw private key.
Smoke-test before spending
Run exactjson_health ($0.00) in MCP, or run curl -i against any /v1/* route to inspect the live PAYMENT-REQUIRED quote before settling a paid call.
400), missing targets (404), fail-closed outages (502), and pauses (503) always charge $0.00.
Spend discipline
- Keep
MAX_PAYMENT_USD="$0.05"(ormaxAmountPerPayment: "$0.05") enforced client-side. - Keep
BUYER_PRIVATE_KEYin an ignored.envor local MCP config — ExactJSON never sees your key. - Fund the signing address with only the operational balance your workflow needs.
Payment rejected? Verify native Base USDC vs bridged USDbC
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), not legacy bridged USDbC.
Key parse error? Check 0x prefix
BUYER_PRIVATE_KEY must be a 64-character hex string prefixed with 0x and no surrounding whitespace.
Spend cap exceeded? Check MAX_PAYMENT_USD
MAX_PAYMENT_USD="$0.05" in MCP (or maxAmountPerPayment: "$0.05" in the SDK). All 31 ExactJSON endpoints are $0.005–$0.02.