Let an AI agent read and trade a MetaTrader 5 account over MCP, behind a human-approval gate.
Connect Runs on your machine
claude mcp add mt5-trading-mcp -e MT5_LOGIN=<MT5_LOGIN> -e MT5_PASSWORD=<MT5_PASSWORD> -e MT5_SERVER=<MT5_SERVER> -- uvx mt5-trading-mcp==1.4.2
{
"mcpServers": {
"mt5-trading-mcp": {
"command": "uvx",
"args": [
"mt5-trading-mcp==1.4.2"
],
"env": {
"MT5_LOGIN": "<MT5_LOGIN>",
"MT5_PASSWORD": "<MT5_PASSWORD>",
"MT5_SERVER": "<MT5_SERVER>"
}
}
}
}
{
"mcpServers": {
"mt5-trading-mcp": {
"command": "uvx",
"args": [
"mt5-trading-mcp==1.4.2"
],
"env": {
"MT5_LOGIN": "<MT5_LOGIN>",
"MT5_PASSWORD": "<MT5_PASSWORD>",
"MT5_SERVER": "<MT5_SERVER>"
}
}
}
}
{
"servers": {
"mt5-trading-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"mt5-trading-mcp==1.4.2"
],
"env": {
"MT5_LOGIN": "<MT5_LOGIN>",
"MT5_PASSWORD": "<MT5_PASSWORD>",
"MT5_SERVER": "<MT5_SERVER>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
MT5_LOGINOptional | MetaTrader 5 account number. Optional: overrides the config file and an already-logged-in terminal. |
MT5_PASSWORDOptional, secret | MetaTrader 5 account password. Env-only so it never lands in a config file. Optional when the terminal is already logged in. |
MT5_SERVEROptional | MetaTrader 5 broker/trade server name. Optional: overrides the config file and an already-logged-in terminal. |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 25 Jun 2026 |
| Last updated | 25 Jun 2026 |
| Registry name | io.github.vincentwongso/mt5-trading-mcp |
More finance and crypto servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
