# ariadng/metatrader-mcp-server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/ariadng/metatrader-mcp-server  
**GitHub Stars:** 865  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ariadng-metatrader-mcp-server

## Description
Enable AI LLMs to execute trades using MetaTrader 5 platform

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "metatrader-mcp-server": {
    "command": "uvx",
    "args": ["metatrader-mcp-server"]
  }
}
```

## Documentation

## What ariadng/metatrader-mcp-server MCP server does

ariadng/metatrader-mcp-server MCP server provides an interface between AI assistants and MetaTrader 5. It lets an assistant retrieve account details, inspect market information, and send trading operations to an MT5 terminal. Supported use cases include checking balance and equity, reading prices and historical data, placing orders, changing existing orders, and closing positions.

The package is intended for traders, developers building trading bots or analysis tools, and analysts who need programmatic access to MT5 data. It can work with a demo or live trading account, but all trades remain the responsibility of the operator. The project explicitly warns that financial trading carries a significant risk of loss and that the software is not financial advice.

## How it works

The basic flow is an AI assistant communicating with the MCP server, which then communicates with the MetaTrader 5 terminal and account. The repository includes a trading assistant skill for Claude Code and Claude Desktop. That skill supplies structured knowledge about the 32 trading tools, output formatting, and MetaTrader 5 concepts.

Three connection styles are documented. Local Claude Desktop usage runs the MCP process through stdio. A remote deployment can run an SSE server on a Windows VPS where MT5 is installed, allowing a client to connect through an HTTP URL. The package also provides an HTTP server for Open WebUI and a separate WebSocket service that streams quote updates containing bid, ask, spread, and volume.

## Setup and configuration

Python 3.10 or newer, the MetaTrader 5 terminal, and an MT5 account are required. Account configuration uses a login number, password, and server name. Before trading, algorithmic trading must be enabled in MetaTrader 5 under Tools, Options, and Expert Advisors.

Install the package with `pip install metatrader-mcp-server`. The MCP command accepts the account credentials, transport selection, host, and port as command-line options. A custom `--path` option is available when the MT5 terminal is installed outside its usual location.

For local Claude Desktop use, add the command and its arguments to the client configuration, then restart Claude Desktop. The HTTP mode can be started with `metatrader-http-server` and inspected through its `/docs` endpoint. The quote service uses `metatrader-quote-server` and listens for WebSocket connections on port 8765 by default. The remote MCP mode uses port 8080 by default and exposes an `/sse` endpoint.

The SSE protocol does not provide authentication. Network deployments should therefore restrict access with a firewall, use an authenticated reverse proxy, or connect through an SSH tunnel.

## Tools and capabilities

The documented tool set covers:

- Reading account balance, equity, margin, and trading statistics.
- Retrieving real-time prices, historical data, and symbol information.
- Placing new trades and managing existing orders.
- Modifying orders and closing positions, including requests such as closing profitable positions.
- Streaming live tick data through WebSocket for dashboards, bots, or monitoring systems.

The included Claude skill can be installed by symlink or by copying its files into the relevant Claude skills directory. Its documented behavior includes direct trade execution without an additional confirmation step, so deployment and assistant instructions should be reviewed carefully before connecting a live account.

## Limitations and notes

The integration depends on a running MetaTrader 5 terminal and valid account credentials.

Credentials are passed through command-line configuration in the documented examples, and the project states that credentials remain on the local machine. Remote exposure requires additional network controls because MCP itself does not authenticate clients. Finally, automated trading can produce financial losses; users are responsible for every trade and outcome made through the system.

_Full upstream README: https://allmcps.com/mcp/ariadng-metatrader-mcp-server/readme_

