MCP servers for Gemini CLI

How to add an MCP server

  • Put servers under mcpServers. Local servers take command, args, and env.
  • Remote servers take httpUrl for streamable HTTP, or url for SSE, plus optional headers.