Gemini CLI MCP Config Not Detected (0.1.13, Windows 11, All Methods Tried)
Summary: Gemini CLI (@google/gemini-cli v0.1.13, installed via npm and from source) does not detect any MCP servers configured in settings.json, regardless of whether the config file is placed in the user home directory, the project root, or the cloned CLI repo root.
System:
Windows 11
Node.js v22.x
Gemini CLI v0.1.13 (tried global install, local source build, npm link)
Same behavior in PowerShell, VS Code Terminal
Steps to Reproduce:
Create a .gemini/settings.json file with the following content in:
C:\Users\Julia.gemini\settings.json
D:\Gemini-Playground.gemini\settings.json
D:\Gemini-Playground\gemini-cli.gemini\settings.json
{ "servers": { "context7": { "type": "stdio", "command": "npx", "args": [ "-y", "@upstash/context7-mcp" ] } }, "inputs": [], "theme": "Default", "selectedAuthType": "vertex-ai" }
Run gemini (or node bundle/gemini.js) from the respective directory.
Run /mcp or check startup messages.
Expected: CLI lists the configured MCP server.
Actual: Always displays:
No MCP servers configured. Opening documentation in your browser: https://goo.gle/gemini-cli-docs-mcp
Other Info:
JSON is validated with JSONLint.
No environment variables override the config location.
Node’s os.homedir() points to the expected user directory.
Issue persists with different CLI versions, fresh npm install, and direct source build.
Screenshots:
Exactly the same issue (even though I'm on a Mac) since the first version of this tool, and it's why I don't use it!
I tried placing this settings file everywhere, but no luck—it's ignored. I know that this file is correct as it works with Claude and Cursor.
It's a shame that we can't provide the MCP config file on the command line, like we can with Claude Code:
claude --mcp-config mcp-dev.json
This would be very useful to first avoid this issue and second, to use different configs for different purposes.
Found possible duplicate issues:
- #3762: (#0.9382035732269287)
- #3406: (#0.9339634776115417)
- #4273: (#0.9278573393821716)
@gsquared94 You're right; there are quite a few duplicate issues. I believe this one should be closed. In my case, after performing a full uninstall and a thorough cleanup—removing everything related to Gemini from my computer—and starting with a fresh "settings.json," it's working. The MCP servers are now visible to gemini-cli. I'm not sure if it was something on my end, my computer, or a recent update, but the issue is resolved for me.
I guess looks fine