Installation
Content Details
Alternatives
Installation
{
"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"
}
}
}
{
"mcpServers": {
"mcp-technical-analysis": {
"command": "bash",
"args": ["/path/to/mcp-technical-analysis/scripts/mcp-auto-start.sh"],
"description": "MCP Technical Analysis Server - Linux/Mac"
}
}
}
{
"mcpServers": {
"mcp-technical-analysis": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8787/mcp"]
}
}
}๐ Model Context Protocol Server for AI-Powered Cryptocurrency Analysis
A comprehensive MCP server that connects AI assistants with professional cryptocurrency market analysis capabilities, offering real-time data, advanced analysis, and intelligent trading insights.
๐ฌ MCP Technical Analysis Server Demo
Watch the full demonstration of AI-powered cryptocurrency analysis capabilities
โจ Features
- ๐ด 68 Analysis & Trading Tools: Complete market analysis, trading execution, and Hyperliquid operations.
- ๐ Real-time Market Data: Live prices, indicators, and volume analysis.
- ๐ฏ Advanced Technical Analysis: RSI, MACD, Fibonacci, Order Book, etc.
- ๐ฐ Risk Management: Position sizing, stop loss, and take profit calculations.
- ๐ Multi-Timeframe Analysis: Daily, 4H, 1H trend alignment.
- ๐ค 32 AI Prompts: Pre-configured analysis workflows for different trading styles.
- ๐ 22 Resources: Comprehensive analysis documentation with usage guides.
- ๐ Streaming Support: HTTP/SSE for real-time updates.
- ๐น Hyperliquid Futures: Testnet & Mainnet futures execution with slippage protection.
- ๐ช Hyperliquid Spot: Market & limit orders with automatic slippage retry.
- ๐ผ Account Operations: Balance checks, transfers, and sending USD/tokens.
- ๐ Bridge Operations: Withdraw to Arbitrum L1 and check withdrawal status.
- ๐ HyperScreener Integration: Whale positions, liquidations, and large trades data.
- ๐ฏ Whale Tracking: Track specific wallet addresses with alerts.
- ๐ Tier Classification: Market breakdown by trader tier.
- ๐ BTC Correlation: Altcoin correlation with BTC and market regime detection.
- ๐ Enhanced L2 Order Book: Real-time bids/asks with depth and imbalance.
- ๐ง AI Memory (Mem0): Persistent memory for trading preferences and pattern learning.
- โ Production Ready: All 68 tools validated and working as of December 3, 2025.
๐ฆ Installation
1๏ธโฃ Clone the Repository
git clone https://github.com/FajarArrizki/mcp-technical-analysis.git
cd mcp-technical-analysis
2๏ธโฃ Install Dependencies
pnpm install
3๏ธโฃ Build the Server
pnpm run build
๐ป Usage Examples
Local Development
Run the MCP server locally for full control and privacy:
bash scripts/mcp-auto-start.sh
HTTP Streaming
Remote MCP connection via mcp-remote for Cursor IDE:
{
"mcpServers": {
"mcp-technical-analysis": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8787/mcp"]
}
}
}
Testing 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"}}}'
๐ Documentation
๐ 68 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, bridge operations, spot trading.
- 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, spot trading, account operations, bridge operations.
- AI Memory (8): Save preferences, log trades, get insights, check patterns, remember, recall, get all, delete.
๐ 22 Analysis 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 (60 tools with parameters including AI Memory).
๐ค 32 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.
- 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).
๐ง Technical Details
Technology Stack
| Technology | Version | Purpose |
|---|---|---|
| Nullshot AI Agent Framework](https://nullshot.ai) | 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
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ MCP TECHNICAL ANALYSIS SERVER โ
โ AI-Powered Cryptocurrency Analysis โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ โ
โ โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ
โ โ AI ASSISTANTS โ โ
โ โ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโ โ โ
โ โ โ Claude โ โ Cursor โ โ Custom โ โ โ
โ โ โโโโโโฌโโโ โ โโโโโฌโโโโ โ โโโโฌโโโ โโ โ โ
โ โฐโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโฏ โ
โ โ โ โ โ
โ โโโโโโโโโโโโผโโโโโโโโโโโ โ
โ โ โ
โ โโโโ MCP โโโโถ โ
โ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โผ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ GEARTRADE MCP SERVER v2.0 โ โ โ
โ โ โ 68 Tools โข 22 Resources โข 32 Prompts โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ โ
โ โ โผ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ CORE COMPONENTS โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โ โ ANALYSIS ENGINE โ โ AI MEMORY (Mem0) โ โ โ โ
โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ
โ โ โ โ โข Price & Indicators โ โ โข Trading Preferences โ โ โ โ
โ โ โ โ โข Volume & CVD โ โ โข Trade Journal โ โ โ โ
โ โ โ โ โข Market Structure โ โ โข Pattern Learning โ โ โ โ
โ โ โ โ โข Order Book Depth โ โ โข Personalized Insights โ โ โ โ
โ โ โ โ โข Risk Management โ โ โข Historical Win Rate โ โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ โ
โ โ โผ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ DATA SOURCES โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โ โ HYPERLIQUID API โ โ HYPERSCREENER API โ โ BINANCE API โ โ โ โ
โ โ โ โ โโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโ โ โ โ โ
โ โ โ โ โข Real-time Prices โ โ โข Whale Positions โ โ โข Historical Candleโ โ โ โ
โ โ โ โ โข L2 Order Book โ โ โข Liquidations โ โ โข Multi-Timeframe โ โ โ โ
โ โ โ โ โข Funding Rates โ โ โข Long/Short Ratio โ โ โข Volume Data โ โ โ โ
โ โ โ โ โข Open Interest โ โ โข Large Trades โ โ โข Market Data โ โ โ โ
โ โ โ โ โข Futures Trading โ โ โข Top Traders โ โ โ โ โ โ
โ โ โ โ โข Spot Trading โ โ โข Tier Breakdown โ โ โ โ โ โ
โ โ โ โ โข Account Ops โ โ โ โ โ โ โ โ
โ โ โ โ โข Bridge to L1 โ โ โ โ โ โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ โ
โ โ โผ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ AI LAYER โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โ โ AI PROMPTS (32) โ โ SECURITY & VALIDATION โ โ โ โ
โ โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโ โ โ โโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ โ
โ โ โ โ โข Day Trading Analysis โ โ โข Zod Schema Validation โ โ โ โ
โ โ โ โ โข Swing Trading โ โ โข Trading Safety Checks โ โ โ โ
โ โ โ โ โข Position Trading โ โ โข Slippage Protection โ โ โ โ
โ โ โ โ โข Oscillators & MA โ โ โข Asset Whitelist โ โ โ โ
โ โ โ โ โข Risk Analysis โ โ โข Position Size Limits โ โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ โ
โ โ โผ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ STREAMING & TRADING EXECUTION โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โ โ HTTP/SSE STREAMING โ โ HYPERLIQUID TRADING โ โ โ โ
โ โ โ โ โข localhost:8787 โ โ โข TESTNET: Full Features โ โ โ โ
โ โ โ โ โข Server-Sent Events โ โ โข MAINNET: Safety Checks โ โ โ โ
โ โ โ โ โข mcp-remote Support โ โ โข Market/Limit/Custom โ โ โ โ
โ โ โ โ โข Real-time Updates โ โ โข Slippage: 0.01%-50% โ โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ โ
โ โ โผ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ MEM0 PLATFORM API โ โ โ
โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ โ
โ โ โ โข Persistent Memory Storage โข Vector Search & Semantic Recall โ โ โ
โ โ โ โข LLM-Powered Memory Extraction โ โ โ
โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Component Details
- MCP Protocol Layer: Tool execution, resource management, and prompt system.
- Security & Validation Layer: Input validation, trading safety, testnet support, and slippage protection.
- Analysis Engine Components: Technical indicators, CVD, market structure, volume profile, multi-timeframe analysis, and risk management.
- AI Memory Layer (Mem0): Trading preferences, trade journal, pattern learning, personalized insights, and vector search.
- Data Integration: Hyperliquid, HyperScreener, Binance, and Mem0 data sources.
๐ HyperScreener Integration
The server integrates data from HyperScreener API (https://api-hyperliquid.asxn.xyz/api) to provide whale and liquidation intelligence.
Data Types
| Data Type | Description | Tools Using This Data |
|---|---|---|
| Liquidations | Recent liquidation events per asset | get_External_data, get_liquidation_levels |
| Whale Positions | Large trader positions per asset | get_External_data, get_long_short_ratio |
| Long/Short Ratio | Market sentiment ratio | get_External_data, get_long_short_ratio |
| Large Trades | Trades >$50K per asset | get_External_data |
| Top Traders | PnL-ranked traders | get_long_short_ratio |
| Liquidation Heatmap | 24h liquidation distribution by price level | get_liquidation_levels |
| Market Overview | Total positions, traders, OI, net PnL | get_External_data |
| Top Gainers/Losers | PnL-based rankings | get_External_data |
| Platform Stats | Overall platform statistics | get_External_data |
API Endpoints
| Category | Endpoint | Description |
|---|---|---|
| Liquidations | /node/liquidations |
All liquidations |
/node/liquidations/{SYMBOL} |
Liquidations by symbol | |
/node/liquidations/summary |
24h summary stats | |
/node/liquidations/stats/symbols |
Stats grouped by symbol | |
| Positions | /node/positions |
All positions |
/node/positions/{SYMBOL} |
Positions by symbol | |
/node/positions/{SYMBOL}/long |
Long positions only | |
/node/positions/{SYMBOL}/short |
Short positions only | |
| Market Summary | /node/market/summary |
All symbols with price change + liquidations |
/node/market/summary/{SYMBOL} |
Per symbol market summary | |
| Market Data | /market-data/funding-rates |
Funding rates per symbol |
/market-data/open-interest |
Open interest per symbol | |
/market-data/volume |
Volume 24h per symbol | |
/market-data/stats/24h |
24h aggregate stats |
๐ Project Structure
GEARTRADE/
โโโ packages/
โ โโโ geartrade-mcp-server/ # Main MCP server package
โ โโโ src/
โ โ โโโ index.ts # MCP server entry (68 tools, 22 resources, 32 prompts)
โ โ โโโ memory/ # AI Memory (Mem0) integration
โ โ โ โโโ index.ts # Memory service singleton
โ โ โ โโโ types.ts # TypeScript interfaces
โ โ โโโ tools/ # MCP tools registration
โ โ โ โโโ memory-tools.ts # 8 memory tools
โ โ โ โโโ hyperliquid-account-operations.ts # 6 account operations (NEW Dec 3, 2025)
โ โ โ โโโ hyperliquid-bridge-operations.ts # 2 bridge operations (NEW Dec 3, 2025)
โ โ โ โโโ spot-trading.ts # Spot trading (NEW Dec 3, 2025)
โ โ โ โโโ hyperliquid-testnet-futures-trade.ts # Testnet futures
โ โ โ โโโ hyperliquid-mainnet-futures-trade.ts # Mainnet futures
โ โ โ โโโ ... # Other tool files
โ โ โโโ signal-generation/ # Analysis engine modules
โ โ โโโ ai/ # AI integration
โ โ โโโ analysis/ # Market analysis modules
โ โ โโโ config/ # Configuration
โ โ โโโ data-fetchers/ # Market data sources
โ โ โโโ exit-conditions/ # Exit condition logic
โ โ โโโ formatting/ # Data formatting utilities
โ โ โโโ monitoring/ # Monitoring and logging
โ โ โโโ position-management/ # Position management
โ โ โโโ risk-management/ # Risk management
โ โ โโโ signal-generation/ # Signal generation logic
โ โ โโโ technical-indicators/ # Technical analysis
โ โ โโโ types/ # TypeScript types
โ โ โโโ utils/ # Utilities
โ โ โโโ validation/ # Input validation
โ โโโ local-server.ts # HTTP/SSE streaming server for MCP
โ โโโ package.json # MCP server package configuration
โ โโโ tsconfig.json # TypeScript configuration
โ โโโ dist/ # Compiled JavaScript output
โโโ scripts/ # Utility scripts
โ โโโ mcp-auto-start.sh # Auto-start MCP server
โโโ config-backups/ # Configuration backup files
โโโ logs/ # Application logs
โโโ package.json # Workspace root config
โโโ pnpm-workspace.yaml # PNPM workspace config
โโโ pnpm-lock.yaml # Dependency lock file
โโโ package-lock.json # NPM dependency lock file
โโโ mcp.json # MCP configuration
โโโ LICENSE # MIT License
โโโ README.md # This file
Key Directories
| No | Directory | Description |
|---|---|---|
| 1 | packages/geartrade-mcp-server/src/index.ts |
Main MCP server entry with 58 analysis tools, 22 resources, 32 prompts |
| 2 | packages/geartrade-mcp-server/local-server.ts |
HTTP/SSE streaming server for MCP |
| 3 | packages/geartrade-mcp-server/package.json |
MCP server package configuration |
| 4 | packages/geartrade-mcp-server/tsconfig.json |
TypeScript configuration for MCP server |
| 5 | packages/geartrade-mcp-server/src/memory/ |
AI Memory (Mem0) integration |
| 6 | packages/geartrade-mcp-server/src/tools/memory-tools.ts |
8 memory tools registration |
| 7 | packages/geartrade-mcp-server/src/signal-generation/ |
Core analysis engine |
| 8 | packages/geartrade-mcp-server/src/signal-generation/analysis/ |
Market analysis modules |
| 9 | packages/geartrade-mcp-server/src/signal-generation/technical-indicators/ |
Technical analysis |
| 10 | packages/geartrade-mcp-server/src/signal-generation/data-fetchers/ |
Market data sources |
| 11 | packages/geartrade-mcp-server/src/signal-generation/risk-management/ |
Risk management |
| 12 | packages/geartrade-mcp-server/src/signal-generation/ai/ |
AI integration |
| 13 | packages/geartrade-mcp-server/src/signal-generation/monitoring/ |
Monitoring and logging |
| 14 | scripts/ |
Utility scripts |
| 15 | logs/ |
Application logs |
๐ 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.
- โ
Mainnet safety checks:
- Futures:
confirmExecution: truerequired, asset whitelist, min $10, max 25% equity. - Spot:
confirmMainnet: truerequired, start with small amounts ($5-10). - Account Ops:
confirmMainnet: truefor transfers and withdrawals. - Bridge: 3-hour withdrawal to Arbitrum L1 with status tracking.
- Futures:
- โ
Slippage protection:
- Futures: 0.01% - 50% configurable.
- Spot: 0.010% - 8.00% automatic retry.
- โ 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.
๐ API Endpoints (HTTP Streaming Mode)
| No | Endpoint | Method | Description |
|---|---|---|---|
| 1 | http://localhost:8787/ |
GET | Server info & documentation |
| 2 | http://localhost:8787/health |
GET | Health check (JSON) |
| 3 | http://localhost:8787/mcp |
POST | MCP JSON-RPC endpoint |
| 4 | 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
This project is licensed under the MIT License.
Built for the AI analysis community - empowering AI assistants with professional technical analysis capabilities
Alternatives











