# macOS (Apple Silicon)
curl -L -o mt5.tar.gz https://github.com/masdevid/mt5-quant/releases/latest/download/mcp-mt5-quant-macos-arm64.tar.gz
tar -xzf mt5.tar.gz
# Linux (x64)
curl -L -o mt5.tar.gz https://github.com/masdevid/mt5-quant/releases/latest/download/mcp-mt5-quant-linux-x64.tar.gz
tar -xzf mt5.tar.gzcargo build --release- Press
Cmd/Ctrl + Shift + P - Run
MCP: Add Server - Choose Workspace or User scope
- Enter server name:
mt5-quant - Enter command:
/path/to/mt5-quant/mcp-server/bin/mt5-quant
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"mt5-quant": {
"command": "/path/to/mt5-quant/mcp-server/bin/mt5-quant"
}
}
}Create the file:
mkdir -p .vscode
cat > .vscode/mcp.json << 'EOF'
{
"servers": {
"mt5-quant": {
"command": "/path/to/mt5-quant/mcp-server/bin/mt5-quant"
}
}
}
EOFcode --add-mcp '{"name":"mt5-quant","command":"/path/to/mt5-quant/mcp-server/bin/mt5-quant"}'In Copilot chat, type:
Run verify_setup
Expected output:
Wine: /Applications/MetaTrader 5.app/.../wine64
MT5 dir: ~/Library/Application Support/.../MetaTrader 5
Display: gui
Arch: arch -x86_64
| Scope | Path | Use Case |
|---|---|---|
| Workspace | .vscode/mcp.json |
Share with team via source control |
| User | ~/.vscode/mcp.json |
Personal tools across all projects |
| Dev Container | devcontainer.json → customizations.vscode.mcp |
Containerized environments |
- Open Output panel (
Cmd/Ctrl + Shift + U) - Select MCP from dropdown
- Check for connection errors
- Verify the path is absolute
The binary auto-detects its config, but you can also:
- Run
setup.shto createconfig/mt5-quant.yaml - Or let the binary auto-discover on first run
Add to .devcontainer/devcontainer.json:
{
"customizations": {
"vscode": {
"mcp": {
"servers": {
"mt5-quant": {
"command": "/path/to/mt5-quant/mcp-server/bin/mt5-quant"
}
}
}
}
}
}VS Code uses servers (not mcpServers) in the JSON structure:
{
"servers": { // ← VS Code uses "servers"
"mt5-quant": {
"command": "..."
}
}
}Other platforms use mcpServers.