mcp-metatrader5-server

mcp-metatrader5-server

13

The MetaTrader 5 MCP Server allows AI assistants to connect and interact with the MetaTrader 5 platform, facilitating trading and market data analysis. It offers features like market data access, trade management, and integration using the Model Context Protocol.

MetaTrader 5 MCP Server

A Model Context Protocol (MCP) server for MetaTrader 5, enabling AI assistants to interact with the platform for trading and market data analysis.

Features

  • Connect to MetaTrader 5 terminal
  • Access market data (symbols, rates, ticks)
  • Place and manage trades
  • Analyze trading history
  • Integrate with AI assistants through the Model Context Protocol

Requirements

  • uv
  • Python 3.11 or higher
  • MetaTrader 5 terminal installed
  • MetaTrader 5 account (demo or real)

Installation

From Source

Clone the repository and install the package.

Usage

  • Run the server in development mode
  • Utilize in Claude Desktop to manage connections and server operations

API Reference

  • Connection Management
  • Market Data Functions
  • Trading Functions

Example Workflows

  • Connecting and Getting Market Data
  • Placing a Trade