HTS MetaTrader5 Trading
БесплатноНе проверенEnables Claude AI to perform forex trading operations and market data analysis through MetaTrader 5, including order placement, position management, and multi-t
Описание
Enables Claude AI to perform forex trading operations and market data analysis through MetaTrader 5, including order placement, position management, and multi-timeframe candle data retrieval.
README
A Model Context Protocol (MCP) server that connects Claude AI with MetaTrader 5 for forex trading operations and market data analysis.
Features
Market Data
- Historical Candles: Retrieve OHLC data for any forex symbol and timeframe
- Multi-Timeframe Analysis: Fetch candle data across multiple timeframes simultaneously
- Account Information: View trading account details and metrics
- Position Tracking: Monitor all open positions
- Order Management: Track pending orders
Trading Operations
- Order Placement: Create market and pending orders (BUY, SELL, LIMIT, STOP)
- Order Modification: Update price levels, SL/TP, and expiration times
- Order Cancellation: Cancel pending orders
- Position Management: Close positions (full/partial) and modify SL/TP levels
Architecture
The system consists of two components:
MCP Server (Node.js/TypeScript)
- Exposes tools via Model Context Protocol
- Manages command queue for EA communication
- Provides HTTP API for MT5 integration
MetaTrader 5 EA (MQL5)
- Executes trading operations
- Retrieves market data
- Communicates with MCP server via HTTP
Installation
npm install
npm run build
Configuration
Create a .env file:
HTTP_PORT=3000
Usage
Start the MCP Server
npm start
Configure Claude Desktop
Add to your Claude desktop config:
{
"mcpServers": {
"mcp-server": {
"command": "node",
"args": ["/path/to/trading-mcp/dist/index.js"]
}
}
}
Deploy MT5 EA
- Copy
ea/info-bot.mq5to your MetaTrader 5Expertsfolder - Compile the EA in MetaEditor
- Attach the EA to any chart
- Ensure the EA has the correct HTTP endpoint configured
API Tools
Market Data Tools
get_candles- Historical candle data for a symbolget_bulk_candles- Multi-timeframe candle dataget_accounts- All trading accountsget_account- Specific account by numberget_positions- All open positionsget_orders- All pending orders
Trading Tools
open_order- Create new trading ordermodify_order- Update pending ordercancel_order- Cancel pending orderclose_position- Close open positionmodify_position- Update position SL/TPget_command_queue- View pending commandsget_handler_queue- View command results
Установка HTS MetaTrader5 Trading
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/Yumin-Kim/hts-mcp-serverFAQ
HTS MetaTrader5 Trading MCP бесплатный?
Да, HTS MetaTrader5 Trading MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для HTS MetaTrader5 Trading?
Нет, HTS MetaTrader5 Trading работает без API-ключей и переменных окружения.
HTS MetaTrader5 Trading — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить HTS MetaTrader5 Trading в Claude Desktop, Claude Code или Cursor?
Открой HTS MetaTrader5 Trading на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare HTS MetaTrader5 Trading with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
