MCP Catalogs
Home

mcp-metatrader5-server

by Qoyyuum·133·Score 48

MCP server for MetaTrader 5 trading platform that provides AI assistants with market data and trading capabilities.

financedeveloper-toolsai-llm
51
Forks
4
Open issues
1 mo ago
Last commit
2d ago
Indexed

Overview

This MCP server enables AI assistants to interact with MetaTrader 5, a popular trading platform. It provides tools for accessing market data, placing and managing trades, and analyzing trading history. The server supports both stdio and HTTP transport modes, making it compatible with various MCP clients like Claude Desktop. It's built with Python using FastMCP framework and has a well-structured API reference with example workflows.

Try asking AI

After installing, here are 7 things you can ask your AI assistant:

you:AI-powered trading assistants that can analyze market data and execute trades
you:Automated trading systems that monitor markets and execute trades based on conditions
you:Risk management tools that analyze positions and trading history
you:Market research bots that collect and analyze historical market data
you:What platforms does MetaTrader 5 run on?
you:Can I use this server with other MCP clients besides Claude Desktop?
you:What data can I access through this MCP server?

When to choose this

Choose this server if you need AI integration with MetaTrader 5 for automated trading or market analysis, especially if you're already using Python for development.

When NOT to choose this

Don't choose this if you're not using MetaTrader 5, as it's specifically designed for this platform and requires Windows installation.

Tools this server exposes

12 tools extracted from the README
  • initialize

    Initialize the MT5 terminal connection

  • login

    Log in to a MetaTrader 5 trading account

  • shutdown

    Close the connection to the MT5 terminal

  • get_symbols

    Get all available trading symbols

  • get_symbol_info

    Get information about a specific trading symbol

  • get_symbol_info_tick

    Get the latest tick data for a symbol

  • copy_rates_from_pos

    Get historical price bars from a specific position

  • order_send

    Send a trade order to the server

  • order_check

    Check if an order can be placed with specified parameters

  • positions_get

    Get all open trading positions

  • orders_get

    Get all active orders

  • history_orders_get

    Get historical order data

Comparable tools

tradingview-mcpib-kraken-mcpquantconnect-mcpalpaca-mcp

Installation

Installation

From PyPI (Recommended)
uvx --from mcp-metatrader5-server mt5mcp
From Source
git clone https://github.com/Qoyyuum/mcp-metatrader5-server.git
cd mcp-metatrader5-server
uv sync
uv run mt5mcp
Claude Desktop Configuration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-metatrader5-server": {
      "command": "uvx",
      "args": [
        "--from",
        "mcp-metatrader5-server",
        "mt5mcp"
      ]
    }
  }
}

FAQ

What platforms does MetaTrader 5 run on?
MetaTrader 5 currently runs on Windows. The MCP server must be connected to a Windows machine with MetaTrader 5 installed.
Can I use this server with other MCP clients besides Claude Desktop?
Yes, the server supports both stdio and HTTP transport modes, making it compatible with various MCP clients including Claude Code, Cursor, Gemini CLI, and others.
What data can I access through this MCP server?
You can access market data (symbols, rates, ticks), place and manage trades, and analyze trading history. The server provides comprehensive tools for both data retrieval and trading operations.

Compare mcp-metatrader5-server with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.