Observed since 21 Oct, 09:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
MCP server for MT5 market analysis, trading operations, and alert system with 15 conditions - FIXED pip value calculation
Model Context Protocol server untuk analisis teknikal MetaTrader 5 dengan AI context tools.
RSI, MACD, Bollinger Bands, Ichimoku Cloud, ADX, Parabolic SAR, Stochastic, CCI, Williams %R, ATR, Keltner Channels, OBV, MFI
cd "d:/Project Utama/Metatrade5"
pip install fastapi uvicorn pandas ta MetaTrader5 pytz
cd "d:/Project Utama/Metatrade5/analysis_service"
python main.py
Server akan jalan di http://0.0.0.0:8000
tailscale ip -4
Contoh output: 100.67.151.83
Edit file mcp_config.json (lokasi tergantung IDE):
Cursor/VS Code:
C:\Users\{username}\.cursor\mcp_config.json atau .vscode\mcp_config.json~/.cursor/mcp_config.jsonClaude Desktop:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonTambahkan konfigurasi ini:
{
"mcpServers": {
"mt5-analysis": {
"command": "npx",
"args": ["-y", "@0xrelogic/mt5-analysis-mcp"],
"env": {
"MT5_API_URL": "http://100.67.151.83:8000"
}
}
}
}
Ganti
100.67.151.83dengan IP Tailscale server kamu!
Input: symbol (string), timeframe (string, default: "H4")
Contoh: "BTCUSD", "H4"
Output:
- 13+ chart patterns (sorted by quality score)
- Candlestick signals (Engulfing, Hammer, Doji, etc.)
- Support/Resistance levels with strength 1-10
- Fibonacci retracement levels
- Volume confirmation (✓/✗)
- Quality scores (0-100)
Example Output:
=== PATTERNS FOUND (sorted by quality) ===
Double Top (bearish_reversal)
Quality: 85% | Confidence: 92% | Volume: ✓
Target: 83271.33
=== FIBONACCI RETRACEMENT ===
Trend: DOWNTREND
Current at: 23.6% level ← Current
Support: 83422.93 - Strength: 8/10 (7 touches, 10 bars)
Input: symbol (string)
Contoh: "XAUUSD"
Output: Analisa M15, H1, H4, D1 dengan semua indikator
Input: symbol (string)
Contoh: "EURUSD"
Output: Bid, Ask, Last, Time
Input: (none)
Output: Balance, Equity, Margin, Profit
Input: symbols (comma-separated string)
Contoh: "EURUSD,XAUUSD,GBPUSD"
Output: Analisa semua symbol sekaligus (max 10)
Inputs:
- symbol (string): "EURUSD"
- timeframe (string): "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN1"
- bars (number): 100 (max 1000)
Output: Data OHLCV historis
Inputs:
- symbol (string): "EURUSD"
- timeframe (string): "M15", "H1", "H4", "D1" (default: "H4")
Output: trending/ranging/volatile + ADX + ATR + trend strength
Inputs:
- symbol (string): "EURUSD"
- timeframe (string): "M15", "H1", "H4", "D1" (default: "H1")
Output: Bias per timeframe + alignment score + recommendation
Input: symbol (string): "EURUSD"
Output: ATR percentile + status (low/normal/high/extremely_high)
Input: (none)
Output: Active sessions (Asian/London/NY) + volume expectations
Inputs:
- name (string): "EURUSD Oversold Setup"
- symbol (string): "EURUSD"
- timeframe (string): "M15", "H1", "H4", "D1" (default: "H4")
- conditions (array): Array of condition objects
- min_conditions_met (number): Minimum conditions to trigger (default: 2)
- cooldown_hours (number): Hours before re-trigger (default: 4)
- telegram_enabled (boolean): Send to Telegram (default: true)
Condition Types:
- RSI: {type: "rsi", operator: "<", value: 30}
- MACD: {type: "macd", operator: ">", value: 0}
- Price: {type: "price", operator: "<", value: 1.0500}
- Pattern: {type: "pattern", pattern_type: "bullish_reversal", min_quality: 80}
- ADX: {type: "adx", operator: ">", value: 25}
- Stochastic: {type: "stoch", operator: "<", value: 20}
Example:
{
"name": "EURUSD Bullish Setup",
"symbol": "EURUSD",
"timeframe": "H4",
"conditions": [
{"type": "rsi", "operator": "<", "value": 30},
{"type": "pattern", "pattern_type": "bullish_reversal", "min_quality": 80}
],
"min_conditions_met": 2
}
Output: Rule ID, name, conditions count
Input: enabled_only (boolean, default: true)
Output: List of all alert rules with status, conditions, trigger count
Input: acknowledged (boolean, default: false)
Output: List of pending alerts with conditions met, quality score, price
Input: alert_id (number)
Output: Success confirmation
Input: rule_id (number)
Output: Success confirmation
Input: rule_id (number)
Output: Current evaluation result (triggered/not triggered), conditions status
Inputs:
- symbols (string): "EURUSD,GBPUSD,XAUUSD,BTCUSD" (max 10)
- timeframe (string): "M1", "M5", "M15" (default: "M5")
Output per symbol:
- price & spread_pips
- trend_bias: bullish/bearish/neutral
- market_condition: trending/ranging/volatile
- volatility_status: low/normal/high/extremely_high
- rsi, stoch_k, stoch_d
- distance_to_swing_high_pips
- distance_to_swing_low_pips
- swing_high, swing_low
- adx, atr
Perfect for: Quickly scanning which pairs are good for scalping right now!
Setelah setup, langsung chat ke AI:
Analisa Single:
Analisa Batch:
Data Historis:
AI Context (v1.2.0): 🆕
Alert System (v1.5.0): 🔥
Info Akun:
# Core Endpoints
curl http://100.67.151.83:8000/api/analyze/EURUSD
curl http://100.67.151.83:8000/api/price/EURUSD
curl http://100.67.151.83:8000/api/account
curl "http://100.67.151.83:8000/api/analyze/batch?symbols=EURUSD,XAUUSD,GBPUSD"
curl "http://100.67.151.83:8000/api/history/EURUSD?timeframe=H1&bars=100"
# AI Context Endpoints (v1.2.0) 🆕
curl http://100.67.151.83:8000/api/condition/EURUSD/H4
curl http://100.67.151.83:8000/api/htf-bias/EURUSD/H1
curl http://100.67.151.83:8000/api/volatility/EURUSD
curl http://100.67.151.83:8000/api/session
# Alert System Endpoints (v1.5.0) 🔥
curl http://100.67.151.83:8000/api/alerts/rules
curl http://100.67.151.83:8000/api/alerts/pending
curl -X POST http://100.67.151.83:8000/api/alerts/create -H "Content-Type: application/json" -d '{"name":"Test","symbol":"EURUSD","conditions":[{"type":"rsi","operator":"<","value":30}]}'
curl http://100.67.151.83:8000/api/alerts/evaluate/1
curl -X DELETE http://100.67.151.83:8000/api/alerts/rules/1
# API Documentation
http://100.67.151.83:8000/docs
✅ Private Network Only
Tools tidak muncul di AI?
curl http://IP:8000/mcp_config.jsonConnection refused?
Error "429 Too Many Requests" dari NPM?
npm install -g @0xrelogic/mt5-analysis-mcpv1.9.1 (2025-11-25) 🐛 CRITICAL BUG FIX - PIP VALUE CALCULATION
pip_info section to position size calculator outputtest_pip_fix.py for verificationv1.7.0 (2025-11-24) 🚀 SCALPING EDITION
v1.5.0 (2025-11-23) 🔥
create_alert_rule - Create custom alerts with multiple conditionslist_alert_rules - View all alert rulesget_pending_alerts - Check triggered alertsacknowledge_alert - Mark alerts as revieweddelete_alert_rule - Remove alert rulesevaluate_alert_rule - Test rules manuallyv1.3.0 (2025-11-22)
detect_patterns - 13+ chart patterns + candlestick signalsv1.2.0 (2025-11-22)
get_market_condition - Detect trending/ranging/volatile statesget_htf_bias - Check timeframe alignmentget_volatility_rank - ATR percentile rankingget_session_info - Trading session detectionv1.1.0 (2025-11-22)
get_batch_analysis - analyze multiple symbols at onceget_historical_data - fetch OHLCV historical datav1.8.0 (2025-11-24) 🔥 SCALPING CONDITIONS UPDATE
spread - Check spread in pips (e.g., {type: 'spread', operator: '<', value: 2})candle - 6 candlestick patterns (bullish_engulfing, bearish_engulfing, hammer, shooting_star, doji, pin_bar)momentum - Price velocity detection (min_pips threshold)time - Time filter to avoid low-volume hoursv1.0.0 (2025-11-22)
Maintainer: @0xReLogic
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.9.1Registry latest | 25 Nov 2025 | 1 | |
| 1.9.0 | 24 Nov 2025 | 1 | |
| 1.8.3 | 24 Nov 2025 | 1 | |
| 1.8.2 | 24 Nov 2025 | 1 | |
| 1.8.1 | 24 Nov 2025 | 1 | |
| 1.8.0 | 24 Nov 2025 | 1 | |
| 1.7.2 | 24 Nov 2025 | 1 | |
| 1.7.1 | 24 Nov 2025 | 1 | |
| 1.7.0 | 24 Nov 2025 | 1 | |
| 1.6.0 | 23 Nov 2025 | 1 | |
| 1.5.0 | 23 Nov 2025 | 1 | |
| 1.4.5 | 23 Nov 2025 | 1 | |
| 1.4.4 | 22 Nov 2025 | 1 | |
| 1.4.3 | 22 Nov 2025 | 1 | |
| 1.4.2 | 22 Nov 2025 | 1 | |
| 1.4.1 | 22 Nov 2025 | 1 | |
| 1.4.0 | 22 Nov 2025 | 1 | |
| 1.3.2 | 22 Nov 2025 | 1 | |
| 1.3.1 | 22 Nov 2025 | 1 | |
| 1.3.0 | 22 Nov 2025 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d997e29159b2675ac0b6c669962e592fd32f832d9ee1953dce1bf507b0e46898