Add Pacta to Claude, Cursor or your own agent: one line, the first call, what is free and what costs
Pacta is an MCP server and a web API that tells an agent who can upgrade, pause or change a DeFi contract. Adding it takes one line. The tools are free within their limits and need no key; where a paid call exists, the agent pays for it itself, per call. The table below says which.
Changed . The example answer on this page was read from the chain; its newest reading is from .
Add it
claude mcp add --transport http pacta https://api.pacta.wtf/mcp
{
"mcpServers": {
"pacta": {
"url": "https://api.pacta.wtf/mcp"
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"pacta": {
"type": "remote",
"url": "https://api.pacta.wtf/mcp",
"oauth": false
}
}
}
}Any MCP client: the address is https://api.pacta.wtf/mcp, transport Streamable HTTP.
No MCP: the same over the web API, described at https://api.pacta.wtf/openapi.json.
The first call
Ask about the Stader Labs (ETHx) token: "Who controls 0xA35b1B31Ce002FBF2058D22F30f95D405200A15b on Ethereum?" You should get an answer like this one. Pacta's record holds: Stader Labs (ETHx): on its sampled timelocked controls, a decided change waits at least 7 days before it runs (read at Ethereum block #26,422,627 on 2026-11-15). The fewest signers needed on any sampled control is 3 of 6 (read at block #26,403,676 on 2026-11-13).
The tools
| Tool | What it answers | Free tier first | Above the daily allowance (HTTP x402 on Base) |
|---|---|---|---|
pacta_lookup_protocol | Find a protocol, token or contract in Pacta's catalog by name, symbol, slug or 0x address | Free, no daily limit (60 a minute) | $0.00 |
who_controls | Live proxy, admin, Safe signers and threshold, timelock delay, pause and mint facts on any Ethereum or Base contract | Free, up to 100/day (keyless) | none: free only, the count resets at 00:00 UTC |
pacta_check_preflight | Pre-execution control-plane check and docs-vs-chain comparison for one contract | Free, up to 50/day (keyless) | $0.01 USDC via x402 above daily allowance |
pacta_scan_wallet_exposure | DeFi protocol control-plane exposure across the positions held by a wallet or Safe | Free, up to 100/day (keyless) | $0.01 USDC via x402 above daily allowance (POST /v1/x402/wallet-exposure: $0.05) |
pacta_scan_control_plane | Raw proxy slots, Safe owners and threshold, and timelock reads for a contract | Free, no daily limit (60 a minute) | $0.00 |
pacta_scan_timelock_op | Decode a timelock operation ID or calldata, and when it can run | Free, no daily limit (60 a minute) | $0.00 |
pacta_scan_proposal_diff | Re-run the pinned contract reads of a tracked DAO governance proposal | Free, no daily limit (60 a minute) | $0.00 |
pacta_get_live_timelocks | Queued timelock operations waiting now across the indexed protocols | Free, no daily limit (60 a minute) | $0.00 |
pacta_verdict | Live control-plane scan plus summary fields at the latest block | Free, up to 100/day (keyless) | $0.02 USDC via x402 above daily allowance |
pacta_dossier | Full control-plane dossier of a protocol across its controller Safes and timelocks | Free, up to 100/day (keyless) | $0.05 USDC via x402 above daily allowance |
trace_dependencies | Collateral assets, minters, price sources and bridge verifiers a vault, market or token depends on | Free, no daily limit (60 a minute) | $0.00 |
remember | Save a position, an entry block or a note under your wallet (up to 200 items) | Free, up to 100/day per wallet (keyless), 20 a minute | $0.001 USDC via x402 a call on POST /v1/x402/remember (60 a minute, no daily cap) |
what_changed_since | Control, minter, price-source, bridge or queued timelock changes since a block or your last check | Free, up to 100/day per wallet (keyless), 20 a minute | $0.001 USDC via x402 a call on POST /v1/x402/what-changed-since (60 a minute, no daily cap) |
forget | Erase one saved item, or everything saved under your wallet | Free, always | $0.00, always free |
pacta_submit_request | Queue a protocol coverage or document-update request | Free, no daily limit (5 an hour) | none: free only, a refused call gives the wait in seconds (Retry-After) |
request_feature | Tell Pacta what tool or data your agent needs (read daily) | Free, up to 5/day (keyless) | none: free only, the count resets at 00:00 UTC |
Two HTTP routes charge from the first call and have no MCP tool: POST /v1/x402/calldata-sim ($0.25 a call) and POST /v1/x402/deep-scan ($9.00 a call). Each daily allowance is counted per caller and UTC day in each server isolate separately, so the count is approximate: it is not a hard global cap.
How an agent pays
When a call goes over its free daily allowance, or calls a paid-only HTTP route, the API answers HTTP 402 Payment Required with the exact USDC price on Base and the receiving address (0x4348DF1BEFAffcbA248B5118B1b782B1B2bdEd14). An x402-capable agent signs a Base USDC transfer authorization locally, without creating an account or storing a card. It repeats the same HTTP request with the X-PAYMENT (v1) or PAYMENT-SIGNATURE (v2) header and receives the JSON answer.