by Qoyyuum
A Model Context Protocol (MCP) server for interacting with the MetaTrader 5 trading platform. This server provides AI assistants with tools and resources to access market data, perform trading operations, and analyze trading history.
# Add to your Claude Code skills
git clone https://github.com/Qoyyuum/mcp-metatrader5-serverA Model Context Protocol (MCP) server for MetaTrader 5, allowing AI assistants to interact with the MetaTrader 5 platform for trading and market data analysis. Documentation
uvx --from mcp-metatrader5-server mt5mcp
git clone https://github.com/Qoyyuum/mcp-metatrader5-server.git
cd mcp-metatrader5-server
uv sync
uv run mt5mcp
No comments yet. Be the first to share your thoughts!
The server runs in stdio mode by default for MCP clients like Claude Desktop:
uv run mt5mcp
For testing with HTTP transport, create a .env file:
MT5_MCP_TRANSPORT=http
MT5_MCP_HOST=127.0.0.1
MT5_MCP_PORT=8000
Then run:
uv run mt5mcp
The server will start at http://127.0.0.1:8000
uvx (Simplest - No Installation Required) ⭐Add this configuration to your MCP client's config file:
For Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"mcp-metatrader5-server": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Qoyyuum/mcp-metatrader5-server",
"mt5mcp"
]
}
}
}
git clone https://github.com/Qoyyuum/mcp-metatrader5-server
cd mcp-metatrader5-server
After git cloning the repo, run the following commands:
For MCP JSON format
uv run fastmcp install mcp-json src/mcp_mt5/main.py
For Claude Desktop
uv run fastmcp install claude-desktop src/mcp_mt5/main.py
For Claude Code
uv run fastmcp install claude-code src/mcp_mt5/main.py
For Cursor
uv run fastmcp install cursor src/mcp_mt5/main.py
For Gemini CLI
uv run fastmcp install gemini-cli src/mcp_mt5/main.py
Add this to your claude_desktop_config.json or whatever LLM config file:
{
"mcpServers": {
...