Skip to main content
Glama

GearTrade MCP Server

šŸ¤– Model Context Protocol Server for AI-Powered Cryptocurrency Trading

A comprehensive Model Context Protocol (MCP) server that bridges AI assistants with professional cryptocurrency trading capabilities. This server transforms AI conversations by providing real-time market data, sophisticated technical analysis, and intelligent trade execution tools through standardized MCP protocols. Whether you're building trading bots, automated strategies, or AI financial advisors, this server delivers the complete infrastructure needed for data-driven trading decisions across multiple timeframes and asset classes.

šŸ”„ Key Features:

  • šŸ”“ 38+ Trading Tools - Complete analysis & execution toolkit

  • šŸ“Š Real-time Market Data - Live prices, indicators, volume analysis

  • šŸŽÆ Advanced Technical Analysis - RSI, MACD, Fibonacci, Order Book, etc.

  • šŸ’° Risk Management - Position sizing, stop loss, take profit calculations

  • šŸ“ˆ Multi-Timeframe Analysis - Daily, 4H, 1H trend alignment

  • šŸ¤– 23 AI Prompts - Pre-configured trading workflows

  • šŸ“š 19 Resources - Comprehensive trading documentation

  • šŸ”„ Streaming Support - HTTP/SSE for real-time updates

  • šŸŽ® Paper Trading - Test strategies without risk

  • ⚔ Live Execution - Trade on Hyperliquid (optional)

šŸ  Local Development: Run the MCP server locally for full control and privacy
🌐 HTTP Streaming: Remote MCP connection via mcp-remote for Cursor IDE

🌐 Live Deployment: https://geartrade-mcp-server.fajararrizki15.workers.dev/

🌟 What's Included

šŸ“Š 38+ Complete Trading Tools

  • Price Tools (2): Real-time pricing for single/multiple assets

  • Technical Analysis (2): 20+ indicators (RSI, EMA, MACD, Bollinger Bands, ATR, ADX, etc.)

  • Volume Analysis (2): Buy/sell pressure, CVD, liquidity zones analysis

  • Multi-Timeframe (2): Daily, 4H, 1H trend alignment analysis

  • Advanced Analysis (3): Fibonacci, Order Book Depth, Liquidation Levels

  • Market Analysis (8): Volume Profile, Market Structure, Candlestick Patterns, Divergence, Long/Short Ratio, Spot-Futures Divergence, External Data

  • Risk Management (2): Position sizing, stop loss, take profit calculations

  • Comprehensive Analysis (2): Complete crypto analysis with position setup

  • Execution Tools (4): Spot & Futures trading (paper trading + live execution)

  • Batch Operations (11): Multi-asset analysis for all above tools

šŸ“š 19 Trading Resources

  • geartrade://trading-strategies - Comprehensive trading strategies guide

  • geartrade://risk-management - Risk management best practices

  • geartrade://tools-overview - Complete tools overview

  • geartrade://execution-workflow - Analysis to execution workflow

  • geartrade://technical-indicators-guide - Technical indicators guide

  • geartrade://hyperliquid-api-reference - Hyperliquid API reference

  • Plus 13 more specialized guides (volume analysis, fibonacci, orderbook, etc.)

šŸ¤– 23 AI Trading Prompts

  • Core Trading: analyze_and_execute, multi_asset_scan, comprehensive_analysis

  • Technical Analysis: technical_indicator_analysis, volume_profile_analysis, market_structure_analysis

  • Advanced: divergence_scan, liquidation_analysis, fibonacci_trading_strategy, spot_futures_arbitrage

  • Risk Management: risk_analysis, position_monitoring, portfolio_review, volatility_analysis

  • Plus 12 more specialized prompts

šŸš€ Quick Start

⚔ Fastest Way - Streaming Mode (Recommended)

# Terminal 1 - Start Streaming Server bash scripts/start-mcp-stream.sh # Terminal 2 - Connect Terminal UI pnpm run terminal

Server runs at http://localhost:8787 with SSE streaming support!

šŸ“– Full Guide: See QUICKSTART.md and STREAMING_GUIDE.md

Installation:

# Clone the repository git clone https://github.com/FajarArrizki/ai-trading-mcp-server.git cd ai-trading-mcp-server # Install dependencies pnpm install # Build the server pnpm run build

šŸ–„ļø Terminal UI (New!)

Interactive terminal interface untuk testing dan development - NO IMPORT ISSUES!

# Quick start pnpm run terminal:build pnpm run terminal

Features:

  • šŸŽØ Beautiful UI - Claude Code inspired design

  • šŸ”Œ Zero Import Issues - Pure Node.js, deployment-ready

  • šŸ› ļø Interactive Tools - Execute all 36 MCP tools

  • šŸ“¦ Resource Access - Read all 25 resources

  • āœ… Production Ready - Works everywhere, no bundling issues

Documentation:

Why Terminal UI?

Dibuat khusus untuk mengatasi masalah "pas di deployment ga bisa, karna mengunakan import":

  • āœ… No dynamic imports

  • āœ… No ESM/CJS conflicts

  • āœ… Pure static imports

  • āœ… Minimal dependencies

  • āœ… Works in all environments

šŸ”§ Configure MCP Client

šŸš€ Quick Start - MCP Integration

Option 1: HTTP Streaming Mode (Recommended)

Start the server:

cd /root/GEARTRADE bash scripts/mcp-auto-start.sh

Server runs at http://localhost:8787 with SSE streaming support!

Configure Cursor (~/.cursor/mcp.json):

{ "mcpServers": { "geartrade-local-stream": { "command": "npx", "args": [ "mcp-remote", "http://localhost:8787/mcp" ], "env": { "AI_PROVIDER": "openrouter", "MODEL_ID": "openai/gpt-4-turbo", "OPENROUTER_API_KEY": "your_openrouter_api_key_here", "HYPERLIQUID_API_URL": "https://api.hyperliquid.xyz", "HYPERLIQUID_WALLET_API_KEY": "", "HYPERLIQUID_ACCOUNT_ADDRESS": "", "CANDLES_COUNT": "100" } } } }

Required Environment Variables:

  • OPENROUTER_API_KEY - Get from OpenRouter (Required for AI analysis)

  • HYPERLIQUID_API_URL - API endpoint for market data (default provided)

  • HYPERLIQUID_WALLET_API_KEY - Only for live trading (leave empty for analysis only)

  • HYPERLIQUID_ACCOUNT_ADDRESS - Only for live trading (leave empty for analysis only)

  • CANDLES_COUNT - Number of candles for analysis (100 recommended)

Option 2: Direct Execution

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{ "mcpServers": { "geartrade": { "command": "tsx", "args": ["/path/to/GEARTRADE/packages/geartrade-mcp-server/src/index.ts"], "env": { "AI_PROVIDER": "openrouter", "MODEL_ID": "openai/gpt-4-turbo", "OPENROUTER_API_KEY": "your_api_key_here", "HYPERLIQUID_API_URL": "https://api.hyperliquid.xyz" } } } }

Cursor (Alternative) (.cursor/mcp.json):

{ "mcpServers": { "geartrade": { "command": "node", "args": [ "--loader", "tsx", "/path/to/GEARTRADE/packages/geartrade-mcp-server/src/index.ts" ], "env": { "NODE_OPTIONS": "--loader tsx", "AI_PROVIDER": "openrouter", "MODEL_ID": "openai/gpt-4-turbo", "OPENROUTER_API_KEY": "your_api_key_here", "HYPERLIQUID_API_URL": "https://api.hyperliquid.xyz", "CANDLES_COUNT": "100" } } } }

šŸ“¦ MCP Capabilities

Tools (38+)

Category

Count

Description

Price Analysis

2

Real-time pricing for single/multiple assets

Technical Analysis

2

20+ indicators (RSI, EMA, MACD, Bollinger Bands, ATR, ADX)

Volume Analysis

2

Buy/sell pressure, CVD, liquidity zones

Multi-Timeframe

2

Daily, 4H, 1H trend alignment

Advanced Analysis

3

Fibonacci, Order Book Depth, Liquidation Levels

Market Analysis

8

Volume Profile, Market Structure, Candlestick Patterns, Divergence, Long/Short Ratio, Spot-Futures Divergence, External Data

Risk Management

2

Position sizing, stop loss, take profit calculations

Comprehensive

2

Complete crypto analysis with position setup

Execution

4

Paper trading + live execution via Hyperliquid

Batch Operations

11+

Multi-asset versions of all above tools

Example Tools:

  • get_price / get_multiple_prices - Real-time crypto prices

  • get_indicator / get_multiple_indicators - Technical indicators (RSI, MACD, etc.)

  • get_volume_analysis - Buy/sell pressure, CVD, liquidity zones

  • get_fibonacci - Fibonacci retracement levels

  • get_orderbook_depth - Order book support/resistance

  • analisis_crypto - Comprehensive single-asset analysis

  • analisis_multiple_crypto - Batch multi-asset analysis

  • calculate_risk_management - Stop loss, take profit, risk/reward

  • get_execution_spot / get_execution_futures - Trade execution

Resources (19)

  • geartrade://trading-strategies - Trading strategies guide

  • geartrade://risk-management - Risk management guide

  • geartrade://tools-overview - Complete tools documentation

  • geartrade://execution-workflow - Step-by-step execution guide

  • geartrade://technical-indicators-guide - Indicators reference

  • geartrade://hyperliquid-api-reference - Hyperliquid API docs

  • geartrade://volume-analysis-guide - Volume analysis guide

  • geartrade://fibonacci-trading-guide - Fibonacci strategies

  • Plus 11 more specialized guides

Prompts (23)

  • Core Trading: analyze_and_execute, multi_asset_scan, comprehensive_analysis

  • Quick Analysis: quick_price_check, trend_analysis, market_overview

  • Technical: technical_indicator_analysis, volume_profile_analysis, market_structure_analysis

  • Advanced: divergence_scan, liquidation_analysis, fibonacci_trading_strategy, spot_futures_arbitrage

  • Risk: risk_analysis, position_monitoring, portfolio_review, volatility_analysis, entry_exit_strategy

  • Plus 8 more specialized prompts

šŸ—ļø Architecture

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” │ GearTrade MCP Server │ ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤ │ │ │ ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” │ │ │ MCP Clients │◄──►│ MCP Protocol │◄──►│ │ │ - Claude │ │ - Tool Execution │ │ │ │ - Cursor IDE │ │ - Resource Access │ │ │ │ - Cline IDE │ │ - Prompt Management │ │ │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ │ │ │ │ │ ā–¼ │ │ ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”ā”‚ │ │ Core MCP Server ││ │ │ ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ││ │ │ │ Trading Tools │ │ Resources │ ││ │ │ │ - Price (2) │ │ - Trading State │ ││ │ │ │ - Analysis (2) │ │ - Performance Metrics │ ││ │ │ │ - Volume (2) │ │ - Configuration │ ││ │ │ │ - Advanced (10)│ │ - Documentation │ ││ │ │ │ - Risk (2) │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ││ │ │ │ - Exec (4) │ ││ │ │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ││ │ │ ││ │ │ ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ││ │ │ │ AI Prompts │ │ Security Layer │ ││ │ │ │ - Core Trading │ │ - Multi-User Credentials │ ││ │ │ │ - Technical │ │ - Input Validation (Zod) │ ││ │ │ │ - Risk Mgmt │ │ - Paper Trading Default │ ││ │ │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ││ │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ā”‚ │ │ │ │ ā–¼ │ │ ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”ā”‚ │ │ External APIs ││ │ │ ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā” ││ │ │ │ Hyperliquid │ │ AI Providers │ ││ │ │ │ - Market Data │ │ - OpenRouter │ ││ │ │ │ - Execution │ │ - OpenAI │ ││ │ │ │ - Account Info │ │ - Custom Models │ ││ │ │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ ││ │ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜ā”‚ ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Component Details

MCP Protocol Layer

  • Tool Execution: 38+ trading tools for analysis and execution

  • Resource Management: 19 comprehensive documentation resources

  • Prompt System: 23 AI-optimized trading prompts

Security Layer

  • Multi-user credentials via tool parameters

  • Zod schema validation

  • Paper trading by default

  • No hardcoded secrets

šŸ“ Project Structure

ai-trading-mcp-server/ ā”œā”€ā”€ packages/ │ └── geartrade-mcp-server/ # Main MCP server package │ ā”œā”€ā”€ src/ │ │ ā”œā”€ā”€ index.ts # MCP server entry (36 tools, 25 resources, 23 prompts) │ │ └── signal-generation/ # Trading engine modules │ │ ā”œā”€ā”€ ai/ # AI integration │ │ │ ā”œā”€ā”€ call-api.ts # OpenRouter/OpenAI API calls │ │ │ └── index.ts │ │ ā”œā”€ā”€ analysis/ # Market analysis modules │ │ │ ā”œā”€ā”€ bounce.ts # Bounce detection │ │ │ ā”œā”€ā”€ btc-correlation.ts # BTC correlation analysis │ │ │ ā”œā”€ā”€ candlestick.ts # Candlestick patterns │ │ │ ā”œā”€ā”€ divergence.ts # Divergence detection │ │ │ ā”œā”€ā”€ market-regime.ts # Market regime detection │ │ │ ā”œā”€ā”€ market-structure.ts # Market structure analysis │ │ │ ā”œā”€ā”€ orderbook.ts # Order book analysis │ │ │ ā”œā”€ā”€ volume-analysis.ts # Volume analysis │ │ │ ā”œā”€ā”€ volume-profile.ts # Volume profile │ │ │ ā”œā”€ā”€ whale-detection.ts # Whale activity detection │ │ │ └── ... # 20+ analysis modules │ │ ā”œā”€ā”€ data-fetchers/ # Market data sources │ │ │ ā”œā”€ā”€ binance.ts # Binance spot data │ │ │ ā”œā”€ā”€ binance-futures.ts # Binance futures data │ │ │ ā”œā”€ā”€ blockchain.ts # On-chain data │ │ │ ā”œā”€ā”€ hyperliquid.ts # Hyperliquid API │ │ │ ā”œā”€ā”€ market-data.ts # Aggregated market data │ │ │ └── historical-data.ts # Historical OHLCV data │ │ ā”œā”€ā”€ execution/ # Trade execution │ │ │ ā”œā”€ā”€ paper-executor.ts # Paper trading simulation │ │ │ ā”œā”€ā”€ live-executor.ts # Live trade execution │ │ │ ā”œā”€ā”€ hyperliquid-signing.ts # Hyperliquid signing │ │ │ └── position-sizer.ts # Position sizing │ │ ā”œā”€ā”€ technical-indicators/ # Technical analysis │ │ │ ā”œā”€ā”€ aggregator.ts # Indicator aggregation │ │ │ ā”œā”€ā”€ fibonacci.ts # Fibonacci levels │ │ │ ā”œā”€ā”€ funding-rate.ts # Funding rate analysis │ │ │ ā”œā”€ā”€ liquidation.ts # Liquidation levels │ │ │ ā”œā”€ā”€ long-short-ratio.ts # Long/short ratio │ │ │ ā”œā”€ā”€ momentum.ts # RSI, MACD, Stochastic │ │ │ ā”œā”€ā”€ moving-averages.ts # EMA, SMA, WMA │ │ │ ā”œā”€ā”€ open-interest.ts # Open interest analysis │ │ │ ā”œā”€ā”€ spot-futures-divergence.ts # Spot-futures spread │ │ │ ā”œā”€ā”€ trend.ts # Trend indicators │ │ │ ā”œā”€ā”€ volatility.ts # ATR, Bollinger Bands │ │ │ └── volume.ts # Volume indicators │ │ ā”œā”€ā”€ risk-management/ # Risk management │ │ │ ā”œā”€ā”€ anti-liquidation.ts # Liquidation protection │ │ │ ā”œā”€ā”€ emergency-exit.ts # Emergency exit logic │ │ │ ā”œā”€ā”€ leverage.ts # Leverage calculation │ │ │ ā”œā”€ā”€ margin.ts # Margin management │ │ │ ā”œā”€ā”€ take-profit.ts # Take profit strategies │ │ │ └── mae.ts # Max adverse excursion │ │ ā”œā”€ā”€ types/ # TypeScript types │ │ │ ā”œā”€ā”€ futures-types.ts # Futures trading types │ │ │ └── index.ts # Type exports │ │ ā”œā”€ā”€ utils/ # Utilities │ │ │ ā”œā”€ā”€ cache.ts # Data caching │ │ │ ā”œā”€ā”€ logger.ts # Logging utility │ │ │ ā”œā”€ā”€ multi-timeframe.ts # MTF utilities │ │ │ └── trend-strength.ts # Trend strength calc │ │ ā”œā”€ā”€ config/ # Configuration │ │ │ └── index.ts # Server config │ │ ā”œā”€ā”€ index.ts # Signal generation exports │ │ └── main.ts # Main signal generation │ ā”œā”€ā”€ dist/ # Compiled JavaScript output │ │ ā”œā”€ā”€ index.js # Main entry point │ │ ā”œā”€ā”€ index.d.ts # TypeScript declarations │ │ └── signal-generation/ # Compiled modules │ ā”œā”€ā”€ package.json # Package dependencies │ ā”œā”€ā”€ tsconfig.json # TypeScript config │ └── mcp.local.json # Local MCP configuration ā”œā”€ā”€ scripts/ # Utility scripts │ ā”œā”€ā”€ run-mcp-inspector.sh # MCP inspector launcher │ ā”œā”€ā”€ setup-git-remote.sh # Git remote setup │ └── test-signal-generation.js # Signal generation tests ā”œā”€ā”€ package.json # Workspace root config ā”œā”€ā”€ pnpm-workspace.yaml # PNPM workspace config ā”œā”€ā”€ pnpm-lock.yaml # Dependency lock file ā”œā”€ā”€ mcp.json # MCP configuration ā”œā”€ā”€ LICENSE # MIT License └── README.md # This file

Key Directories

Directory

Description

src/index.ts

Main MCP server with 38+ tools, 19 resources, 23 prompts

local-server.ts

HTTP/SSE streaming server for remote MCP connections

signal-generation/analysis/

20+ market analysis modules

signal-generation/technical-indicators/

13 technical indicator modules

signal-generation/data-fetchers/

Multi-source market data fetchers

signal-generation/execution/

Paper & live trade execution

signal-generation/risk-management/

Risk management & position sizing

šŸ› ļø Development

# Development mode pnpm run dev # Build pnpm run build # Validate MCP config pnpm run validate # List tools & resources pnpm run list

šŸ” Security & Multi-User Support

Analysis-Only Mode (Recommended for beginners)

Leave wallet credentials empty - all analysis tools work without trading:

{ "HYPERLIQUID_WALLET_API_KEY": "", "HYPERLIQUID_ACCOUNT_ADDRESS": "" }

Available without credentials:

  • āœ… All price & market data tools

  • āœ… All technical analysis tools

  • āœ… All volume & advanced analysis

  • āœ… Risk calculations

  • āœ… Paper trading simulation

Real Trading Mode (Advanced users)

Users provide their own credentials via tool parameters OR environment variables:

Via Tool Parameters:

{ "name": "get_execution_futures", "arguments": { "ticker": "BTC", "side": "LONG", "quantity": 0.1, "leverage": 10, "execute": true, "useLiveExecutor": true, "accountAddress": "0xUserAddress", "walletApiKey": "UserPrivateKey" } }

Via Environment Variables:

{ "env": { "HYPERLIQUID_WALLET_API_KEY": "your_private_key", "HYPERLIQUID_ACCOUNT_ADDRESS": "0xYourAddress" } }

Security Features

  • āœ… Multi-user credentials support

  • āœ… Zod schema validation

  • āœ… Paper trading by default

  • āœ… No hardcoded secrets

  • āœ… Analysis-only mode available

  • āœ… Credentials per-tool override

🌐 API Endpoints (HTTP Streaming Mode)

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

Endpoint

Method

Description

http://localhost:8787/

GET

Server info & documentation

http://localhost:8787/health

GET

Health check (JSON)

http://localhost:8787/mcp

POST

MCP JSON-RPC endpoint

http://localhost:8787/stream

GET/POST

SSE 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"}}}'

šŸ“„ License

MIT


Built for the AI trading community - empowering AI assistants with professional trading capabilities

-
security - not tested
A
license - permissive license
-
quality - not tested

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FajarArrizki/mcp-technical-analysis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server