Gemini CLI: remote MCP server won't connect (httpUrl vs url)
Gemini CLI
The error
Server shows DISCONNECTED in /mcp list • a Streamable HTTP /mcp URL fails while the same URL works in other apps
Why it happens
In Gemini CLI's settings.json, url means an SSE endpoint and httpUrl means Streamable HTTP. Most hosted servers now only speak Streamable HTTP at a /mcp path, so an entry copied from Cursor with url makes Gemini CLI use the wrong transport.
How to fix it
- Use httpUrl for /mcp endpoints
ChangeurltohttpUrlfor Streamable HTTP servers.{ "mcpServers": { "linear": { "httpUrl": "https://mcp.linear.app/mcp" } } } - Or add it with the CLI
--transport httpwriteshttpUrlfor you. Add--scope userto use it in every project (the default is the current project).gemini mcp add --transport http --scope user linear https://mcp.linear.app/mcp - Check the status and sign in
Rungemini mcp listto see connection errors, then/mcp auth NAMEinside Gemini CLI if the server uses OAuth.gemini mcp list
Related servers
Productivity● Vendor-hosted
Linear
Linear's official hosted MCP server for finding, creating and updating Linear issues, projects, comments and documents. It uses Streamable HTTP at htt
Hosted by the vendor · no install · 🔑 auth
Docs & Knowledge● Maintained
Context7
Upstash Context7: up-to-date library documentation for AI coding agents (local @upstash/context7-mcp or hosted mcp.context7.com/mcp). Version 4.9.0 (N
★ 65.7k · updated 2026-11-30 · 🔑 auth
Productivity● Maintained
Atlassian (Jira & Confluence)
Atlassian's official hosted MCP server for Jira, Confluence, Jira Service Management, Bitbucket, Compass and Loom. Atlassian recommends the v2 endpoin
★ 1.2k · updated 2026-11-14 · 🔑 auth