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. - 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 t
Add this skill
npx mdskills install kukapay/crypto-orderbook-mcpProvides cross-exchange orderbook analysis with clear setup, but over-scoped permissions for read-only operations
1# Crypto Orderbook MCP23An 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.45678910## Features1112- **Order Book Metrics**: Calculate bid/ask depth and imbalance for a specified trading pair on a given exchange.13- **Cross-Exchange Comparison**: Compare order book depth and imbalance across multiple exchanges in a unified Markdown table.14- **Supported Exchanges**: Binance, Kraken, Coinbase, Bitfinex, Okx, Bybit1516## Installation1718### Prerequisites1920- Python 3.10 or higher21- [uv](https://github.com/astral-sh/uv) (Python package and project manager)2223### Setup24251. **Clone the Repository**2627 ```bash28 git clone https://github.com/kukapay/crypto-orderbook-mcp.git29 cd crypto-orderbook-mcp30 ```31322. **Install Dependencies**3334 Use `uv` to install the required packages:3536 ```bash37 uv sync38 ```39403. **Configure the MCP Client(Claude Desktop)**4142 ```43 "mcpServers": {44 "crypto-orderbook-mcp": {45 "command": "uv",46 "args": [ "--directory", "/absolute/path/to/crypto-orderbook-mcp", "run", "main.py" ]47 }48 }49 ```5051## Usage5253The server provides two main tools:54551. **`calculate_orderbook`**: Computes bid depth, ask depth, and imbalance for a trading pair on a specified exchange.562. **`compare_orderbook`**: Compares bid depth, ask depth, and imbalance across multiple exchanges, returning a Markdown table.5758### Example: Calculate Order Book Metrics5960**Prompt**: "Calculate the order book metrics for BTC/USDT on Binance with a 1% depth range."6162**Expected Output** (JSON object):6364```json65{66 "exchange": "binance",67 "symbol": "BTC/USDT",68 "bid_depth": 123.45,69 "ask_depth": 234.56,70 "imbalance": 0.1234,71 "mid_price": 50000.0,72 "timestamp": 169876543200073}74```7576### Example: Compare Order Book Across Exchanges7778**Prompt**: "Compare the order book metrics for BTC/USDT across Binance, Kraken, and OKX with a 1% depth range."7980**Expected Output** (Markdown table):8182```markdown83| exchange | bid_depth | ask_depth | imbalance |84|----------|-----------|-----------|-----------|85| binance | 123.45 | 234.56 | 0.1234 |86| kraken | 89.12 | 178.34 | 0.0987 |87| okx | 145.67 | 256.78 | 0.1345 |88```8990## License9192This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.9394
Full transparency — inspect the skill content before installing.