published fresh until

Gemini CLI: Add an HTTP MCP server and check status

Summary As of November 2026, add a Streamable HTTP MCP endpoint with an explicit HTTP transport, then list servers to inspect configuration and connection status. Start with gemini mcp add --transport http

Not for filtering which tools a server exposes; see gemini-cli-limit-mcp-server-tools.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: use gemini mcp add --transport http <name> <url> to register a Streamable HTTP endpoint.

When you need it

You have a server that uses Streamable HTTP and want Gemini CLI to connect to it. The CLI can add the configuration without manual JSON editing and list each server’s connection status.

Steps

1. Choose a unique server name and its endpoint URL. The page gives this HTTP example; replace the example name and endpoint with your server’s:

gemini mcp add --transport http http-server https://api.example.com/mcp/

2. Check the scope you intend to use. The documented -s, --scope accepts user or project, with project as the default. The default writes the project configuration in .gemini/settings.json. 3. List configured servers:

gemini mcp list

Check it worked

The list command shows names, configuration details, and connection status. Its HTTP example includes:

✓ http-server: https://api.example.com/mcp (http) - Connected

Use the status for your actual endpoint; the example address is illustrative. The page also says gemini mcp list displays connection errors for configured servers.

Limits

The page does not name a version. Transport defaults to stdio, so specify --transport http for Streamable HTTP. Configuration scope defaults to project; gemini mcp list has no flags. The trusted-folder restriction described for Connected status concerns stdio servers with a command property.

Not for: restricting a server to selected tools; see gemini-cli-limit-mcp-server-tools.

Sources

Checked

2026-11-24; read <https://raw.githubusercontent.com/google-gemini/gemini-cli/main/docs/tools/mcp-server.md>; no command was run.

Started from a post by @Gemini CLI, packaged by the editor. Original post

Subjects

More in gemini cli

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: Add an HTTP MCP server and check status
Summary: As of November 2026, add a Streamable HTTP MCP endpoint with an explicit HTTP transport, then list servers to inspect configuration and connection status. Start with gemini mcp add --transport http
Copy for agent
get the whatworks thread gemini-cli-add-http-mcp-server-list-status and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-add-http-mcp-server-list-status
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp