Funding Rates MCP
An MCP server that provides real-time funding rate data across major crypto exchanges, enabling agents to detect arbitrage opportunities.
Features
- Real-Time Funding Rates: Fetches current funding across Binance, OKX, Bybit, Bitget, Gate and CoinEx.
- Pivoted Table Output: Displays symbols as rows, exchanges as columns, and includes a
Divergence
column for max funding rate difference. - Claude Desktop Integration: Runs as an MCP server for interactive queries.
Installation
Prerequisites
- Python 3.10+
- uv for dependency management
- Claude Desktop (optional, for interactive queries)
- Git
Steps
- Clone the Repository:
- Set Up Dependencies with uv:
- Configuring Claude Desktop: To use with Claude Desktop:
- Edit the Claude configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the MCP server:
- Restart Claude Desktop. Look for the hammer icon to confirm integration.
- Edit the Claude configuration file:
Usage
Tools
The server provides the following MCP tool for querying funding rates:
compare_funding_rates
:- Description: Compares current funding rates for multiple symbols across specified exchanges, returning a pivoted Markdown table with a
Divergence
column showing the maximum funding rate difference for each symbol. - Parameters:
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{}
.
- Returns: A Markdown table with symbols as rows, exchanges as columns, funding rates as values (formatted as percentages), and a
Divergence
column. - Example: See the Examples section below.
- Description: Compares current funding rates for multiple symbols across specified exchanges, returning a pivoted Markdown table with a
Prompts
The server includes the following MCP prompt for generating natural language queries:
compare_funding_rates_prompt
:- Description: Generates a natural language prompt for comparing funding rates across all supported exchanges, suitable for Claude Desktop input.
- Parameters:
symbols
(List[str]): List of trading pairs (e.g.,["BTC/USDT:USDT", "ETH/USDT:USDT"]
). Required.
- Returns: A string prompt (e.g., "Compare the funding rates for BTC/USDT, ETH/USDT across binance, okx, bybit, bitget, gate, coinex.").
- Usage: Used internally by Claude Desktop to interpret user queries or for testing in MCP Inspector.
Examples
Compare Funding Rates
- Input (in Claude Desktop):
"Compare funding rates for BTC/USDT and ETH/USDT across all exchanges." - Output:
Compare Specific Exchanges
- Input (in Claude Desktop):
"Compare funding rates for SOL/USDT on Binance, OKX, and Bybit." - Output:
License
This project is licensed under the MIT License. See the LICENSE file for details.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
funding-rates-mcp
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP server that enables users to search for government grants based on keywords and view detailed information including funding, eligibility, and deadlines.Last updated -1JavaScript
- JavaScriptMIT License
- TypeScriptMIT License
- PythonMIT License