metatrader-mcp-server

MCP.Pizza Chef: ariadng

Instead of clicking through the MetaTrader 5 terminal, you can ask in plain words for your balance, your open positions, live prices, or a specific trade, and it happens on your account. It works with Claude Desktop and, through Open WebUI, with ChatGPT and other models. You need Python, the MetaTrader 5 program, and a demo or live account login; those credentials stay on your machine. Real money is at risk, so start on a demo account.

Data
Other

Use This MCP server To

Check my account balance and open positions Buy a small position in EUR/USD by asking Close every position that is currently profitable Pull recent price history for a symbol I follow Adjust the stop loss on a trade I already have Practice all of this safely on a demo account

README

MetaTrader MCP Server


PyPI version Python 3.10+ License: MIT

Let AI assistants trade for you using natural language

MetaTrader MCP Server



📑 Table of Contents


🌟 What is This?

MetaTrader MCP Server is a bridge that connects AI assistants (like Claude, ChatGPT) to the MetaTrader 5 trading platform. Instead of clicking buttons, you can simply tell your AI assistant what to do:

"Show me my account balance" "Buy 0.01 lots of EUR/USD" "Close all profitable positions"

The AI understands your request and executes it on MetaTrader 5 automatically.

How It Works

You → AI Assistant → MCP Server → MetaTrader 5 → Your Trades

metatrader-mcp-server FAQ

Which apps does it work in?
Claude Desktop directly, plus ChatGPT and other models through Open WebUI.
Do I need to buy a key or subscription?
Nothing to purchase, but you must supply your MetaTrader 5 login, password, and server name.
How hard is the setup?
Fairly involved. You install Python and the package from a terminal, turn on algorithmic trading inside MetaTrader 5, then paste your login details into your assistant's settings.
Can I use this to place a real trade just by asking?
Yes — it can open, change, and close live orders, which is exactly why you should test on a demo account first.
Are my login details sent anywhere?
No. The authors state that credentials stay on your own machine.
What are the risks?
Trading can lose money, and the authors accept no liability for any outcome. Nothing here is financial advice.
Does MetaTrader 5 need to be running?
Yes. The program must be installed with algorithmic trading enabled, and the docs assume a Windows machine for the remote setup.