An MCP server that delivers crypto ETF flow data to power AI agents' decision-making.
Project description
ETF Flow MCP
An MCP server that delivers crypto ETF flow data to power AI agents' decision-making.
Features
- Unified Tool: The
get_etf_flowtool dynamically fetches historical ETF flow data for BTC or ETH. - Markdown Table Output: Leverages pivot tables to present data with ETF tickers as columns, dates as rows, and a total column for summed flows.
- Prompt Guidance: Includes a prompt (
etf_flow_prompt) to streamline LLM interactions for user-friendly queries.
Prerequisites
- Python: Version 3.10 or higher.
- uv: A fast Python package and project manager (install instructions).
- CoinGlass API Key: Obtain a key from CoinGlass.
- Claude Desktop: Optional, for interactive querying.
- Git: For cloning the repository.
Installation
-
Clone the Repository:
git clone https://github.com/kukapay/etf-flow-mcp.git cd etf-flow-mcp
-
Set Up with uv: Install dependencies using
uv:uv sync
Usage
Integrating with Claude Desktop
-
Configure Claude Desktop: Add the server to
claude_desktop_config.json(located in~/Library/Application Support/Claudeon macOS or%APPDATA%\Claudeon 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.pywith the full path tocli.py. -
Restart Claude Desktop: Verify the hammer icon appears in the Claude Desktop UI to confirm the server is loaded.
-
Query Examples:
- "Show me the latest BTC ETF flow data in a table"
- "Get the ETH ETF flow history"
Example Output
-
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 |
-
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 |
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file etf_flow_mcp-0.1.0.tar.gz.
File metadata
- Download URL: etf_flow_mcp-0.1.0.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b05b6664acf512bf05f46bc7fe152f48e5881960aa6f119a8591bb893daa5be6
|
|
| MD5 |
f5755c0a85c76f49de9ab40bbe8f5471
|
|
| BLAKE2b-256 |
72622b053be1509687a296dac35d369299e3c38421a597da73a57263f5936d0b
|
File details
Details for the file etf_flow_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: etf_flow_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef667a3c1b4eaf385517811b3730c077bfc3c2174e96371a27cfec9b929b0510
|
|
| MD5 |
ca401222b2ab77c296fc42e50d91bbf2
|
|
| BLAKE2b-256 |
9675b3d4d03f1702c09569f546349df3f1bd4366e57c69aaa672c564a13dd541
|