Fetches market data from Binance spot and futures markets, including historical OHLCV data, volume analysis, and price information for cryptocurrency trading analysis.
Integrates with OpenAI API for AI-powered cryptocurrency trading analysis, signal generation, and market insights using various language models.
Model Context Protocol Server for AI-Powered Cryptocurrency Analysis
A comprehensive Model Context Protocol (MCP) server that bridges AI assistants with professional cryptocurrency market analysis capabilities. This server transforms AI conversations by providing real-time market data, sophisticated technical analysis, and intelligent trading insights through standardized MCP protocols. Whether you're building analysis tools, research systems, or AI financial advisors, this server delivers the complete infrastructure needed for data-driven market analysis and decision-making across multiple timeframes and asset classes.
š¬ MCP Technical Analysis Server Demo
Watch the full demonstration of AI-powered cryptocurrency analysis capabilities
š„ Key Features:
š“ 69 Analysis & Trading Tools - Complete market analysis + trading execution + Hyperliquid operations
š Real-time Market Data - Live prices, indicators, volume analysis
šÆ Advanced Technical Analysis - 35 technical indicators (MAs, oscillators, channels, patterns)
š° Risk Management - Position sizing, stop loss, take profit calculations
š Multi-Timeframe Analysis - Daily, 4H, 1H trend alignment
š¤ 31 AI Prompts - Pre-configured analysis workflows for Day Trading, Swing Trading, Position Trading
š 4 Resources - Comprehensive trading guides and documentation
š Streaming Support - HTTP/SSE for real-time updates
š¹ Hyperliquid Futures - Testnet & Mainnet futures execution with slippage protection (0.010% - 8.00%)
šŖ Hyperliquid Spot - Market & limit orders with automatic slippage retry (mainnet ready)
š¼ Account Operations - Balance checks, transfers (spot ā perp), send USD/tokens (6 operations)
š Bridge Operations - Withdraw to Arbitrum L1, check withdrawal status (2 operations)
š HyperScreener Integration - Whale positions, liquidations, top traders, large trades data
šÆ Whale Tracking - Track specific wallet addresses with labeling & change detection alerts
š Tier Classification - Market breakdown by trader tier (š¦ Shrimp to š Institutional)
š BTC Correlation - Altcoin correlation with BTC, beta analysis, market regime detection
š Enhanced L2 Order Book - Real-time bids/asks with depth and imbalance from Hyperliquid
š§ AI Memory (Mem0) - Persistent memory for trading preferences, trade journal, pattern learning
ā Production Ready - All 104 components (69 tools + 4 resources + 31 prompts) validated and working
šļø Fully Modular - Clean architecture with 5 tool categories, 83.8% code reduction in core file
š Recent Updates
December 3, 2025 - Hyperliquid Account & Spot Trading Integration + TypeScript Fix
Bug Fixes
ā Fixed TypeScript compilation error: Added
slippageTypeproperty toTradeResultinterface in futures trading toolsā Build now completes successfully without errors
New Hyperliquid Tools (3)
Account Operations (6 operations merged)
ā
hyperliquid_account_operations- Balance checks, transfers (spot ā perp), send USD/tokenscheck_spot_balance- View all spot token balancescheck_perp_balance- View perpetual positions and margintransfer_spot_to_perp- Move funds to futures tradingtransfer_perp_to_spot- Move funds to spot tradingsend_spot_token- Send tokens to other addressessend_usd- Send USD to other addresses
Bridge Operations (2 operations merged)
ā
hyperliquid_bridge_operations- L1 Arbitrum bridgewithdraw_to_arbitrum- Withdraw to Arbitrum (3-hour bridge)check_withdraw_status- Check withdrawal status
Spot Trading (1 tool)
ā
spot_trade- Buy/sell spot tokens with slippage retry (0.010% ā 8.00%)Market orders with automatic slippage retry (same as futures)
Limit orders with exact price execution
Token decimal handling and price formatting
Production Ready - Use mainnet with small amounts ($5-10)
Testnet Limitations:
ā ļø ZERO liquidity - Orders will be rejected even with high slippage (13.919%+)
ā ļø Hyperliquid limit - Max slippage cannot exceed 80% from reference price
ā ļø Not recommended for spot trading tests
ā Solution: Use mainnet with small amounts for realistic testing
Testing & Validation:
$100+ real transactions executed on testnet
100% coverage for account and bridge operations
Spot trading tested: Successfully executed HYPE trades with 13.919% slippage on testnet
Comprehensive documentation: See
FINAL_SUMMARY.mdfor complete implementation details
Data Now Available
Tool | Data Status |
| ā longShortRatio, whalePositions, recentLiquidations, largeTrades, marketOverview |
| ā hyperscreenerRatio, whalePositions, topTradersOverall |
| ā liquidationHeatmap with price levels, recentLiquidations |
| ā CVD (cvdTrend, cvdDelta) |
š Local Development: Run the MCP server locally for full control and privacy
š HTTP Streaming: Remote MCP connection via mcp-remote for Cursor IDE
š What's Included
š 69 Complete Analysis & Trading Tools
Market Data (5): Price, indicators, volume analysis, multi-timeframe, external data
Order Book & Market (8): Order book depth, volume profile, market structure, regime, patterns, divergence, liquidation, long/short ratio
Position & Whale Tracking (4): Position tracking, correlation analysis, whale position tracking, tier classification
Risk Management (2): Position sizing and risk/reward calculations
Hyperliquid Account (3): Account operations (6 ops), bridge operations (2 ops), spot trading (1 tool)
Moving Averages (10): MA envelope, VWMA, McGinley, Rainbow, Kaufman, Hull, WMA, SMMA, DEMA, TEMA
Oscillators (18): Stochastic RSI, CMO, PPO, AO, Gator, Elder Ray, Fisher, KST, Schaff, Coppock, TSI, RVI, DPO, Momentum, ROC, Ultimate, TRIX
Merged Indicator Tools (7): Volume indicators, volatility, trend, strength, channels, pivot points, patterns
Trading Execution (5): Hyperliquid futures (testnet/mainnet), spot trading, account operations, bridge operations
AI Memory (8): Save preferences, log trades, get insights, check patterns, remember, recall, get all, delete
š 4 Educational Resources
Comprehensive documentation for trading strategies, risk management, and technical analysis
API references and integration guides
Specialized guides for volume analysis, Fibonacci, orderbook, and more
NEW: Usage patterns guide for Day Trading, Swing Trading, Position Trading
NEW: Complete tools reference (69 tools with parameters including AI Memory)
š¤ 31 AI Analysis Prompts
Core analysis workflows for comprehensive market research
Technical analysis prompts for indicator-based insights
Risk management and position sizing guidance
Specialized prompts for advanced trading strategies
NEW: Day Trading Analysis with fast oscillators (stochastic_rsi, fisher_transform)
NEW: Swing Trading Analysis with multi-timeframe and divergence
NEW: Position Trading Analysis with volume profile and long-term momentum
NEW: Risk Management Analysis with liquidation levels
NEW: Oscillators Analysis (11 oscillator indicators)
NEW: Moving Averages Analysis (10 MA indicators)
š Quick Start
1ļøā£ Installation
2ļøā£ Run Server
Server runs at http://localhost:8787 with SSE streaming support for real-time market analysis!
š§ Linux / Mac
šŖ Windows
Alternative - Manual Start:
3ļøā£ Add to MCP Client
šŖ Windows - Cursor IDE / Claude Desktop
Add to mcp.json or .cursor/mcp.json:
š§ Linux / Mac - Cursor IDE / Claude Desktop
Add to .cursor/mcp.json or mcp.json:
ā” Claude Code (CLI) - All Platforms
š Remote Access via mcp-remote
For remote MCP connection, add to .mcp.json in project root:
š Geographic Access & Restrictions
Binance Access in Restricted Countries
If Binance is banned or restricted in your country, you can still access the platform and use this MCP server by configuring Cloudflare's DNS (1.1.1.1). If Cloudflare DNS fails, use a VPN as an alternative solution.
Recommended Setup:
First, try configuring DNS to use Cloudflare's 1.1.1.1 (primary) and 1.0.0.1 (secondary)
If DNS configuration doesn't work, use a reputable VPN service (NordVPN, ExpressVPN, or similar)
Connect to a server in a country where Binance operates freely (e.g., Netherlands, Singapore, Japan)
Cloudflare DNS Configuration (Try First):
VPN Alternative (If DNS Fails):
Install a reputable VPN service
Connect to a server in an unrestricted country
Access Binance normally through the VPN connection
Countries with Complete Bans
No | Country | Status | Year | Main Reason |
1 | United States | Banned | 2019 | Regulatory violations; Binance.US launched as compliant alternative |
2 | Canada | Withdrew from market | 2023 | Strict regulations; $4.32 million fine for anti-money laundering violations (2024) |
3 | United Kingdom | Banned | 2021-2023 | FCA revoked license for non-compliance with anti-money laundering rules; total license revocation in 2023 |
4 | Netherlands | Withdrew from market | 2023 | Failed to obtain regulatory approval; ā¬3.3 million fine for unlicensed operations (2022) |
5 | Nigeria | Declared illegal | 2023-2024 | SEC Nigeria declared Binance illegal; Executives arrested; Naira services deactivated |
6 | Belgium | Banned | 2023 | Financial regulator ordered operations halt for non-compliance with EU financial laws |
7 | Philippines | Blocked | 2024 | SEC blocked website (March 2024) for unlicensed operations; Attempts to block app |
8 | Japan | Banned | 2021 | Financial Services Agency banned operations for being unregistered; AML violation complaints |
9 | Thailand | Blocked | 2021 | SEC Thailand filed criminal complaints for unlicensed operations |
10 | Malaysia | Not available | - | Listed in SC Malaysia's investor warning list |
11 | Singapore | Restricted | 2021 | MAS banned Binance.com from recruiting Singapore users without license; IP geo-blocking |
12 | Italy | Temporarily blocked | 2021 | CONSOB ordered blocking (July 2021); Obtained regulatory approval (May 2022) |
13 | India | Blocked | 2024 | App removed from App Store and Google Play (January 2024); PMLA violations |
Countries with Partial Restrictions
No | Country | Restriction Type | Details |
1 | China | Spot trading blocked | Excluding Hong Kong SAR and Taiwan |
2 | Indonesia | No official license | Serves through local partner Tokocrypto regulated by Bappebti |
Note: This information is for educational purposes. Always comply with local laws and regulations regarding cryptocurrency trading in your jurisdiction.
š¦ MCP Capabilities
The MCP Technical Analysis Server exposes 104 total components through the Model Context Protocol:
69 Tools - Executable functions for analysis, trading, and account management
31 Prompts - Pre-configured AI workflows for trading strategies
4 Resources - Educational documentation and guides
Component Breakdown
š§ Tools (69)
No | Tool Name | Description |
1 |
| Get latest prices for multiple trading tickers/symbols at once (e.g., ["BTC", "ETH", "SOL"]) |
2 |
| Get comprehensive technical analysis indicators for multiple trading tickers at once |
3 |
| Get comprehensive volume analysis for multiple trading tickers at once |
4 |
| Get multi-timeframe trend alignment analysis (Daily, 4H, 1H) |
5 |
| Get external market data (funding rate, open interest, liquidations, whale positions, top traders, large trades from HyperScreener) |
6 |
| Get real-time L2 order book depth from Hyperliquid (bids/asks, spread, imbalance) |
7 |
| Get volume profile analysis (POC, VAH, VAL, HVN, LVN) |
8 |
| Get market structure analysis (swing highs/lows, COC) |
9 |
| Get market regime analysis (trending/ranging/volatile) |
10 |
| Get candlestick pattern detection (doji, engulfing, etc.) |
11 |
| Get RSI/price divergence detection |
12 |
| Get liquidation level analysis with heatmap data from HyperScreener |
13 |
| Get long/short ratio with whale positions and top traders from HyperScreener |
14 |
| Get your own futures positions from Hyperliquid (account value, margin, PnL, leverage) |
15 |
| BTC dominance, altcoin correlation, beta analysis, market regime detection |
16 |
| Track specific wallet addresses with labeling & change detection alerts |
17 |
| Market breakdown by tier (š¦āš) with Long/Short and top wallets per tier |
18 |
| Calculate stop loss, take profit, and risk/reward ratio |
19 |
| Calculate position size, leverage, margin, and quantity |
20 |
| MA Envelope for volatility-based support/resistance |
21 |
| Volume-Weighted Moving Average |
22 |
| McGinley Dynamic - adaptive MA with reduced lag |
23 |
| Rainbow MA - multiple MAs for trend visualization |
24 |
| Kaufman Adaptive MA - adjusts to market efficiency |
25 |
| Hull Moving Average - reduced lag, smooth trend |
26 |
| Weighted Moving Average |
27 |
| Smoothed Moving Average |
28 |
| Double Exponential Moving Average (DEMA) |
29 |
| Triple Exponential Moving Average (TEMA) |
30 |
| Stochastic RSI - RSI with stochastic formula |
31 |
| Chande Momentum Oscillator (-100 to +100) |
32 |
| PPO - MACD as percentage |
33 |
| Accelerator Oscillator (Bill Williams) |
34 |
| Awesome Oscillator - momentum via median price |
35 |
| Gator Oscillator - Alligator convergence/divergence |
36 |
| Elder-Ray Index - Bull/Bear Power |
37 |
| Fisher Transform - Gaussian normalized reversals |
38 |
| KST - multi-timeframe ROC momentum |
39 |
| Schaff Trend Cycle - MACD + Stochastic |
40 |
| Coppock Curve - long-term momentum bottoms |
41 |
| TSI - double-smoothed momentum |
42 |
| RVI - close vs open momentum |
43 |
| Detrended Price Oscillator - cycle identification |
44 |
| Momentum Indicator - rate of price change |
45 |
| ROC - percentage price change |
46 |
| Ultimate Oscillator - 3 timeframe combination |
47 |
| TRIX - triple smoothed EMA rate of change |
48 |
| Merged volume tool with types: chaikin_money_flow, chaikin_oscillator, klinger_oscillator, volume_oscillator, ease_of_movement, price_volume_trend, positive_volume_index, volume_roc, anchored_vwap, volume_zone_oscillator, money_flow_index |
49 |
| Merged volatility tool with types: bollinger_band_width, bollinger_percent_b, chaikin_volatility, historical_volatility, mass_index, ulcer_index |
Trend Indicators (Merged Tool) | ||
50 |
| Merged trend tool with types: supertrend, alligator, ichimoku_cloud, vortex, linear_regression, r_squared |
Strength Indicators (Merged Tool) | ||
51 |
| Merged strength tool with types: bull_bear_power, force_index, center_of_gravity, balance_of_power, advance_decline_line |
Channels (Merged Tool) | ||
52 |
| Merged channels tool with types: keltner_channels, donchian_channels, price_channel |
Pivot Points (Merged Tool) | ||
53 |
| Merged pivot tool with types: camarilla, standard, fibonacci_retracement |
Patterns (Merged Tool) | ||
54 |
| Merged patterns tool with types: fractals, zigzag, change_of_character |
55 |
| Execute futures trades on Hyperliquid TESTNET. Supports market/limit/custom orders, sizeInUsd ($100), leverage (1-100x), slippage protection (0.01%-50%), auto- |
56 |
| Execute REAL futures trades on Hyperliquid MAINNET. Safety checks: confirmExecution=true required, asset whitelist, min $10, max 25% equity. |
57 |
| Close or reduce positions on Hyperliquid (testnet/mainnet). Full or partial close (1-99%), auto-detects position side, reduceOnly for safety. |
58 |
| Get market sentiment from Fear & Greed Index + BTC Dominance + Funding Summary (FREE APIs). Overall sentiment score + trading recommendation. |
59 |
| 6 operations: check balances, transfers (spot ā perp), send USD/tokens. Tested with $100+ real transactions. Production ready. |
60 |
| L1 Arbitrum bridge: withdraw_to_arbitrum (3-hour), check_withdraw_status. Full testnet/mainnet support. |
61 |
| Buy/sell spot tokens with slippage retry (0.010% ā 8.00%). Market & limit orders. Use mainnet ($5-10 recommended). |
62 |
| Save trading preferences (leverage, risk %, pairs, style). AI remembers for future interactions. |
63 |
| Log completed trade with full context (entry/exit reason, PnL, lesson) for pattern learning. |
64 |
| Get personalized trading insights based on history (performance, patterns, mistakes). |
65 |
| Check if current setup matches past winning/losing patterns from your history. |
66 |
| Store any important note or context for future reference (key levels, observations). |
67 |
| Search and recall stored memories based on query. |
68 |
| Get all stored memories for review. |
69 |
| Delete specific memory by ID. |
š Resources (4)
Educational documentation accessible through the MCP protocol.
No | Resource URI | Description |
1 |
| Comprehensive guide on trading strategies, technical analysis, and best practices. Covers trend following, mean reversion, breakout trading, volume-based strategies, and risk management principles. |
2 |
| Complete guide on risk management, position sizing, stop loss/take profit strategies, leverage management, and portfolio risk. Includes formulas, examples, and best practices. |
3 |
| Complete overview of all 69 MCP tools with descriptions, parameters, and usage patterns. Organized by category: Market Data, Execution, Technical Indicators, and AI Memory. |
4 |
| Step-by-step guide for analysis to execution workflow. Covers comprehensive analysis, signal identification, user confirmation, testnet/mainnet execution, position monitoring, and trade logging. |
š¤ Prompts (31)
No | Prompt Name | Description |
Core Trading Prompts | ||
1 |
| Analyze a crypto asset and prepare execution plan with risk management. NEW params: leverage, strategy, timeframe |
2 |
| Scan multiple assets for trading opportunities. NEW params: strategy, minConfidence, sortBy |
3 |
| Complete market analysis with technical indicators and risk assessment. NEW params: includeAdvanced, includeVolume, includeExternal |
Quick Analysis Prompts | ||
4 |
| Fast price check with basic market data |
5 |
| Trend direction and strength analysis |
6 |
| High-level market sentiment and key levels |
Technical Analysis Prompts | ||
7 |
| Deep dive into technical indicators and signals |
8 |
| Volume profile and liquidity analysis |
9 |
| Market structure and change of character detection |
Advanced Strategy Prompts | ||
10 |
| RSI and price divergence identification |
11 |
| Liquidation level analysis and risk zones |
12 |
| Fibonacci retracement and extension trading |
13 |
| Spot-futures price divergence opportunities |
Risk Management Prompts | ||
14 |
| Comprehensive risk assessment and position sizing |
15 |
| Active position monitoring and adjustment recommendations |
16 |
| Portfolio performance and rebalancing analysis |
17 |
| Volatility measurement and risk assessment |
Specialized Trading Prompts | ||
18 |
| Entry and exit timing optimization |
19 |
| Compare multiple assets across various metrics. NEW params: strategy, sortBy |
NEW: Trading Style Prompts | ||
20 |
| NEW: Day trading with fast oscillators (stochastic_rsi, fisher_transform), order book, liquidation levels. Params: ticker, capital, riskPct, leverage, timeframe |
21 |
| NEW: Swing trading with multi-timeframe, divergence, trend indicators (supertrend, elder_ray, schaff_trend_cycle). Params: ticker, capital, riskPct, leverage, holdPeriod |
22 |
| NEW: Position trading with volume profile, long-term momentum (know_sure_thing, coppock_curve), adaptive MAs. Params: ticker, capital, riskPct, leverage, holdPeriod |
NEW: Risk & Indicator Analysis Prompts | ||
23 |
| NEW: Comprehensive risk analysis with liquidation levels and volatility. Params: ticker, entryPrice, side, capital, riskPct, leverage |
24 |
| NEW: Analyze all 11 oscillator indicators (stochastic_rsi, fisher, momentum, chande, ROC, PPO, gator, etc.). Params: ticker, focusType |
25 |
| NEW: Analyze all 10 MA indicators (DEMA, TEMA, HMA, WMA, SMMA, VWMA, KAMA, McGinley, Rainbow). Params: ticker, period |
Additional Trading Prompts | ||
26 |
| Momentum-based trading strategies |
27 |
| Mean reversion trading opportunities |
28 |
| Breakout pattern recognition and execution |
29 |
| High-frequency scalping strategies |
30 |
| Medium-term swing trading analysis |
31 |
| Long-term trend following strategies |
32 |
| Cross-exchange and cross-asset arbitrage |
š ļø Technology Stack
Technology | Version | Purpose |
Nullshot AI Agent Framework]( | latest | MCP server development & deployment framework |
@nullshot/mcp | latest | Nullshot MCP SDK for AI-powered applications |
@nullshot/cli | latest | CLI tools for development workflow |
Node.js | - | JavaScript runtime environment |
TypeScript | ^5.0.0 | Static type checking and compilation |
tsx | ^4.20.6 | TypeScript execution for development |
pnpm | - | Fast, disk space efficient package manager |
Zod | ^3.22.4 | TypeScript-first schema validation |
Node.js HTTP/HTTPS | Built-in | Core web server |
Server-Sent Events (SSE) | Native | Real-time streaming transport |
mcp-remote | npm package | Remote MCP client connection support |
š” Hyperliquid API | @nktkas/hyperliquid ^0.27.1 | Real-time prices, L2 order book, funding, OI, trading |
HyperScreener API | REST API | Whale positions, liquidations, L/S ratio, large trades |
Binance API | REST API | Historical candles, multi-timeframe data |
Mem0 Platform | mem0ai ^2.1.38 | AI-powered persistent memory with vector search |
Custom Indicators | 70+ Built-in | MAs, oscillators, volume, volatility, trend, strength |
Market Analysis | Built-in | Volume profile, market structure, patterns, divergence |
Risk Management | Built-in | Position sizing, SL/TP, R:R calculations |
Hyperliquid Trading | @nktkas/hyperliquid ^0.27.1 | Testnet/mainnet futures with slippage protection |
Wallet Management | ethers.js ^6.15.0 | Ethereum wallet integration for trading |
Order Types | Custom | Market (auto-retry), Limit, Custom entry |
Mem0 Integration | mem0ai ^2.1.38 | Trading preferences, journal, pattern learning |
Vector Search | Mem0 Built-in | Semantic memory recall with similarity matching |
LLM Extraction | Mem0 Built-in | Intelligent context extraction from trading data |
TypeScript Compiler | tsc ^5.0.0 | Build tool for production |
dotenv | ^17.2.3 | Environment variable management |
Auto-start Scripts | .bat/.sh | Windows and Linux/Mac server automation |
Cursor IDE | - | Desktop IDE with MCP support |
Claude Desktop | - | Desktop app with MCP integration |
Claude Code CLI | - | Command-line MCP client |
mcp-remote | npm | Remote HTTP/SSE MCP transport |
Asset Whitelist | Built-in | Mainnet trading safety |
Position Limits | Built-in | Max 25% account equity per trade |
Confirmation Required | Built-in | Explicit mainnet execution approval |
Linux | ā | Full support with .sh scripts |
macOS | ā | Full support with .sh scripts |
Windows | ā | Full support with .bat scripts |
šļø Architecture
High-Level Overview
Component Details
šÆ MCP Protocol Layer
Tool Execution: 58 specialized analysis & trading tools for comprehensive market intelligence
Resource Management: 22 detailed documentation resources for research and education
Prompt System: 32 AI-optimized prompts for structured analysis workflows
š Security & Validation Layer
Input Validation: Comprehensive Zod schema validation for all data inputs
Trading Safety: Mainnet trading requires explicit confirmation, asset whitelist, position size limits
Testnet Support: Full trading capabilities on testnet for safe testing
Configurable Slippage: Dynamic slippage with auto-retry (0.01% to 50%)
š Analysis Engine Components
Technical Indicators: 35+ indicators across momentum, volume, volatility, and trend analysis
CVD (Cumulative Volume Delta): Real-time buy/sell pressure analysis with trend detection
Market Structure: Advanced change-of-character detection, market regime analysis, and fractal analysis
Volume Profile: POC, VAH, VAL, HVN, LVN for session and composite analysis
Multi-Timeframe: Cross-timeframe trend alignment (Daily, 4H, 1H) and confirmation signals
Risk Management: Position sizing, stop-loss, take-profit, and R:R calculations
š§ AI Memory Layer (Mem0)
Trading Preferences: Persistent storage of leverage, risk %, pairs, trading style
Trade Journal: Auto-logged trades with entry/exit reasons, PnL, lessons learned
Pattern Learning: Historical pattern matching with win rate analysis
Personalized Insights: Context-aware recommendations based on user history
Vector Search: Semantic search across all stored memories
š Data Integration
Source | Data Type | Caching |
Hyperliquid | Real-time prices, L2 order book, funding rates, OI | 3-5s |
HyperScreener | Liquidations, whale positions, L/S ratio, market summary | 60s |
Binance | Historical candles, multi-timeframe data | 30s |
Mem0 | User memories, preferences, trade history | Real-time |
š HyperScreener API Integration
Base URL:
https://api-hyperliquid.asxn.xyz/apiLiquidations:
/node/liquidations,/node/liquidations/{SYMBOL},/node/liquidations/summaryPositions:
/node/positions,/node/positions/{SYMBOL},/node/positions/{SYMBOL}/long|shortMarket Summary:
/node/market/summary,/node/market/summary/{SYMBOL}Market Data:
/market-data/funding-rates,/market-data/open-interest,/market-data/volume,/market-data/stats/24hTotal: 14 verified endpoints with proper error handling and response parsing
š HyperScreener Integration
The server integrates data from HyperScreener API (https://api-hyperliquid.asxn.xyz/api) to provide whale and liquidation intelligence:
Data Type | Description | Tools Using This Data |
Liquidations | Recent liquidation events per asset |
|
Whale Positions | Large trader positions per asset |
|
Long/Short Ratio | Market sentiment ratio (calculated from positions) |
|
Large Trades | Trades >$50K per asset |
|
Top Traders | PnL-ranked traders (daily) |
|
Liquidation Heatmap | 24h liquidation distribution by price level |
|
Market Overview | Total positions, traders, OI, net PnL |
|
Top Gainers/Losers | PnL-based rankings |
|
Platform Stats | Overall platform statistics |
|
HyperScreener API Endpoints
Category | Endpoint | Description |
Liquidations |
| All liquidations (sort_by, sort_order, limit) |
| Liquidations by symbol (limit, timeframe) | |
| 24h summary stats | |
| Stats grouped by symbol | |
Positions |
| All positions (sort_by, sort_order, limit) |
| Positions by symbol | |
| Long positions only | |
| Short positions only | |
Market Summary |
| All symbols with price change + liquidations |
| Per symbol market summary | |
Market Data |
| Funding rates per symbol |
| Open interest per symbol | |
| Volume 24h per symbol | |
| 24h aggregate stats |
Enhanced Hyperliquid Data
Data Type | Description | Tools Using This Data |
L2 Order Book | Real-time bids/asks with depth |
|
All Mid Prices | Real-time mid prices for all coins | All market data tools |
Bid-Ask Spread | Spread calculation and analysis |
|
Order Book Imbalance | Buy/sell pressure ratio |
|
š Project Structure
Key Directories
No | Directory | Description |
Core Entry Points | ||
1 |
| Main entry point (804 lines) - Registers 69 tools, 31 prompts, 4 resources |
2 |
| HTTP/SSE streaming server for remote MCP connections |
3 |
| Compiled JavaScript output (auto-generated from TypeScript) |
4 |
| Package v1.1.0 - Dependencies and scripts |
5 |
| TypeScript compiler configuration |
6 |
| Environment variables template (copy to .env) |
7 |
| 10 tools - Account operations, bridge, AI memory (Mem0) |
8 |
| 15 tools - Market sentiment, technical analysis, whale tracking |
9 |
| 3 tools - Real-time prices, positions, long/short ratios |
10 |
| 35 tools - MAs, oscillators, channels, patterns, volatility |
11 |
| 6 tools - Futures trading, spot trading, risk management |
12 |
| 17 files - Output formatting for all tool responses |
13 |
| 31 prompt templates - Day/Swing/Position trading workflows |
14 |
| 4 educational resources - Trading guides and references |
15 |
| HTTP/SSE infrastructure - CORS and JSON-RPC handlers |
16 |
| AI Memory (Mem0) integration - Trade journal & preferences |
17 |
| Core analysis engine - Market intelligence & indicators |
18 |
| 8 modules - Bounce, candlestick, divergence, structure, trends |
19 |
| 35+ indicators - RSI, MACD, Fibonacci, correlations, etc. |
20 |
| 3 fetchers - Hyperliquid, HyperScreener, market data aggregation |
21 |
| 2 modules - Dynamic leverage & margin calculations |
22 |
| Exit strategies - Stop loss & take profit calculations |
23 |
| Linux/Mac auto-start script with build & restart logic |
24 |
| Windows auto-start script with build & restart logic |
25 |
| This file - Complete project documentation |
26 |
| 16 README files - Detailed documentation for each directory |
š README Files (16 total):
1 root README.md
3 main directory READMEs (scripts/, packages/, geartrade-mcp-server/)
3 src/ READMEs (src/, memory/, signal-generation/)
9 subdirectory READMEs (formatters/, prompts/, resources/, server/, tools/account/, tools/analysis/, tools/data/, tools/indicators/, tools/trading/)
š ļø Development
š Security & Trading Safety
Analysis & Trading Environment
This server provides both market analysis and trading execution capabilities with comprehensive safety measures.
Security Features:
ā Zod schema validation for all inputs
ā Testnet trading for safe testing (no real funds)
ā Mainnet safety checks:
Futures:
confirmExecution: truerequired, asset whitelist, min $10, max 25% equitySpot:
confirmMainnet: truerequired, start with small amounts ($5-10)Account Ops:
confirmMainnet: truefor transfers and withdrawalsBridge: 3-hour withdrawal to Arbitrum L1 with status tracking
ā Slippage protection:
Futures: 0.01% - 50% configurable
Spot: 0.010% - 8.00% automatic retry (same mechanism as futures)
ā Auto-fallback to GTC orders on no liquidity
ā Environment variables for wallet security:
AGENT_WALLET_PRIVATE_KEY- API wallet private keyMAIN_WALLET_ADDRESS- Main trading account addressMEM0_API_KEY- Persistent AI memoryARBITRUM_RPC_URL- L1 bridge endpoint (DRPC recommended)
š API Endpoints (HTTP Streaming Mode)
When running bash scripts/mcp-auto-start.sh:
No | Endpoint | Method | Description |
1 |
| GET | Server info & documentation |
2 |
| GET | Health check (JSON) |
3 |
| POST | MCP JSON-RPC endpoint |
4 |
| GET/POST | SSE streaming endpoint |
Test Commands:
Made with ā¤ļø by the GearTrade Team