MetaTrader 5 MCP Bridge for VS Code
io.github.vincentwongso/mt5-trading-mcp
Let an AI agent read and trade a MetaTrader 5 account over MCP, behind a human-approval gate.
client:VS Code
transport:stdio
runtime:pypi
Install MetaTrader 5 MCP Bridge in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "mt5-login",
"description": "MT5_LOGIN",
"password": true
},
{
"type": "promptString",
"id": "mt5-password",
"description": "MT5_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "mt5-server",
"description": "MT5_SERVER",
"password": true
}
],
"servers": {
"mt5-trading-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"mt5-trading-mcp"
],
"env": {
"MT5_LOGIN": "${input:mt5-login}",
"MT5_PASSWORD": "${input:mt5-password}",
"MT5_SERVER": "${input:mt5-server}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs