Skip to content
Gemini CLI

MTContext for Gemini CLI

io.github.mtcontext/mtcontext

Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.

client:Gemini CLI transport:streamable-http

Install MTContext in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "mtcontext": {
      "httpUrl": "https://mcp.mtcontext.com/mcp/v1"
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

MTContext in other clients