MCP Hub
Back to servers

mcp-technical-analysis

A professional-grade MCP server for cryptocurrency analysis and trading, offering 69 tools including 35 technical indicators, real-time market data from Hyperliquid and Binance, whale tracking via HyperScreener, and persistent AI memory (Mem0) for personalized trading insights.

Stars
1
Tools
69
Updated
Dec 5, 2025
Validated
Jan 9, 2026

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 slippageType property to TradeResult interface 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/tokens
    • check_spot_balance - View all spot token balances
    • check_perp_balance - View perpetual positions and margin
    • transfer_spot_to_perp - Move funds to futures trading
    • transfer_perp_to_spot - Move funds to spot trading
    • send_spot_token - Send tokens to other addresses
    • send_usd - Send USD to other addresses

Bridge Operations (2 operations merged)

  • hyperliquid_bridge_operations - L1 Arbitrum bridge
    • withdraw_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.md for complete implementation details

Data Now Available

ToolData Status
get_External_data✅ longShortRatio, whalePositions, recentLiquidations, largeTrades, marketOverview
get_long_short_ratio✅ hyperscreenerRatio, whalePositions, topTradersOverall
get_liquidation_levels✅ liquidationHeatmap with price levels, recentLiquidations
get_volume_analysis✅ 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

# Clone the repository
git clone https://github.com/FajarArrizki/mcp-technical-analysis.git
cd mcp-technical-analysis

# Install dependencies
pnpm install

# Build the server
pnpm run build

2️⃣ Run Server

Server runs at http://localhost:8787 with SSE streaming support for real-time market analysis!

🐧 Linux / Mac

# Start Streaming Server (from project root)
bash scripts/mcp-auto-start.sh

# Or with full path
bash /path/to/mcp-technical-analysis/scripts/mcp-auto-start.sh

🪟 Windows

# Start Streaming Server (from project root)
scripts\mcp-auto-start.bat

# Or with full path (adjust to your installation directory)
C:\Users\YourUsername\Downloads\mcp-technical-analysis\scripts\mcp-auto-start.bat

Alternative - Manual Start:

# Terminal 1 - Start server
pnpm run stream

# Terminal 2 - Test with MCP client
pnpm run terminal

3️⃣ Add to MCP Client

🪟 Windows - Cursor IDE / Claude Desktop

Add to mcp.json or .cursor/mcp.json:

{
  "mcpServers": {
    "mcp-technical-analysis": {
      "command": "cmd",
      "args": ["/c", "C:\\Users\\YourUsername\\Downloads\\mcp-technical-analysis\\scripts\\mcp-auto-start.bat"],
      "env": {
        "CANDLES_COUNT": "75"
      },
      "description": "MCP Technical Analysis Server - Windows"
    }
  }
}

🐧 Linux / Mac - Cursor IDE / Claude Desktop

Add to .cursor/mcp.json or mcp.json:

{
  "mcpServers": {
    "mcp-technical-analysis": {
      "command": "bash",
      "args": ["/path/to/mcp-technical-analysis/scripts/mcp-auto-start.sh"],
      "description": "MCP Technical Analysis Server - Linux/Mac"
    }
  }
}

⚡ Claude Code (CLI) - All Platforms

# Add the MCP server to Claude Code
claude mcp add --transport http mcp-technical-analysis http://localhost:8787/mcp

# List configured servers
claude mcp list

# Check server status
/mcp

🌐 Remote Access via mcp-remote

For remote MCP connection, add to .mcp.json in project root:

{
  "mcpServers": {
    "mcp-technical-analysis": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:8787/mcp"]
    }
  }
}

🌍 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:

  1. First, try configuring DNS to use Cloudflare's 1.1.1.1 (primary) and 1.0.0.1 (secondary)
  2. If DNS configuration doesn't work, use a reputable VPN service (NordVPN, ExpressVPN, or similar)
  3. Connect to a server in a country where Binance operates freely (e.g., Netherlands, Singapore, Japan)

Cloudflare DNS Configuration (Try First):

# Linux DNS configuration
sudo nano /etc/resolv.conf
# Add these lines:
nameserver 1.1.1.1
nameserver 1.0.0.1

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

NoCountryStatusYearMain Reason
1United StatesBanned2019Regulatory violations; Binance.US launched as compliant alternative
2CanadaWithdrew from market2023Strict regulations; $4.32 million fine for anti-money laundering violations (2024)
3United KingdomBanned2021-2023FCA revoked license for non-compliance with anti-money laundering rules; total license revocation in 2023
4NetherlandsWithdrew from market2023Failed to obtain regulatory approval; €3.3 million fine for unlicensed operations (2022)
5NigeriaDeclared illegal2023-2024SEC Nigeria declared Binance illegal; Executives arrested; Naira services deactivated
6BelgiumBanned2023Financial regulator ordered operations halt for non-compliance with EU financial laws
7PhilippinesBlocked2024SEC blocked website (March 2024) for unlicensed operations; Attempts to block app
8JapanBanned2021Financial Services Agency banned operations for being unregistered; AML violation complaints
9ThailandBlocked2021SEC Thailand filed criminal complaints for unlicensed operations
10MalaysiaNot available-Listed in SC Malaysia's investor warning list
11SingaporeRestricted2021MAS banned Binance.com from recruiting Singapore users without license; IP geo-blocking
12ItalyTemporarily blocked2021CONSOB ordered blocking (July 2021); Obtained regulatory approval (May 2022)
13IndiaBlocked2024App removed from App Store and Google Play (January 2024); PMLA violations

Countries with Partial Restrictions

NoCountryRestriction TypeDetails
1ChinaSpot trading blockedExcluding Hong Kong SAR and Taiwan
2IndonesiaNo official licenseServes 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

📊 Total: 104 Components
├─ 🔧 Tools: 69
│  ├─ Account (10): Account ops, bridge, AI memory
│  ├─ Analysis (15): Market analysis, patterns, structure
│  ├─ Data (3): Price, positions, ratios
│  ├─ Indicators (35): MAs, oscillators, channels, patterns
│  └─ Trading (6): Futures, spot, risk management
├─ 🤖 Prompts: 31
│  ├─ Day Trading (9): Scalping, momentum, range
│  ├─ Swing Trading (11): Multi-timeframe, patterns
│  └─ Position Trading (11): Long-term trends, macro
└─ 📚 Resources: 4
   ├─ Trading Strategy Guide
   ├─ Technical Analysis Reference
   ├─ Risk Management Guide
   └─ Tool Usage Patterns

🔧 Tools (69)

NoTool NameDescription
1get_priceGet latest prices for multiple trading tickers/symbols at once (e.g., ["BTC", "ETH", "SOL"])
2get_indicatorsGet comprehensive technical analysis indicators for multiple trading tickers at once
3get_volume_analysisGet comprehensive volume analysis for multiple trading tickers at once
4get_MultitimeframeGet multi-timeframe trend alignment analysis (Daily, 4H, 1H)
5get_External_dataGet external market data (funding rate, open interest, liquidations, whale positions, top traders, large trades from HyperScreener)
6get_orderbook_depthGet real-time L2 order book depth from Hyperliquid (bids/asks, spread, imbalance)
7get_volume_profileGet volume profile analysis (POC, VAH, VAL, HVN, LVN)
8get_market_structureGet market structure analysis (swing highs/lows, COC)
9get_market_regimeGet market regime analysis (trending/ranging/volatile)
10get_candlestick_patternsGet candlestick pattern detection (doji, engulfing, etc.)
11get_divergenceGet RSI/price divergence detection
12get_liquidation_levelsGet liquidation level analysis with heatmap data from HyperScreener
13get_long_short_ratioGet long/short ratio with whale positions and top traders from HyperScreener
14get_positionGet your own futures positions from Hyperliquid (account value, margin, PnL, leverage)
15get_correlation_analysisBTC dominance, altcoin correlation, beta analysis, market regime detection
16get_whale_positionTrack specific wallet addresses with labeling & change detection alerts
17get_tier_classificationMarket breakdown by tier (🦐→🐉) with Long/Short and top wallets per tier
18calculate_risk_managementCalculate stop loss, take profit, and risk/reward ratio
19calculate_position_setupCalculate position size, leverage, margin, and quantity
20ma_envelopeMA Envelope for volatility-based support/resistance
21vwmaVolume-Weighted Moving Average
22mcginley_dynamicMcGinley Dynamic - adaptive MA with reduced lag
23rainbow_maRainbow MA - multiple MAs for trend visualization
24kaufman_adaptive_maKaufman Adaptive MA - adjusts to market efficiency
25hull_maHull Moving Average - reduced lag, smooth trend
26weighted_maWeighted Moving Average
27smoothed_maSmoothed Moving Average
28double_emaDouble Exponential Moving Average (DEMA)
29triple_emaTriple Exponential Moving Average (TEMA)
30stochastic_rsiStochastic RSI - RSI with stochastic formula
31chande_momentumChande Momentum Oscillator (-100 to +100)
32percentage_price_oscillatorPPO - MACD as percentage
33accelerator_oscillatorAccelerator Oscillator (Bill Williams)
34awesome_oscillatorAwesome Oscillator - momentum via median price
35gator_oscillatorGator Oscillator - Alligator convergence/divergence
36elder_rayElder-Ray Index - Bull/Bear Power
37fisher_transformFisher Transform - Gaussian normalized reversals
38know_sure_thingKST - multi-timeframe ROC momentum
39schaff_trend_cycleSchaff Trend Cycle - MACD + Stochastic
40coppock_curveCoppock Curve - long-term momentum bottoms
41true_strength_indexTSI - double-smoothed momentum
42relative_vigor_indexRVI - close vs open momentum
43detrended_priceDetrended Price Oscillator - cycle identification
44momentumMomentum Indicator - rate of price change
45rate_of_changeROC - percentage price change
46ultimate_oscillatorUltimate Oscillator - 3 timeframe combination
47trixTRIX - triple smoothed EMA rate of change
48volume_indicatorsMerged 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
49volatility_indicatorsMerged volatility tool with types: bollinger_band_width, bollinger_percent_b, chaikin_volatility, historical_volatility, mass_index, ulcer_index
Trend Indicators (Merged Tool)
50trend_indicatorsMerged trend tool with types: supertrend, alligator, ichimoku_cloud, vortex, linear_regression, r_squared
Strength Indicators (Merged Tool)
51strength_indicatorsMerged strength tool with types: bull_bear_power, force_index, center_of_gravity, balance_of_power, advance_decline_line
Channels (Merged Tool)
52channelsMerged channels tool with types: keltner_channels, donchian_channels, price_channel
Pivot Points (Merged Tool)
53pivot_pointsMerged pivot tool with types: camarilla, standard, fibonacci_retracement
Patterns (Merged Tool)
54patternsMerged patterns tool with types: fractals, zigzag, change_of_character
55hyperliquid_testnet_futures_tradeExecute futures trades on Hyperliquid TESTNET. Supports market/limit/custom orders, sizeInUsd ($100), leverage (1-100x), slippage protection (0.01%-50%), auto-
56hyperliquid_mainnet_futures_tradeExecute REAL futures trades on Hyperliquid MAINNET. Safety checks: confirmExecution=true required, asset whitelist, min $10, max 25% equity.
57close_positionClose or reduce positions on Hyperliquid (testnet/mainnet). Full or partial close (1-99%), auto-detects position side, reduceOnly for safety.
58get_market_sentimentGet market sentiment from Fear & Greed Index + BTC Dominance + Funding Summary (FREE APIs). Overall sentiment score + trading recommendation.
59hyperliquid_account_operations6 operations: check balances, transfers (spot ↔ perp), send USD/tokens. Tested with $100+ real transactions. Production ready.
60hyperliquid_bridge_operationsL1 Arbitrum bridge: withdraw_to_arbitrum (3-hour), check_withdraw_status. Full testnet/mainnet support.
61spot_tradeBuy/sell spot tokens with slippage retry (0.010% → 8.00%). Market & limit orders. Use mainnet ($5-10 recommended).
62memory_save_preferenceSave trading preferences (leverage, risk %, pairs, style). AI remembers for future interactions.
63memory_log_tradeLog completed trade with full context (entry/exit reason, PnL, lesson) for pattern learning.
64memory_get_insightsGet personalized trading insights based on history (performance, patterns, mistakes).
65memory_check_patternCheck if current setup matches past winning/losing patterns from your history.
66memory_rememberStore any important note or context for future reference (key levels, observations).
67memory_recallSearch and recall stored memories based on query.
68memory_get_allGet all stored memories for review.
69memory_deleteDelete specific memory by ID.

📚 Resources (4)

Educational documentation accessible through the MCP protocol.

NoResource URIDescription
1geartrade://docs/trading-strategiesComprehensive guide on trading strategies, technical analysis, and best practices. Covers trend following, mean reversion, breakout trading, volume-based strategies, and risk management principles.
2geartrade://docs/risk-managementComplete guide on risk management, position sizing, stop loss/take profit strategies, leverage management, and portfolio risk. Includes formulas, examples, and best practices.
3geartrade://docs/tools-overviewComplete overview of all 69 MCP tools with descriptions, parameters, and usage patterns. Organized by category: Market Data, Execution, Technical Indicators, and AI Memory.
4geartrade://docs/execution-workflowStep-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)

NoPrompt NameDescription
Core Trading Prompts
1analyze_and_executeAnalyze a crypto asset and prepare execution plan with risk management. NEW params: leverage, strategy, timeframe
2multi_asset_scanScan multiple assets for trading opportunities. NEW params: strategy, minConfidence, sortBy
3comprehensive_analysisComplete market analysis with technical indicators and risk assessment. NEW params: includeAdvanced, includeVolume, includeExternal
Quick Analysis Prompts
4quick_price_checkFast price check with basic market data
5trend_analysisTrend direction and strength analysis
6market_overviewHigh-level market sentiment and key levels
Technical Analysis Prompts
7technical_indicator_analysisDeep dive into technical indicators and signals
8volume_profile_analysisVolume profile and liquidity analysis
9market_structure_analysisMarket structure and change of character detection
Advanced Strategy Prompts
10divergence_scanRSI and price divergence identification
11liquidation_analysisLiquidation level analysis and risk zones
12fibonacci_trading_strategyFibonacci retracement and extension trading
13spot_futures_arbitrageSpot-futures price divergence opportunities
Risk Management Prompts
14risk_analysisComprehensive risk assessment and position sizing
15position_monitoringActive position monitoring and adjustment recommendations
16portfolio_reviewPortfolio performance and rebalancing analysis
17volatility_analysisVolatility measurement and risk assessment
Specialized Trading Prompts
18entry_exit_strategyEntry and exit timing optimization
19multi_asset_comparisonCompare multiple assets across various metrics. NEW params: strategy, sortBy
NEW: Trading Style Prompts
20day_trading_analysisNEW: Day trading with fast oscillators (stochastic_rsi, fisher_transform), order book, liquidation levels. Params: ticker, capital, riskPct, leverage, timeframe
21swing_trading_analysisNEW: Swing trading with multi-timeframe, divergence, trend indicators (supertrend, elder_ray, schaff_trend_cycle). Params: ticker, capital, riskPct, leverage, holdPeriod
22position_trading_analysisNEW: 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
23risk_management_analysisNEW: Comprehensive risk analysis with liquidation levels and volatility. Params: ticker, entryPrice, side, capital, riskPct, leverage
24oscillators_analysisNEW: Analyze all 11 oscillator indicators (stochastic_rsi, fisher, momentum, chande, ROC, PPO, gator, etc.). Params: ticker, focusType
25moving_averages_analysisNEW: Analyze all 10 MA indicators (DEMA, TEMA, HMA, WMA, SMMA, VWMA, KAMA, McGinley, Rainbow). Params: ticker, period
Additional Trading Prompts
26momentum_tradingMomentum-based trading strategies
27mean_reversionMean reversion trading opportunities
28breakout_tradingBreakout pattern recognition and execution
29scalping_strategyHigh-frequency scalping strategies
30swing_tradingMedium-term swing trading analysis
31trend_followingLong-term trend following strategies
32arbitrage_opportunitiesCross-exchange and cross-asset arbitrage

🛠️ Technology Stack

TechnologyVersionPurpose
Nullshot AI Agent Framework](https://nullshot.ai)latestMCP server development & deployment framework
@nullshot/mcplatestNullshot MCP SDK for AI-powered applications
@nullshot/clilatestCLI tools for development workflow
Node.js-JavaScript runtime environment
TypeScript^5.0.0Static type checking and compilation
tsx^4.20.6TypeScript execution for development
pnpm-Fast, disk space efficient package manager
Zod^3.22.4TypeScript-first schema validation
Node.js HTTP/HTTPSBuilt-inCore web server
Server-Sent Events (SSE)NativeReal-time streaming transport
mcp-remotenpm packageRemote MCP client connection support
📡 Hyperliquid API@nktkas/hyperliquid ^0.27.1Real-time prices, L2 order book, funding, OI, trading
HyperScreener APIREST APIWhale positions, liquidations, L/S ratio, large trades
Binance APIREST APIHistorical candles, multi-timeframe data
Mem0 Platformmem0ai ^2.1.38AI-powered persistent memory with vector search
Custom Indicators70+ Built-inMAs, oscillators, volume, volatility, trend, strength
Market AnalysisBuilt-inVolume profile, market structure, patterns, divergence
Risk ManagementBuilt-inPosition sizing, SL/TP, R:R calculations
Hyperliquid Trading@nktkas/hyperliquid ^0.27.1Testnet/mainnet futures with slippage protection
Wallet Managementethers.js ^6.15.0Ethereum wallet integration for trading
Order TypesCustomMarket (auto-retry), Limit, Custom entry
Mem0 Integrationmem0ai ^2.1.38Trading preferences, journal, pattern learning
Vector SearchMem0 Built-inSemantic memory recall with similarity matching
LLM ExtractionMem0 Built-inIntelligent context extraction from trading data
TypeScript Compilertsc ^5.0.0Build tool for production
dotenv^17.2.3Environment variable management
Auto-start Scripts.bat/.shWindows 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-remotenpmRemote HTTP/SSE MCP transport
Asset WhitelistBuilt-inMainnet trading safety
Position LimitsBuilt-inMax 25% account equity per trade
Confirmation RequiredBuilt-inExplicit mainnet execution approval
LinuxFull support with .sh scripts
macOSFull support with .sh scripts
WindowsFull support with .bat scripts

🏗️ Architecture

High-Level Overview

╔══════════════════════════════════════════════════════════════════════════════════════════════╗
║                                                                                              ║
║                            MCP TECHNICAL ANALYSIS SERVER v1.1.0                              ║
║                          AI-Powered Cryptocurrency Trading Platform                          ║
║                                                                                              ║
╠══════════════════════════════════════════════════════════════════════════════════════════════╣
║                                                                                              ║
║                           ╭──────────────────────────────────────────╮                       ║
║                           │  AI ASSISTANTS & CLIENTS                 │                       ║
║                           │  ┌─────────┐ ┌─────────┐ ┌──────────────┐│                       ║
║                           │  │ Claude  │ │ Cursor  │ │ Claude Code  ││                       ║
║                           │  │ Desktop │ │   IDE   │ │     CLI      ││                       ║
║                           │  └────┬────┘ └───┬─────┘ └──────┬───────┘│                       ║
║                           ╰───────┼──────────┼──────────────┼────────╯                       ║
║                                   │          │              │                                ║
║                                   └──────────┼──────────────┘                                ║
║                                              │                                               ║
║                                        ◀═══ MCP Protocol ═══▶                                ║
║                                              │                                               ║
║  ┌───────────────────────────────────────────┼──────────────────────────────────────────────┐║
║  │                                           ▼                                              │║
║  │  ╔════════════════════════════════════════════════════════════════════════════════════╗  │║
║  │  ║                         GEARTRADE MCP SERVER v1.1.0                                ║  │║
║  │  ║         69 Tools • 4 Resources • 31 Prompts • Modular Architecture                 ║  │║
║  │  ╚════════════════════════════════════════════════════════════════════════════════════╝  │║
║  │                                            │                                             │║
║  │                                            ▼                                             │║
║  │  ┌────────────────────────────────────────────────────────────────────────────────────┐  │║
║  │  │  MODULAR TOOL SYSTEM (69 Tools in 5 Categories)                                    │  │║
║  │  │  ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ ┌──────────────────┐  │  │║
║  │  │  │ ACCOUNT (10)    │ │ ANALYSIS (15)   │ │ DATA (3)        │ │ INDICATORS (35)  │  │  │║
║  │  │  │ ─────────────── │ │ ─────────────── │ │ ─────────────── │ │ ──────────────── │  │  │║
║  │  │  │ • Account Ops   │ │ • Market        │ │ • Price Data    │ │ • Moving Avg (10)│  │  │║
║  │  │  │   (6 ops)       │ │   Sentiment     │ │ • Positions     │ │ • Oscillators(18)│  │  │║
║  │  │  │ • Bridge Ops    │ │ • Technical     │ │ • Long/Short    │ │ • Channels (3)   │  │  │║
║  │  │  │   (2 ops)       │ │   Analysis      │ │   Ratio         │ │ • Pivots (3)     │  │  │║
║  │  │  │ • AI Memory (8) │ │ • Whale Track   │ │                 │ │ • Volatility (6) │  │  │║
║  │  │  │   - Preferences │ │ • Tier Class    │ │                 │ │ • Volume (8)     │  │  │║
║  │  │  │   - Trade Log   │ │ • Patterns      │ │                 │ │ • Trend (6)      │  │  │║
║  │  │  │   - Insights    │ │ • Liquidations  │ │                 │ │ • Strength (4)   │  │  │║
║  │  │  │   - Recall      │ │ • Order Book    │ │                 │ │ • Patterns (3)   │  │  │║
║  │  │  └─────────────────┘ └─────────────────┘ └─────────────────┘ └──────────────────┘  │  │║
║  │  │  ┌─────────────────────────────────────────────────────────────────────────────┐   │  │║
║  │  │  │ TRADING (6)                                                                 │   │  │║
║  │  │  │ ────────────────────────────────────────────────────────────────────────────│   │  │║
║  │  │  │ • Futures Trading (Testnet/Mainnet) • Spot Trading • Position Close         │   │  │║
║  │  │  │ • Risk Management (2 tools)          • Auto-retry Slippage 0.010% → 8.00%   │   │  │║
║  │  │  └─────────────────────────────────────────────────────────────────────────────┘   │  │║
║  │  └────────────────────────────────────────────────────────────────────────────────────┘  │║
║  │                                            │                                             │║
║  │                                            ▼                                             │║
║  │  ┌────────────────────────────────────────────────────────────────────────────────────┐  │║
║  │  │  CORE ANALYSIS ENGINE                                                              │  │║
║  │  │  ┌────────────────────────────┐           ┌──────────────────────────────────┐     │  │║
║  │  │  │  TECHNICAL ANALYSIS        │           │  AI MEMORY (Mem0 Platform)       │     │  │║
║  │  │  │  ────────────────────────  │           │  ──────────────────────────────  │     │  │║
║  │  │  │  • 35+ Indicators          │           │  • Vector Search & Recall        │     │  │║
║  │  │  │  • CVD & Volume Profile    │           │  • LLM Memory Extraction         │     │  │║
║  │  │  │  • Market Structure        │           │  • Trading Preferences Storage   │     │  │║
║  │  │  │  • Multi-Timeframe (MTF)   │           │  • Trade Journal & History       │     │  │║
║  │  │  │  • Divergence Detection    │           │  • Pattern Win Rate Analysis     │     │  │║
║  │  │  │  • Risk Calculations       │           │  • Personalized Insights         │     │  │║
║  │  │  └────────────────────────────┘           └──────────────────────────────────┘     │  │║
║  │  └────────────────────────────────────────────────────────────────────────────────────┘  │║
║  │                                            │                                             │║
║  │                                            ▼                                             │║
║  │  ┌────────────────────────────────────────────────────────────────────────────────────┐  │║
║  │  │  EXTERNAL DATA SOURCES                                                             │  │║
║  │  │  ┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐ ┌──────────┐ │  │║
║  │  │  │  HYPERLIQUID API   │ │  HYPERSCREENER     │ │  BINANCE API       │ │ MEM0 API │ │  │║
║  │  │  │  ────────────────  │ │  ────────────────  │ │  ────────────────  │ │──────────│ │  │║
║  │  │  │  • Live Prices     │ │  • Whale Positions │ │  • Historical OHLCV│ │ • Memory │ │  │║
║  │  │  │  • L2 Order Book   │ │  • Liquidations    │ │  • Multi-Timeframe │ │   Store  │ │  │║
║  │  │  │  • Funding Rates   │ │  • L/S Ratio       │ │  • Volume Data     │ │ • Vector │ │  │║
║  │  │  │  • Open Interest   │ │  • Large Trades    │ │  • Market Stats    │ │   Search │ │  │║
║  │  │  │  • Trade Execution │ │  • Top Traders     │ │  • Correlations    │ │ • LLM    │ │  │║
║  │  │  │  • Account Ops     │ │  • Heatmaps        │ │                    │ │   Extract│ │  │║
║  │  │  │  • Spot Trading    │ │  • Tier Data       │ │                    │ │          │ │  │║
║  │  │  │  • Bridge to L1    │ │  • Market Summary  │ │                    │ │          │ │  │║
║  │  │  └────────────────────┘ └────────────────────┘ └────────────────────┘ └──────────┘ │  │║
║  │  └────────────────────────────────────────────────────────────────────────────────────┘  │║
║  │                                            │                                             │║
║  │                                            ▼                                             │║
║  │  ┌────────────────────────────────────────────────────────────────────────────────────┐  │║
║  │  │  AI & SECURITY LAYER                                                               │  │║
║  │  │  ┌──────────────────────────┐         ┌────────────────────────────────────────┐   │  │║
║  │  │  │  AI PROMPTS (31)         │         │  SECURITY & VALIDATION                 │   │  │║
║  │  │  │  ──────────────────────  │         │  ──────────────────────────────────    │   │  │║
║  │  │  │  • Day Trading (9)       │         │  • Zod Schema Validation               │   │  │║
║  │  │  │  • Swing Trading (11)    │         │  • Mainnet Confirmation Required       │   │  │║
║  │  │  │  • Position Trading (11) │         │  • Auto-retry Slippage (0.010%-8.00%)  │   │  │║
║  │  │  │  • Risk Management       │         │  • Asset Whitelist (Mainnet)           │   │  │║
║  │  │  │  • Oscillators Analysis  │         │  • Position Size Limits (Max 25%)      │   │  │║
║  │  │  │  • MA Analysis           │         │  • Min Order Value ($10)               │   │  │║
║  │  │  └──────────────────────────┘         └────────────────────────────────────────┘   │  │║
║  │  └────────────────────────────────────────────────────────────────────────────────────┘  │║
║  │                                            │                                             │║
║  │                                            ▼                                             │║
║  │  ┌────────────────────────────────────────────────────────────────────────────────────┐  │║
║  │  │  STREAMING & EXECUTION INFRASTRUCTURE                                              │  │║
║  │  │  ┌─────────────────────────────┐     ┌─────────────────────────────────────────┐   │  │║
║  │  │  │  HTTP/SSE STREAMING         │     │  HYPERLIQUID EXECUTION ENGINE           │   │  │║
║  │  │  │  • Port: localhost:8787     │     │  • Futures: Testnet/Mainnet             │   │  │║
║  │  │  │  • Server-Sent Events       │     │  • Spot: Market/Limit Orders            │   │  │║
║  │  │  │  • mcp-remote Compatible    │     │  • Account: 6 Operations                │   │  │║
║  │  │  │  • Real-time Tool Updates   │     │  • Bridge: Arbitrum L1 (3h)             │   │  │║
║  │  │  │  • Cross-platform Scripts   │     │  • Slippage: Auto-retry 0.010%-8.00%    │   │  │║
║  │  │  └─────────────────────────────┘     └─────────────────────────────────────────┘   │  │║
║  │  └────────────────────────────────────────────────────────────────────────────────────┘  │║
║  └──────────────────────────────────────────────────────────────────────────────────────────┘║ 
╚══════════════════════════════════════════════════════════════════════════════════════════════╝

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

SourceData TypeCaching
HyperliquidReal-time prices, L2 order book, funding rates, OI3-5s
HyperScreenerLiquidations, whale positions, L/S ratio, market summary60s
BinanceHistorical candles, multi-timeframe data30s
Mem0User memories, preferences, trade historyReal-time

🐋 HyperScreener API Integration

  • Base URL: https://api-hyperliquid.asxn.xyz/api
  • Liquidations: /node/liquidations, /node/liquidations/{SYMBOL}, /node/liquidations/summary
  • Positions: /node/positions, /node/positions/{SYMBOL}, /node/positions/{SYMBOL}/long|short
  • Market Summary: /node/market/summary, /node/market/summary/{SYMBOL}
  • Market Data: /market-data/funding-rates, /market-data/open-interest, /market-data/volume, /market-data/stats/24h
  • Total: 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 TypeDescriptionTools Using This Data
LiquidationsRecent liquidation events per assetget_External_data, get_liquidation_levels
Whale PositionsLarge trader positions per assetget_External_data, get_long_short_ratio
Long/Short RatioMarket sentiment ratio (calculated from positions)get_External_data, get_long_short_ratio
Large TradesTrades >$50K per assetget_External_data
Top TradersPnL-ranked traders (daily)get_long_short_ratio
Liquidation Heatmap24h liquidation distribution by price levelget_liquidation_levels
Market OverviewTotal positions, traders, OI, net PnLget_External_data
Top Gainers/LosersPnL-based rankingsget_External_data
Platform StatsOverall platform statisticsget_External_data

HyperScreener API Endpoints

CategoryEndpointDescription
Liquidations/node/liquidationsAll liquidations (sort_by, sort_order, limit)
/node/liquidations/{SYMBOL}Liquidations by symbol (limit, timeframe)
/node/liquidations/summary24h summary stats
/node/liquidations/stats/symbolsStats grouped by symbol
Positions/node/positionsAll positions (sort_by, sort_order, limit)
/node/positions/{SYMBOL}Positions by symbol
/node/positions/{SYMBOL}/longLong positions only
/node/positions/{SYMBOL}/shortShort positions only
Market Summary/node/market/summaryAll symbols with price change + liquidations
/node/market/summary/{SYMBOL}Per symbol market summary
Market Data/market-data/funding-ratesFunding rates per symbol
/market-data/open-interestOpen interest per symbol
/market-data/volumeVolume 24h per symbol
/market-data/stats/24h24h aggregate stats

Enhanced Hyperliquid Data

Data TypeDescriptionTools Using This Data
L2 Order BookReal-time bids/asks with depthget_orderbook_depth
All Mid PricesReal-time mid prices for all coinsAll market data tools
Bid-Ask SpreadSpread calculation and analysisget_orderbook_depth
Order Book ImbalanceBuy/sell pressure ratioget_orderbook_depth

📁 Project Structure

mcp-technical-analysis/
├── packages/
│   ├── .env.example                        # Environment variables template
│   └── geartrade-mcp-server/               # Main MCP server package (v1.1.0)
│       ├── src/                            # Source code (TypeScript)
│       │   ├── index.ts                    # Entry point (804 lines, 83.8% reduction!)
│       │   │                               # Registers 69 tools, 31 prompts, 4 resources
│       │   ├── formatters/                 # Output formatting utilities (17 files)
│       │   │   ├── indicators.ts           # Technical indicator formatting
│       │   │   ├── volume.ts               # Volume analysis formatting
│       │   │   ├── orderbook.ts            # Order book depth formatting
│       │   │   ├── liquidation.ts          # Liquidation levels formatting
│       │   │   ├── position.ts             # Position data formatting
│       │   │   └── ...                     # 12 other formatters
│       │   ├── memory/                     # AI Memory (Mem0) integration
│       │   │   └── [Memory storage files]  # Trade journal, preferences
│       │   ├── prompts/                    # AI prompt templates (31 prompts)
│       │   │   └── index.ts                # Day/Swing/Position trading workflows
│       │   ├── resources/                  # Educational resources (4 resources)
│       │   │   └── index.ts                # Trading guides and references
│       │   ├── server/                     # HTTP/SSE infrastructure
│       │   │   ├── cors.ts                 # CORS middleware
│       │   │   └── json-rpc.ts             # JSON-RPC 2.0 handler
│       │   ├── tools/                      # 69 MCP tools (Modular Architecture ✨)
│       │   │   ├── README.md               # Tools documentation
│       │   │   ├── index.ts                # Main registration (imports all categories)
│       │   │   ├── account/                # Account tools (10 tools)
│       │   │   │   ├── index.ts            # Export all account tools
│       │   │   │   ├── hyperliquid-account-operations.ts   # 1 tool, 6 operations
│       │   │   │   ├── hyperliquid-bridge-operations.ts    # 1 tool, 2 operations
│       │   │   │   └── memory-tools.ts     # 8 AI memory tools
│       │   │   ├── analysis/               # Analysis tools (15 tools)
│       │   │   │   ├── index.ts            # Export all analysis tools
│       │   │   │   ├── market-sentiment.ts # Market sentiment (1 tool)
│       │   │   │   ├── technical-analysis-tools.ts   # Indicators, volume, MTF (3 tools)
│       │   │   │   ├── market-data-tools.ts          # Orderbook, liquidations, correlation (4 tools)
│       │   │   │   ├── pattern-analysis-tools.ts     # Patterns, structure, regime (5 tools)
│       │   │   │   └── whale-analysis-tools.ts       # Whale tracking, tiers (2 tools)
│       │   │   ├── data/                   # Data tools (3 tools)
│       │   │   │   ├── index.ts            # Export all data tools
│       │   │   │   └── price-position-tools.ts       # Price, position, long/short (3 tools)
│       │   │   ├── indicators/             # Indicator tools (35 tools)
│       │   │   │   ├── index.ts            # Export all indicator tools
│       │   │   │   ├── moving-averages.ts  # 10 MA indicators
│       │   │   │   ├── oscillators.ts      # 14 oscillator indicators
│       │   │   │   ├── channels.ts         # 3 channel indicators (merged)
│       │   │   │   ├── pivot-points.ts     # 3 pivot indicators (merged)
│       │   │   │   ├── trend-indicators.ts # 6 trend indicators (merged)
│       │   │   │   ├── patterns.ts         # 3 pattern indicators (merged)
│       │   │   │   ├── strength-indicators.ts     # 4 strength indicators (merged)
│       │   │   │   ├── volatility-indicators.ts   # 6 volatility indicators (merged)
│       │   │   │   └── volume-indicators.ts       # 8 volume indicators (merged)
│       │   │   └── trading/                # Trading tools (6 tools)
│       │   │       ├── index.ts            # Export all trading tools
│       │   │       ├── hyperliquid-testnet-futures-trade.ts  # Testnet futures
│       │   │       ├── hyperliquid-mainnet-futures-trade.ts  # Mainnet futures
│       │   │       ├── spot-trading.ts     # Spot trading
│       │   │       ├── close-position.ts   # Position closing
│       │   │       └── risk-management-tools.ts   # Risk calculations (2 tools)
│       │   └── signal-generation/          # Core analysis engine
│       │       ├── analysis/               # Market analysis algorithms
│       │       │   ├── bounce.ts           # Bounce detection
│       │       │   ├── candlestick.ts      # Pattern recognition
│       │       │   ├── divergence.ts       # RSI divergence
│       │       │   ├── market-regime.ts    # Regime classification
│       │       │   ├── market-structure.ts # Structure analysis
│       │       │   ├── tier-classification.ts  # Trader tiers
│       │       │   ├── trend-detection.ts  # Trend identification
│       │       │   └── volume-analysis.ts  # Volume profile
│       │       ├── data-fetchers/          # External API integrations
│       │       │   ├── hyperliquid.ts      # Hyperliquid exchange API
│       │       │   ├── hyperscreener.ts    # HyperScreener liquidations/whales
│       │       │   └── market-data.ts      # Multi-source aggregation
│       │       ├── exit-conditions/        # Exit strategy calculations
│       │       │   └── stop-loss.ts        # SL/TP calculations
│       │       ├── risk-management/        # Risk calculations
│       │       │   ├── leverage.ts         # Dynamic leverage
│       │       │   └── margin.ts           # Margin requirements
│       │       ├── technical-indicators/   # 35+ indicator implementations
│       │       │   ├── momentum.ts         # RSI, MACD, Stochastic
│       │       │   ├── fibonacci.ts        # Fibonacci retracement
│       │       │   ├── correlation-analysis.ts  # BTC correlation
│       │       │   └── ...                 # 32 other indicators
│       │       ├── types/                  # TypeScript type definitions
│       │       └── utils/                  # Utility functions
│       ├── dist/                           # Compiled JavaScript output
│       ├── package.json                    # Package v1.1.0 configuration
│       ├── tsconfig.json                   # TypeScript configuration
│       └── local-server.ts                 # HTTP/SSE streaming server
├── scripts/                                # Automation scripts
│   ├── mcp-auto-start.sh                   # Linux/Mac auto-start
│   └── mcp-auto-start.bat                  # Windows auto-start
├── package.json                            # Workspace root config (v1.1.0)
├── pnpm-workspace.yaml                     # PNPM workspace config
├── pnpm-lock.yaml                          # Dependency lock file
├── mcp.json                                # MCP configuration
├── LICENSE                                 # MIT License
└── README.md                               # This file

📊 Code Statistics:
  - Total Files: 150+
  - Total Lines: 30,000+
  - TypeScript: 100%
  - Components: 104 (69 tools + 31 prompts + 4 resources)
  - Main File Reduction: 4,943 → 804 lines (83.8% reduction!)

Key Directories

NoDirectoryDescription
Core Entry Points
1packages/geartrade-mcp-server/src/index.tsMain entry point (804 lines) - Registers 69 tools, 31 prompts, 4 resources
2packages/geartrade-mcp-server/local-server.tsHTTP/SSE streaming server for remote MCP connections
3packages/geartrade-mcp-server/dist/Compiled JavaScript output (auto-generated from TypeScript)
4packages/geartrade-mcp-server/package.jsonPackage v1.1.0 - Dependencies and scripts
5packages/geartrade-mcp-server/tsconfig.jsonTypeScript compiler configuration
6packages/.env.exampleEnvironment variables template (copy to .env)
7src/tools/account/10 tools - Account operations, bridge, AI memory (Mem0)
8src/tools/analysis/15 tools - Market sentiment, technical analysis, whale tracking
9src/tools/data/3 tools - Real-time prices, positions, long/short ratios
10src/tools/indicators/35 tools - MAs, oscillators, channels, patterns, volatility
11src/tools/trading/6 tools - Futures trading, spot trading, risk management
12src/formatters/17 files - Output formatting for all tool responses
13src/prompts/31 prompt templates - Day/Swing/Position trading workflows
14src/resources/4 educational resources - Trading guides and references
15src/server/HTTP/SSE infrastructure - CORS and JSON-RPC handlers
16src/memory/AI Memory (Mem0) integration - Trade journal & preferences
17src/signal-generation/Core analysis engine - Market intelligence & indicators
18src/signal-generation/analysis/8 modules - Bounce, candlestick, divergence, structure, trends
19src/signal-generation/technical-indicators/35+ indicators - RSI, MACD, Fibonacci, correlations, etc.
20src/signal-generation/data-fetchers/3 fetchers - Hyperliquid, HyperScreener, market data aggregation
21src/signal-generation/risk-management/2 modules - Dynamic leverage & margin calculations
22src/signal-generation/exit-conditions/Exit strategies - Stop loss & take profit calculations
23scripts/mcp-auto-start.shLinux/Mac auto-start script with build & restart logic
24scripts/mcp-auto-start.batWindows auto-start script with build & restart logic
25README.md (root)This file - Complete project documentation
26src/*/README.md16 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

# Development mode
pnpm run dev

# Build
pnpm run build

# Validate MCP config
pnpm run validate

# List tools & resources
pnpm run list

🔐 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: true required, asset whitelist, min $10, max 25% equity
    • Spot: confirmMainnet: true required, start with small amounts ($5-10)
    • Account Ops: confirmMainnet: true for transfers and withdrawals
    • Bridge: 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 key
    • MAIN_WALLET_ADDRESS - Main trading account address
    • MEM0_API_KEY - Persistent AI memory
    • ARBITRUM_RPC_URL - L1 bridge endpoint (DRPC recommended)

🌐 API Endpoints (HTTP Streaming Mode)

When running bash scripts/mcp-auto-start.sh:

NoEndpointMethodDescription
1http://localhost:8787/GETServer info & documentation
2http://localhost:8787/healthGETHealth check (JSON)
3http://localhost:8787/mcpPOSTMCP JSON-RPC endpoint
4http://localhost:8787/streamGET/POSTSSE streaming endpoint

Test Commands:

# Health check
curl http://localhost:8787/health

# List all tools
curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# Get BTC price
curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_price","arguments":{"ticker":"BTC"}}}'

Made with ❤️ by the GearTrade Team

Reviews

No reviews yet

Sign in to write a review