---
title: "How to add MCP Servers to Gemini CLI with Docker MCP Toolkit"
description: "Gemini CLI can be connected to Docker MCP Toolkit so it can drive containerized MCP servers from the terminal."
url: "https://swe.quest/articles/how-to-add-mcp-servers-to-gemini-cli-with-docker-mcp-toolkit-1fe07b53cff88339"
canonical: "https://www.docker.com/blog/how-to-set-up-gemini-cli-with-mcp-toolkit/"
source: "Docker"
published: "2025-10-15"
difficulty: "medium"
kind: "How-to"
reading_minutes: 14
tags: ["ai-agents","testing","developer-tools","containers"]
---

# How to add MCP Servers to Gemini CLI with Docker MCP Toolkit

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-10-15, 14 min read, How-to. Original: [https://www.docker.com/blog/how-to-set-up-gemini-cli-with-mcp-toolkit/](https://www.docker.com/blog/how-to-set-up-gemini-cli-with-mcp-toolkit/)

## Summary

Gemini CLI can be connected to Docker MCP Toolkit so it can drive containerized MCP servers from the terminal. Connecting is either one click in Docker Desktop or \`docker mcp client connect gemini --global\`, which adds a Docker MCP Gateway entry to \`~/.gemini/settings.json\`. A demo pairs Playwright, GitHub and Filesystem MCP servers to automatically browser-test a sample Node e-commerce catalog app, finding performance and accessibility issues, saving screenshots and filing a GitHub issue. The claimed payoff is cutting a roughly 20-minute manual test-and-report cycle to about 30 seconds.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)

## Prerequisites

- Docker Desktop ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- Model Context Protocol basics
- npm

## Keywords

Gemini CLI, Docker MCP Toolkit, Model Context Protocol, Playwright, GitHub MCP, Docker Desktop, MCP Gateway

## Related posts

- [How to add MCP Servers to Claude Desktop with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-claude-desktop-with-docker-mcp-toolkit-2bef3464ab3fe16c.md): Docker · 2025-10-27 · Medium · 18 min read · AI agents, Containers, AI for coding, Developer tools
  Docker Desktop's MCP Toolkit connects Claude Desktop to containerized MCP servers through a single claude\_desktop\_config.json entry that runs \`docker mcp gateway run\`, a gateway that routes tool calls from Claude to whichever servers are enabled.
- [How to Add MCP Servers to Claude Code with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-claude-code-with-docker-mcp-toolkit-cc8780c7393c09aa.md): Docker · 2025-10-10 · Medium · 13 min read · AI agents, AI for coding, Developer tools, Containers
  Docker MCP Toolkit lets Claude Code reach containerized MCP servers through a single Docker MCP Gateway entry in a project's .mcp.json, connected with one click in Docker Desktop or via \`docker mcp client connect claude-code\`.
- [Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World](https://swe.quest/articles/dynamic-mcps-with-docker-stop-hardcoding-your-agents-world-a530a7120388ea63.md): Docker · 2025-11-06 · Medium · 11 min read · AI agents, LLMs, Sandboxing & isolation, Containers, Developer tools
  Docker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting.
- [How to Add MCP Servers to ChatGPT with Docker MCP Toolkit](https://swe.quest/articles/how-to-add-mcp-servers-to-chatgpt-with-docker-mcp-toolkit-8e8db1704dea266e.md): Docker · 2025-12-12 · Medium · 21 min read · AI agents, Containers, LLMs
  Docker MCP Toolkit lets ChatGPT's Developer Mode call real tools by running MCP servers in isolated containers behind a Docker MCP Gateway exposed to ChatGPT via an ngrok tunnel.
- [Simplify AI Development with the Model Context Protocol and Docker](https://swe.quest/articles/simplify-ai-development-with-the-model-context-protocol-and-docker-dd0d17fff0f71854.md): Docker · 2025-01-15 · Medium · 4 min read · Containers, AI agents, LLMs
  MCP servers can be packaged as Docker images so users can attach them to Claude Desktop with nothing but Docker Desktop installed, as Docker already does for Anthropic's reference servers in the Docker Hub mcp namespace.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
