Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

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

GitHubEmbed

Описание

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:

  1. MCP Server (Node.js/TypeScript)

    • Exposes tools via Model Context Protocol
    • Manages command queue for EA communication
    • Provides HTTP API for MT5 integration
  2. 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

  1. Copy ea/info-bot.mq5 to your MetaTrader 5 Experts folder
  2. Compile the EA in MetaEditor
  3. Attach the EA to any chart
  4. Ensure the EA has the correct HTTP endpoint configured

API Tools

Market Data Tools

  • get_candles - Historical candle data for a symbol
  • get_bulk_candles - Multi-timeframe candle data
  • get_accounts - All trading accounts
  • get_account - Specific account by number
  • get_positions - All open positions
  • get_orders - All pending orders

Trading Tools

  • open_order - Create new trading order
  • modify_order - Update pending order
  • cancel_order - Cancel pending order
  • close_position - Close open position
  • modify_position - Update position SL/TP
  • get_command_queue - View pending commands
  • get_handler_queue - View command results

from github.com/Yumin-Kim/hts-mcp-server

Установка HTS MetaTrader5 Trading

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/Yumin-Kim/hts-mcp-server

FAQ

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

Compare HTS MetaTrader5 Trading with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai