Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

metatrader-mcp-server
Model Context Protocol (MCP) to enable AI LLMs to trade using MetaTrader platform
5
Github Watches
0
Github Forks
5
Github Stars
MetaTrader MCP Server
This is a Model Context Protocol (MCP) server built with Python to enable AI LLMs to trade using MetaTrader platform.
Disclaimer
Financial trading involves significant risk, and the developers of this package disclaim any liability for any losses or profits; this package is provided solely to facilitate MetaTrader 5 trade executions via AI LLMs using the Model Context Protocol (MCP). By using this package, you assume all risks and agree not to hold the developers liable or to initiate any legal action for any damages, losses, or profits.
Updates
- April 23, 2025: Published to PyPi (0.2.0)
- April 16, 2025: We have our first minor version release (0.1.0)
Installation Guide
Make sure you have Python version 3.10+ and MetaTrader 5 terminal installed in your workspace. Then install the package:
pip install metatrader-mcp-server
Then you need to enable algorithmic trading on MetaTrader 5 terminal. Open Tools > Options
and check Allow algorithmic trading
.
Claude Desktop Integration
To use this package to enable trading operations via Claude Desktop app, please add this into your Claude Desktop configuration:
{
"mcpServers": {
"metatrader": {
"command": "metatrader-mcp-server",
"args": [
"--login", "<YOUR_MT5_LOGIN>",
"--password", "<YOUR_MT5_PASSWORD>",
"--server", "<YOUR_MT5_SERVER>"
]
}
}
}
Other LLMs using Open WebUI
You can use this MCP server with other LLMs such as OpenAI's GPT by using its HTTP server and Open WebUI.
To start, make sure you have installed the package. Then, run the server:
metatrader-http-server --login <YOUR_MT5_LOGIN> --password <YOUR_MT5_PASSWORD> --server <YOUR_MT5_SERVER> --host 0.0.0.0 --port 8000
It will launch HTTP server locally on port 8000 and automatically launch MetaTrader 5 terminal.
On Open WebUI settings page, navigate to Tools menu. Then click plus button on "Manage Tool Servers". Add http://localhost:8000
(or whatever you set your port is).
If all is well, you can now access the tools via chat using available models, such as gpt-4o
or o4-mini
.
Project Roadmap
For full version checklist, see version-checklist.md.
Task | Status | Done | Tested |
---|---|---|---|
Connect to MetaTrader 5 terminal | Finished | ✅ | ✅ |
Develop MetaTrader client module | Finished | ✅ | ✅ |
Develop MCP Server module | Finished | ✅ | ✅ |
Implement MCP tools | Finished | ✅ | ✅ |
Publish to PyPi | Finished | ✅ | ✅ |
Claude Desktop integration | Finished | ✅ | ✅ |
OpenAPI server | Finished | ✅ | - |
Open WebUI integration | - | - | - |
Developer Documentation
For developers, see Developer's Documentation.
相关推荐
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.
You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!
Carbon footprint calculations breakdown and advices on how to reduce it
Text your favorite pet, after answering 10 questions about their everyday lives!
Best-in-class AI domain names scoring engine and availability checker. Brandability, domain worth, root keywords and more.
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
an easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.
PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).
⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need
✨ 易上手的多平台 LLM 聊天机器人及开发框架 ✨ 平台支持 QQ、QQ频道、Telegram、微信、企微、飞书、钉钉 | 知识库、MCP 服务器、OpenAI、DeepSeek、Gemini、硅基流动、月之暗面、Ollama、OneAPI、Dify 等。 WebUI。
Reviews

user_l37Vvjol
As a dedicated user of the metatrader-mcp-server, I am incredibly impressed with its seamless integration and powerful features. Developed by the brilliant ariadng, this tool has significantly enhanced my trading efficiency. The intuitive interface and reliable performance make it stand out from other similar services. Highly recommended for anyone serious about trading!