etf-flow-mcp is an MCP (Model Context Protocol) server designed to provide cryptocurrency ETF fund flow data for AI agents' decision-making processes. Through a standardized MCP interface, it enables AI assistants to dynamically query and retrieve historical ETF fund flow information.
Main Capabilities
- Unified tool: Provides the get_etf_flow tool, which can dynamically retrieve historical ETF fund flow data for BTC or ETH.
- Markdown table output: Presents data in a pivot table format, with ETF tickers as columns, dates as rows, and a total column that summarizes the fund flows of each ETF.
- Prompt guidance: Includes the etf_flow_prompt prompt to simplify large language model interaction and make it easier for users to query in natural language.
Usage
-
Environment requirements:
- Python 3.10 or later
- uv: a fast Python package and project manager
- CoinGlass API key: must be obtained from CoinGlass
- Claude Desktop: optional, for interactive queries
- Git: for cloning the repository
-
Installation steps: Clone the repository:
git clone https://github.com/kukapay/etf-flow-mcp.git cd etf-flow-mcpInstall dependencies using uv:
uv sync -
Integration with Claude Desktop: Add the server configuration in claude_desktop_config.json (this file is located at ~/Library/Application Support/Claude on macOS or %APPDATA%\Claude on Windows):
{ "mcpServers": { "etf-flow-mcp": { "command": "uv", "args": [ "--directory", "/absolute/path/to/etf-flow-mcp", "run", "etf-flow-mcp" ], "env": { "COINGLASS_API_KEY": "your_coinglass_api_key_here" } } } }Replace /absolute/path/to/etf-flow-mcp/cli.py with the full path to cli.py. Restart Claude Desktop; if a hammer icon appears in the UI, the server has loaded successfully.
-
Query examples:
- "Show me the latest BTC ETF flow data in a table"
- "Get the ETH ETF flow history"
Output example (BTC ETF Flow):
| Date | GBTC | IBIT | FBTC | ARKB | BITB | BTCO | HODL | BRRR | EZBC | BTCW | Total |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2025-04-24 | 0 | 327300000 | 0 | 97700000 | 10200000 | 7750000 | 0 | 0 | 0 | 0 | 442200000 |
| 2025-04-23 | 0 | 643200000 | 124400000 | 129500000 | -15200000 | 0 | 5300000 | 0 | 0 | 0 | 917700000 |
| 2025-04-22 | 65100000 | 193500000 | 253800000 | 267100000 | 76700000 | 18300000 | 6500000 | 0 | 10600000 | 0 | 912700000 |
| 2025-04-21 | 36600000 | 41600000 | 88100000 | 116100000 | 45100000 | 0 | 11700000 | 0 | 10100000 | 0 | 381300000 |
| 2025-04-18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Output example (ETH ETF Flow):
| Date | ETHE | GETH | ETHA | ETHW | FETH | ETHV | EZET | CETH | QETH | Total |
|---|---|---|---|---|---|---|---|---|---|---|
| 2025-04-24 | -6600000 | 18300000 | 40000000 | 5100000 | 0 | 2600000 | 0 | 4100000 | 0 | 63550000 |
| 2025-04-23 | 0 | 6400000 | -30300000 | 0 | 0 | 0 | 0 | 0 | 0 | -23900000 |
| 2025-04-22 | 0 | 0 | 0 | 6100000 | 32700000 | 0 | 0 | 0 | 0 | 38800000 |
| 2025-04-21 | -25400000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -25400000 |
| 2025-04-18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 2025-04-17 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Applicable scenarios
- Cryptocurrency investors or analysts need to quickly obtain BTC or ETH ETF fund flow data to support investment decisions.
- AI agent developers want to integrate real-time financial data into agents to enhance their analysis and decision-making capabilities.
- Natural language queries through MCP-supported clients such as Claude DesktopInquiry, lowering the barrier to use.
Limitations
- Requires a CoinGlass API key, which may involve CoinGlass's terms of service and fees (specific fees not yet provided).
- Only supports ETF fund flow data for BTC and ETH.
- Requires configuring the runtime environment, suitable for users with some technical background.
- Data accuracy depends on the CoinGlass API.
This project is open source under the MIT License.