An MCP server that provides real-time funding rate data across major crypto exchanges.
An MCP server that provides real-time funding rate data across major crypto exchanges, enabling agents to detect arbitrage opportunities.
Divergence
column for max funding rate difference.Clone the Repository:
git clone https://github.com/kukapay/funding-rates-mcp.git
cd funding-rates-mcp
Set Up Dependencies with uv:
uv sync
Configuring Claude Desktop:
To use with Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"funding-rates-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/funding-rates-mcp", "run", "funding-rates-mcp"]
}
}
}
The server provides the following MCP tool for querying funding rates:
compare_funding_rates
:
Divergence
column showing the maximum funding rate difference for each symbol.symbols
(List[str]): List of trading pairs (e.g., ["BTC/USDT:USDT", "ETH/USDT:USDT"]
). Required.exchanges
(List[str], optional): List of exchanges to compare (e.g., ["binance", "okx"]
). Defaults to all supported exchanges (binance
, okx
, bybit
, bitget
, gate
, coinex
).params
(Dict, optional): Additional parameters for the API call. Defaults to {}
.Divergence
column.The server includes the following MCP prompt for generating natural language queries:
compare_funding_rates_prompt
:
symbols
(List[str]): List of trading pairs (e.g., ["BTC/USDT:USDT", "ETH/USDT:USDT"]
). Required.Current funding rates:
| Symbol\Exchange | binance | okx | bybit | bitget | gate | coinex | Divergence |
|-----------------|-----------|-----------|-----------|-----------|-----------|-----------|------------|
| BTC/USDT:USDT | 0.005161% | 0.007548% | 0.010000% | 0.002900% | -0.019200% | -0.035013% | 0.045013% |
| ETH/USDT:USDT | 0.010000% | 0.005839% | 0.010000% | 0.010000% | -0.008200% | 0.000000% | 0.018200% |
Current funding rates:
| Symbol\Exchange | binance | okx | bybit | Divergence |
|-----------------|-----------|-----------|-----------|------------|
| SOL/USDT:USDT | -0.015312% | -0.003639% | -0.004467% | 0.011673% |
This project is licensed under the MIT License. See the LICENSE file for details.