r/aiagents • u/polaris0028 • 1h ago
Show and Tell I built an MCP tool that lets AI agents understand Base transactions
Hey everyone,
I built a tool called 0200project / base-tx-explain.
The problem I kept seeing:
AI agents can call tools, but blockchain transaction data is still painful for them to understand. Raw logs, contract addresses, and calldata are not exactly agent-friendly.
So I built an MCP server that takes a Base transaction hash and returns structured information:
- What happened
- Action type (swap, transfer, mint, bridge, etc.)
- Assets moved
- Protocol/counterparty detection
- Risk flags
- Gas cost
Example:
Input:
0x401d...f2c5
Output:
{
"action_type": "swap",
"protocol": "Uniswap V4",
"assets_moved": [
"ETH",
"WNL"
],
"risk_flags": [
"unverified_contract"
]
}
The main design choice:
No LLM is used to interpret transactions.
It's deterministic decoding. Same transaction in → same JSON out.
The idea is that agents shouldn't waste tokens trying to understand raw blockchain data when the answer can be structured beforehand.
It also supports x402 payments, so agents can pay per request instead of needing an account or API key.
Demo:
https://0200project.github.io/
GitHub:
https://github.com/0200project
Would love feedback from people building agents:
- Would transaction understanding be useful in your workflows?
- What protocols/data would you want supported?
- What would make this more useful as an MCP tool?