NestDaddy

MetaTrader 5 MCP Bridge

io.github.vincentwongso/mt5-trading-mcp ยท v1.4.2

Let an AI agent read and trade a MetaTrader 5 account over MCP, behind a human-approval gate.

Connect Runs on your machine

Terminal
claude mcp add mt5-trading-mcp -e MT5_LOGIN=<MT5_LOGIN> -e MT5_PASSWORD=<MT5_PASSWORD> -e MT5_SERVER=<MT5_SERVER> -- uvx mt5-trading-mcp==1.4.2
claude_desktop_config.json
{
  "mcpServers": {
    "mt5-trading-mcp": {
      "command": "uvx",
      "args": [
        "mt5-trading-mcp==1.4.2"
      ],
      "env": {
        "MT5_LOGIN": "<MT5_LOGIN>",
        "MT5_PASSWORD": "<MT5_PASSWORD>",
        "MT5_SERVER": "<MT5_SERVER>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "mt5-trading-mcp": {
      "command": "uvx",
      "args": [
        "mt5-trading-mcp==1.4.2"
      ],
      "env": {
        "MT5_LOGIN": "<MT5_LOGIN>",
        "MT5_PASSWORD": "<MT5_PASSWORD>",
        "MT5_SERVER": "<MT5_SERVER>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mt5-trading-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mt5-trading-mcp==1.4.2"
      ],
      "env": {
        "MT5_LOGIN": "<MT5_LOGIN>",
        "MT5_PASSWORD": "<MT5_PASSWORD>",
        "MT5_SERVER": "<MT5_SERVER>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
MT5_LOGIN
Optional
MetaTrader 5 account number. Optional: overrides the config file and an already-logged-in terminal.
MT5_PASSWORD
Optional, secret
MetaTrader 5 account password. Env-only so it never lands in a config file. Optional when the terminal is already logged in.
MT5_SERVER
Optional
MetaTrader 5 broker/trade server name. Optional: overrides the config file and an already-logged-in terminal.

Details

Package[email protected] (PYPI, stdio)
First published25 Jun 2026
Last updated25 Jun 2026
Registry nameio.github.vincentwongso/mt5-trading-mcp

More finance and crypto servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.