Finance · Developer Tools

Metatrader MCP Server logo

Metatrader MCP Server

ariadng/metatrader-mcp-server

Let AI assistants trade for you using natural language.

Install

pip install metatrader-mcp-server

Client configuration

{
  "mcpServers": {
    "metatrader": {
      "command": "metatrader-mcp-server",
      "args": [
        "--login",
        "YOUR_MT5_LOGIN",
        "--password",
        "<value>",
        "--server",
        "YOUR_MT5_SERVER",
        "--transport",
        "stdio"
      ]
    }
  }
}

Environment variables

LOGINPASSWORDSERVER
GitHub stars
9
Author
@ariadng
Category
Finance, Developer Tools
License
MIT
Updated
Oct 6, 2026

Features

  • Natural Language Trading - Talk to AI in plain English to execute trades

  • Multi-AI Support - Works with Claude Desktop, ChatGPT (via Open WebUI), and more

  • Full Market Access - Get real-time prices, historical data, and symbol information

  • Complete Account Control - Check balance, equity, margin, and trading statistics

  • Order Management - Place, modify, and close orders with simple commands

  • Secure - All credentials stay on your machine

  • Flexible Interfaces - Use as MCP server, REST API, or WebSocket stream

  • Well Documented - Comprehensive guides and examples

Tools (23)

  • get_account_info

    Get balance, equity, profit, margin level, leverage, currency

  • get_symbol_price

    Get current bid/ask price for a symbol

  • get_candles_latest

    Get recent price candles (OHLCV data)

  • get_candles_by_date

    Get historical candles for a date range

  • get_symbol_info

    Get detailed symbol information

  • place_market_order

    Execute instant BUY/SELL orders

  • place_pending_order

    Place limit/stop orders for future execution

  • modify_position

    Update stop loss or take profit

  • modify_pending_order

    Modify pending order parameters

  • get_all_positions

    View all open positions

  • get_positions_by_symbol

    Filter positions by trading pair

  • get_positions_by_id

    Get specific position details

  • close_position

    Close a specific position

  • close_all_positions

    Close all open positions

  • close_all_positions_by_symbol

    Close all positions for a symbol

  • close_all_profitable_positions

    Close only winning trades

  • close_all_losing_positions

    Close only losing trades

  • get_pending_orders_by_symbol

    Filter pending orders by symbol

  • cancel_pending_order

    Cancel a specific pending order

  • cancel_all_pending_orders

    Cancel all pending orders

  • cancel_pending_orders_by_symbol

    Cancel pending orders for a symbol

  • get_deals

    Get historical completed trades

  • get_orders

    Get historical order records

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
Stripe Agent Toolkit logo

Stripe Agent Toolkit

stripe/agent-toolkit

677

It contains a collection of SDKs to help you integrate Stripe with LLMs and agent frameworks, including.

Finance
Awesome Web3 MCP Servers logo

Awesome Web3 MCP Servers

demcp/awesome-web3-mcp-servers

405

MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.

Finance
Financial Datasets logo

Financial Datasets

financial-datasets/mcp-server

225

This is a Model Context Protocol (MCP) server that provides access to stock market data from Financial Datasets.

Finance
lyraios logo

lyraios

GalaxyLLMCI/lyraios

216

LYRAI is a Model Context Protocol (MCP) operating system for multi-AI AGENTs designed to extend the functionality of AI applications (such as Claude Desktop and Cursor) by enabling them to interact with financial networks and blockchain public chains.

Finance
EVM Blockchain logo

EVM Blockchain

mcpdotdirect/evm-mcp-server

216

A comprehensive Model Context Protocol (MCP) server that provides blockchain services across 60+ EVM-compatible networks. This server enables AI agents to interact with Ethereum, Optimism, Arbitrum, Base, Polygon, and many other EVM chains with a unified interface through 22 tools and 10 AI-guided prompts.

Finance
longport logo

longport

longportapp/openapi

206

Longport OpenAPI provides programmatic quote trading interfaces for investors with research and development capabilities and assists them to build trading or quote strategy analysis tools based on their own investment strategies. The functions fall into the following categories.

Finance