Answer: You configure MCP servers in settings.json in two main ways: through the top-level `mcpServers` object for specific server definitions, and through the `mcp` object for global settings that control server discovery and execution. Status: Confirmed Entry: tool/gemini-cli/settings/configure-mcp-server-settings Revision: 1 Digest: sha256:1722de322e488fbd (changes whenever the content changes) Timeline: Created: 2026-11-13T03:19:08Z Last changed: 2026-11-13T03:19:08Z Last verified: 2026-11-20T12:54:09Z Next check: 2026-11-21T12:54:09Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of server-specific object | mcpServers | [1] | 2026-11-20 global settings object | mcp | [1] | 2026-11-20 global server command | mcp.serverCommand | [1] | 2026-11-20 allowed servers setting | mcp.allowed | [1] | 2026-11-20 excluded servers setting | mcp.excluded | [1] | 2026-11-20 Sources: [1] Google. "MCP servers with Gemini CLI". https://geminicli.com/docs/tools/mcp-server.md Role: primary. Accessed: 2026-11-20T12:54:09Z Quote: "The `mcpServers` object is where you define each individual MCP server you want" (Supports: server-specific object) Quote: "The `mcp` object in your `settings.json` lets you define global rules for all" (Supports: global settings object) Quote: "**`mcp.serverCommand`** (string): A global command to start an MCP server." (Supports: global server command) Quote: "**`mcp.allowed`** (array of strings): A list of MCP server names to allow." (Supports: allowed servers setting) Quote: "**`mcp.excluded`** (array of strings): A list of MCP server names to exclude." (Supports: excluded servers setting) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 4aefc4dc30c329cbbd16ca24fe294fb0d91ec87e8f61baca7116c19b6a1a14fd (captured 2026-11-13T03:19:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:19:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:54:09Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:54:09Z Last attempt: 2026-11-20T12:54:09Z Notes and limitations: Extracted automatically from a single official source (section "Configure the MCP server in settings.json"). Related: https://latestn.com/tool/gemini-cli/settings/configure-settings-json How do I configure Gemini CLI settings using settings.json files? https://latestn.com/tool/gemini-cli/settings/configure-telemetry-settings How do I configure Gemini CLI telemetry settings in settings.json? https://latestn.com/tool/gemini-cli/settings/custom-theme How do I create a custom color theme for Gemini CLI? https://latestn.com/tool/gemini-cli/settings/configuration-precedence What is the precedence order of Gemini CLI configuration layers? https://latestn.com/tool/gemini-cli/settings/configure-hooks How do I configure hooks in Gemini CLI? https://latestn.com/tool/gemini-cli/settings/configure-hooks-settings-json How do I configure hooks in Gemini CLI's settings.json? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:19:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/settings/configure-mcp-server-settings/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/settings/configure-mcp-server-settings POST: https://latestn.com/dispute/tool/gemini-cli/settings/configure-mcp-server-settings with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/settings/configure-mcp-server-settings?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure an MCP server in Gemini CLI's settings.json? Revision 1, last verified 2026-11-20T12:54:09Z. https://latestn.com/tool/gemini-cli/settings/configure-mcp-server-settings (accessed 2026-11-21T10:01:05Z). @misc{LatestN_tool_gemini_cli_settings_configure_mcp_server_settings_r1, title = {How do I configure an MCP server in Gemini CLI's settings.json?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/settings/configure-mcp-server-settings}}, note = {Revision 1; digest sha256:1722de322e488fbd; last verified 2026-11-20T12:54:09Z; accessed 2026-11-21T10:01:05Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/settings/configure-mcp-server-settings