Tracks trading volume metrics for DEXs on the Ethereum blockchain, providing data on trading volumes segmented by different time periods.
Tracks trading volumes for DEXs on the Fantom blockchain, providing metrics on daily and weekly trading activity.
Tracks trading volume for the GMX decentralized exchange across different time periods, comparing its performance against other DEXs.
Collects trading volume data for DEXs operating on the Optimism layer-2 solution, offering insights into daily and weekly performance.
Monitors trading activity on the Polygon blockchain, tracking daily and weekly trading volumes for DEXs operating on this network.
Provides specific tracking of weekly trading volumes for DEXs on the Solana blockchain, allowing comparison of performance across different Solana-based exchanges.
Monitors and reports daily trading volumes conducted through various Telegram trading bots, allowing comparison of their performance and popularity.
DEX Metrics MCP
An MCP server that tracks trading volume metrics segmented by DEX, blockchain, aggregator, frontend, and Telegram bot, powered by Dune Analytics.
Features
Latest 24-hour and 7-day trading volumes by DEX and aggregator.
Daily, weekly, and monthly trading volumes by DEX and blockchain.
Year-over-year monthly trading volume by aggregator.
Solana-specific weekly trading volume by DEX.
7-day trading volume by frontend and daily trading volume by Telegram bot.
Prerequisites
Python 3.10 or higher
uv (recommended package manager)
A Dune Analytics API key (obtainable from Dune Analytics)
Installation
Clone the Repository
git clone https://github.com/kukapay/dex-metrics-mcp.git cd dex-metrics-mcpInstall Dependencies
uv syncInstalling to Claude Desktop:
Install the server as a Claude Desktop application:
uv run mcp install main.py --name "DEX Metrics"Configuration file as a reference:
{ "mcpServers": { "DEX Metrics": { "command": "uv", "args": [ "--directory", "/path/to/dex-metrics-mcp", "run", "main.py" ], "env": { "DUNE_API_KEY": "dune_api_key"} } } }Replace
/path/to/dex-metrics-mcp
with your actual installation path, anddune_api_key
with your API key from Dune Analytics.
Example Usage
The server exposes the following tools, accessible via MCP client or API calls:
get_latest_trading_volume_by_dex(limit: int = 1000)
: Latest 24-hour/7-day trading volume by DEX.get_latest_trading_volume_by_aggregator(limit: int = 1000)
: Latest 24-hour/7-day trading volume by aggregator.get_daily_trading_volume_by_chain(limit: int = 1000)
: Daily trading volume by blockchain.get_daily_trading_volume_by_dex(limit: int = 1000)
: Daily trading volume by DEX.get_weekly_trading_volume_by_dex(limit: int = 1000)
: Weekly trading volume by DEX.get_monthly_trading_volume_by_dex(limit: int = 1000)
: Monthly trading volume by DEX.get_yoy_monthly_trading_volume_by_aggragator(limit: int = 1000)
: Year-over-year monthly trading volume by aggregator.get_weekly_solana_trading_volume_by_dex(limit: int = 1000)
: Weekly Solana trading volume by DEX.get_weekly_trading_volume_by_frontend(limit: int = 1000)
: 7-day trading volume by frontend.get_daily_trading_volume_by_telegram_bot(limit: int = 1000)
: Daily trading volume by Telegram bot.
Each tool returns data in a markdown-formatted table or an error message if the query fails.
1. get_latest_trading_volume_by_dex
Prompt:
Sample Output
2. get_latest_trading_volume_by_aggregator
Prompt:
Sample Output:
3. get_weekly_trading_volume_by_chain
Prompt:
Sample Output:
4. get_daily_trading_volume_by_dex
Prompt:
Output:
5. get_weekly_trading_volume_by_dex
Prompt:
Output:
6. get_monthly_trading_volume_by_dex
Prompt:
Output:
7. get_yoy_monthly_trading_volume_by_aggragator
Prompt:
Output:
8. get_weekly_solana_trading_volume_by_dex
Prompt:
Output
9. get_weekly_trading_volume_by_frontend
Prompt:
Output:
10. get_daily_trading_volume_by_telegram_bot
Prompt:
Output:
License
This project is licensed under the MIT License. See the LICENSE file for details.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
An MCP server that tracks trading volume metrics segmented by DEX, blockchain, aggregator, frontend, and Telegram bot.
- Features
- Prerequisites
- Installation
- Example Usage
- 1. get_latest_trading_volume_by_dex
- 2. get_latest_trading_volume_by_aggregator
- 3. get_weekly_trading_volume_by_chain
- 4. get_daily_trading_volume_by_dex
- 5. get_weekly_trading_volume_by_dex
- 6. get_monthly_trading_volume_by_dex
- 7. get_yoy_monthly_trading_volume_by_aggragator
- 8. get_weekly_solana_trading_volume_by_dex
- 9. get_weekly_trading_volume_by_frontend
- 10. get_daily_trading_volume_by_telegram_bot
- License
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server implementation that enables access to DexScreener API data, providing real-time information on DEX pairs, token profiles, and market statistics across multiple blockchains.Last updated -718The Unlicense
- -securityFlicense-qualityAn MCP server that exposes the XTB trading API, allowing users to interact with their XTB trading accounts through the Model Context Protocol to perform operations like account management, market data retrieval, and trade execution.Last updated -01
- -securityAlicense-qualityAn MCP server that integrates with the Freqtrade cryptocurrency trading bot.Last updated -81MIT License
- AsecurityFlicenseAqualityAn MCP server that analyzes stock trading volume to identify significant price levels (volume walls), supporting features like order book data fetching, trade analysis, and volume distribution tracking.Last updated -315