- Crypto Orderbook MCP
Crypto Orderbook MCP
An MCP server that analyzes order book depth and imbalance across major crypto exchanges.
Content
Crypto Orderbook MCP
An MCP server that analyzes order book depth and imbalance across major crypto exchanges, empowering AI agents and trading systems with real-time market structure insights.
Features
- Order Book Metrics: Calculate bid/ask depth and imbalance for a specified trading pair on a given exchange.
- Cross-Exchange Comparison: Compare order book depth and imbalance across multiple exchanges in a unified Markdown table.
- Supported Exchanges: Binance, Kraken, Coinbase, Bitfinex, Okx, Bybit
Installation
Prerequisites
- Python 3.10 or higher
- uv (Python package and project manager)
Setup
-
Clone the Repository
git clone https://github.com/kukapay/crypto-orderbook-mcp.git cd crypto-orderbook-mcp -
Install Dependencies
Use
uvto install the required packages:uv sync -
Configure the MCP Client(Claude Desktop)
"mcpServers": { "crypto-orderbook-mcp": { "command": "uv", "args": [ "--directory", "/absolute/path/to/crypto-orderbook-mcp", "run", "main.py" ] } }
Usage
The server provides two main tools:
calculate_orderbook: Computes bid depth, ask depth, and imbalance for a trading pair on a specified exchange.compare_orderbook: Compares bid depth, ask depth, and imbalance across multiple exchanges, returning a Markdown table.
Example: Calculate Order Book Metrics
Prompt: "Calculate the order book metrics for BTC/USDT on Binance with a 1% depth range."
Expected Output (JSON object):
{
"exchange": "binance",
"symbol": "BTC/USDT",
"bid_depth": 123.45,
"ask_depth": 234.56,
"imbalance": 0.1234,
"mid_price": 50000.0,
"timestamp": 1698765432000
}
Example: Compare Order Book Across Exchanges
Prompt: "Compare the order book metrics for BTC/USDT across Binance, Kraken, and OKX with a 1% depth range."
Expected Output (Markdown table):
| exchange | bid_depth | ask_depth | imbalance |
|----------|-----------|-----------|-----------|
| binance | 123.45 | 234.56 | 0.1234 |
| kraken | 89.12 | 178.34 | 0.0987 |
| okx | 145.67 | 256.78 | 0.1345 |
License
This project is licensed under the MIT License. See the LICENSE file for details.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
Tavily Mcp
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor