a2p32-guard
v3.2.1Spend/limit firewall for agents: block over-budget, rate, write or transfer actions.
A spend and limit firewall for autonomous agents: it approves or blocks an action before it happens, and a batch either applies completely or not at all. Hosted service; this repository contains only the MCP client. Any MCP client that speaks streamable HTTP can use the same URL: No install, no runtime, no local process. The endpoint answers initialize and tools/list without payment.
Summary extracted from the README.
A2P-32 Guard — MCP client
A spend and limit firewall for autonomous agents: it approves or blocks an action before it happens, and a batch either applies completely or not at all. Hosted service; this repository contains only the MCP client.
Listed on
- Cursor Directory (verification pending)
- Glama connector
- Official MCP registry:
org.duckdns.a2p32guard/a2p32-guard - agent-tools.cloud (MCP + A2A)
- x402scan · Agent Bazaar · scriptmaster x402 directory
- mcp.directory · mcpservers.org (in review) · Docker MCP Registry (PR #7701)
Connect in one line
claude mcp add --transport http a2p32 https://zealous-unburned-tameness.ngrok-free.dev/mcp
Any MCP client that speaks streamable HTTP can use the same URL:
{ "mcpServers": { "a2p32-guard": { "url": "https://zealous-unburned-tameness.ngrok-free.dev/mcp" } } }
No install, no runtime, no local process. The endpoint answers initialize and
tools/list without payment.
Try without a wallet
curl -s https://zealous-unburned-tameness.ngrok-free.dev/v1/trial
# {"token":"...","calls":10,"left":10,"expires":"...T23:59:59Z"}
Use it as Authorization: Bearer trial:<token> against the paid tool. One token
per IP per day, 10 calls. When it runs out you get a normal 402 and pay with
x402. MCP clients get the same free a2p3_guard calls per IP and day without any
header, so the first tool call just works. The free quota grows with daily use:
10 calls on day one, +5 per consecutive day, up to 50.
Tools
| tool | what it does | price |
|---|---|---|
a2p3_describe |
limits you can enforce, with their scale | free |
a2p3_status |
current values and state of a tenant | free |
a2p3_text |
turn a sentence into orders | free |
a2p3_ledger |
usage and simulated billing | free |
a2p3_guard |
apply a batch of orders (returns the paid endpoint) | x402 |
Limits you can enforce: daily budget, API rate, write quota, transfer cap, token burn, queue batch size, retry loop and session lock.
Numbers (measured, not claimed)
Measured 2026-11-25 with bench_publico.py --n 200 --c 8:
| what | p50 | p95 | p99 | rate |
|---|---|---|---|---|
| public endpoint (tunnel edge) | 94.1 ms | 126.0 ms | 178.3 ms | 9.8 req/s |
| local engine | 1.8 ms | 3.4 ms | 5.6 ms | 412.7 req/s |
| engine, 1 producer | 88 ns/order (11.2 M/s) | |||
| engine, 4 producers, batches of 32 | 23.9 ns/order (41.9 M/s) | |||
| 402 challenge incl. CDP verify | 2,953 ms (engine adds < 0.2 ms) |
Raw data: /bench.json on the endpoint. Public latency is the tunnel edge, not
the engine.
What it saves
| case | without | with | saving |
|---|---|---|---|
| 30 governance actions | 30 calls · ~4,170 tokens | 1 batch · ~390 tokens | 10.7x fewer tokens |
| price of one batch of 30 | median guard listing: 0.0075 USDC per decision | 0.0050 USDC per batch | one batch < one decision elsewhere |
| buyer gas | — | 0 (CDP facilitator) | no gas |
Free preflight without a wallet:
curl -s "https://zealous-unburned-tameness.ngrok-free.dev/v1/check?budget=50&spent=12.4&amount=0.05"
curl -s "https://zealous-unburned-tameness.ngrok-free.dev/v1/savings?actions=30"
Pricing (x402 v2 on Base)
Simulate free (120/min)
Up to 5 actions free, always (120/min)
First 50 paid calls/day 0.0010 USDC
Up to 30 actions 0.0050 USDC
31–256 actions 0.0150 USDC
EIP-3009 signatures settled by the Coinbase CDP facilitator: no account, no API
key, no gas for the buyer. Discovery: /.well-known/agent.json,
/.well-known/x402, /openapi.json, /llms.txt.
Bridge (optional, stdio clients)
No dependencies beyond the Python standard library (3.10+).
{
"mcpServers": {
"a2p32-guard": {
"command": "python3",
"args": ["/absolute/path/to/bridge.py"],
"env": { "A2P_MCP_URL": "https://zealous-unburned-tameness.ngrok-free.dev/mcp" }
}
}
}
License
MIT — applies to this client only.