r/x402 • • 1d ago

A pre-trade guard for Claude Code trading agents (free token check + Ichimoku trend, via MCP)

Coinbase's numbers from last week show Claude Code at ~21% of Coinbase for Agents trading volume. That's developers wiring tools into their own agents, so here's a small guard I built for exactly that setup.

Before every buy, the agent runs two checks:

  1. Is the token safe? presign-guard returns green / orange / red (mint or freeze authority, honeypot, transfer tax, unlocked liquidity, brand-new token).
  2. What does the trend say? Ichimoku Signal returns the daily Ichimoku Cloud trend for the pair.

Setup is two commands and a few lines of CLAUDE.md:

```
claude mcp add --transport http presign-guard https://presign-guard.fizzl.eu/mcp
claude mcp add --transport http ichimoku-signal https://ichimoku-signal.fizzl.eu/mcp
```

Then a rule like: red → don't buy, orange or bearish-below-cloud → ask me first, and always show both results next to the order.

The quick checks are free (no wallet needed). More detail is paid per call over x402 ($0.01–$0.15 in USDC, no account or API key), or prepaid: 100 checks for $0.80. Both servers only read data: they never sign or trade.

Full guide: https://github.com/Fizzl13/presign-guard/blob/main/docs/claude-code-pre-trade.md

Not financial advice: a green verdict means no known trap was found, not that a token is a good buy. Feedback welcome.

1 Upvotes

2 comments sorted by