Model Context Protocol (MCP) to enable AI LLMs to trade using MetaTrader platform
Project description
MetaTrader MCP Server
This is a Model Context Protocol (MCP) server built with Python to enable AI LLMs to trade using MetaTrader platform.
Updates
- April 16, 2025: We have our first minor version release (0.1.0) 🎉🎉🎉
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 | On progress | - | - |
| Claude Desktop integration | - | - | - |
| Open WebUI integration | - | - | - |
Documentation
For developers, see Developer's Documentation.
Development Instructions
Creating Virtual Environment
uv venv
Then, you need to enable the environment in the Terminal.
Linux or macOS:
source .venv/bin/activate
Windows (PowerShell):
.venv\Scripts\Activate.ps1
Installing Package
pip install metatrader-mcp-server
Building Package
python -m build
The build result will be in dist/ folder.
Testing
To run the test suite and generate a comprehensive Markdown report:
pytest -s tests
Test reports will be saved in tests/reports/ with a timestamped filename.
Publishing to Test PyPI
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Enter credentials when required.
Usage
metatrader-mcp-server --login <LOGIN> --password <PASSWORD> --server <SERVER>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metatrader_mcp_server-0.2.0.tar.gz.
File metadata
- Download URL: metatrader_mcp_server-0.2.0.tar.gz
- Upload date:
- Size: 43.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2c6cc206e85d6c488190152078c366d32db8b55e7cd1d4ba3a150ffd5ee8a2c
|
|
| MD5 |
93077b1855df825fb2284d8221e5fa76
|
|
| BLAKE2b-256 |
12edc27d0c79c74e6788efc77dd13a490e832dafb7b81b6b6716954bd837a69b
|
File details
Details for the file metatrader_mcp_server-0.2.0-py3-none-any.whl.
File metadata
- Download URL: metatrader_mcp_server-0.2.0-py3-none-any.whl
- Upload date:
- Size: 78.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0400d135f3cc93fa88862daa5b79b923604fc15c26e41eb80ea8cefc433763ba
|
|
| MD5 |
47ac9d892742bf4362a34d34c72ea122
|
|
| BLAKE2b-256 |
8eef2b295282243d26daaca88b3eeae15e34136f2248f8c1aa32018f9a22b7b3
|