← cookbook · howto

Get realistic DeFi yields (emissions stripped) into your AI agent

DefiLlama reports apy_total including emissions inflation. Our tool strips emissions and prices IL risk. Real yield, not headline yield.

install (60 seconds)

pip install falsifylab-alpha-mcp

then in your agent's MCP config:

{
  "mcpServers": {
    "falsifylab-alpha": {
      "command": "python",
      "args": ["-m", "falsifylab_alpha_mcp"]
    }
  }
}

the prompt that works

paste this into your agent:

use top_yield_farms with min_apy=15 and asset=USDC. Strip any pool where realistic_apy > 500% (broken data) or TVL < $1M (illiquid). Rank survivors by realistic_apy / sqrt(TVL) — a crowded-vs-uncrowded proxy.

why this works

DefiLlama's apy_total includes emissions, which get dumped on TGE and collapse real yield. We compute realistic_apy = apy_base + apy_rewards × (1 - emissions_inflation_rate). Pools where the gap is large are emission farms with short half-lives.

the tool

top_yield_farms is one of 13 tools in FalsifyLab Alpha MCP (3 free, 10 Pro-only). Full schema at /.well-known/mcp/server-card.json. Tool descriptions at /install.

pricing

more

install → all 8 recipes live demo pricing