LabscoMCP early access ↗
kukapayMCP SERVER

DEX Metrics MCP

Decentralised-exchange trading volume from Dune Analytics, sliced by DEX, blockchain, aggregator, frontend and Telegram bot, returned as markdown tables.

by kukapay ↗DeFi Positions & On-Chain AnalyticsCommunity

LABSCO SUMMARY

Segmentation is the point, not the raw total.

Total DEX volume is available everywhere; what is harder to get in one place is the same number cut by aggregator, by frontend and by Telegram bot, which is where routing behaviour actually shows up. Output arrives as markdown tables ready to read, and every response comes from Dune, so the numbers are only as fresh as the dashboards behind them.

What it is

A read-only window onto Dune Analytics' DEX volume dashboards. Each tool runs one prepared query and returns a markdown table, so a question about where trading volume sits gets answered in the conversation instead of in a browser tab.

What you get

  • Latest 24-hour and 7-day volume ranked by DEX and by aggregator — get_latest_trading_volume_by_dex, get_latest_trading_volume_by_aggregator
  • Daily volume by blockchain and by DEX — get_daily_trading_volume_by_chain, get_daily_trading_volume_by_dex
  • Weekly and monthly volume by DEX, plus Solana-only weekly volume by DEX — get_weekly_trading_volume_by_dex, get_monthly_trading_volume_by_dex, get_weekly_solana_trading_volume_by_dex
  • Year-over-year monthly volume by aggregator — get_yoy_monthly_trading_volume_by_aggragator
  • 7-day volume by frontend and daily volume by Telegram bot — get_weekly_trading_volume_by_frontend, get_daily_trading_volume_by_telegram_bot
  • A limit parameter on every tool, defaulting to 1000 rows

Requirements

A Dune Analytics API key in DUNE_API_KEY. Python 3.10 or higher and uv. Install from a clone with uv sync, then run uv --directory <YOUR_PATH_TO_DEX_METRICS_MCP> run main.py. The package is dex-metrics-mcp (0.1.0). Every tool is a read; nothing writes anywhere.

Setup effort

Build from source — git clone https://github.com/kukapay/dex-metrics-mcp.git