AI Agents

DeFiStream provides a remote MCP (Model Context Protocol) server that gives AI agents direct access to on-chain DeFi event data. Connect your favourite agent once, then query blockchain data conversationally — no SDK, no code, just natural language.

What agents can do

With DeFiStream tools, an AI agent can:

  • Build queries for ERC-20 transfers, native token transfers, AAVE deposits/borrows, Uniswap swaps, Lido staking events, and more
  • Execute queries and return CSV results inline
  • Generate download links for large CSV or Parquet exports
  • Aggregate data into time or block buckets (hourly volume, daily counts, etc.)
  • Filter by address labels — e.g. “transfers to Binance” — without knowing the actual wallet address

Example conversation

Here’s a realistic interaction in Claude Code:

You: Get all USDT transfers to Binance in the last week

Claude: I'll query USDT transfers where the receiver is labeled "Binance"
        over the past 7 days.

        [calls supported_networks("erc20") → confirms ETH is supported]
        [calls erc20_query_builder(
            event_type="transfer",
            network="ETH",
            token="USDT",
            receiver_label="Binance",
            since="2026-01-31T00:00:00Z",
            until="2026-02-07T00:00:00Z"
        )]
        [calls execute_query(query=..., api_key=...)]

        Here are the results — 1,247 transfers totalling 842M USDT
        were sent to Binance-labelled addresses this week:

        | Date       | Count | Total USDT      |
        |------------|-------|-----------------|
        | 2026-01-31 | 184   | 121,400,000     |
        | 2026-02-01 | 192   | 134,200,000     |
        | ...        | ...   | ...             |

The agent handles tool selection, parameter building, and result formatting automatically. You just ask the question.

Getting an API key

  1. Go to app.defistream.dev
  2. Sign up or log in
  3. Navigate to Account and copy your API key (starts with dsk_)

The agent will ask for your API key when it needs to execute a query. You only need to provide it once per session.

Next steps

  • Setup — Connect the MCP server to Claude Code, Claude Web, ChatGPT Desktop, or Codex CLI
  • Tools Reference — Full list of available tools with parameters