Skip to content
gemini-mcp-integration logo

Gemini MCP Integration

gemini-mcp-integration

Expert guide for Model Context Protocol (MCP) integration with Gemini CLI. Covers MCP server configuration (HTTP, SSE, Stdio), connection management, and tool permissions. Use when adding MCP servers to Gemini, configuring transports, troubleshooting MCP connections, or managing tool permissions....

SKILL.md

Full skill instructions

Gemini MCP Integration

🚨 MANDATORY: Invoke gemini-cli-docs First

STOP - Before providing ANY response about Gemini MCP:

  1. INVOKE gemini-cli-docs skill
  2. QUERY for the specific MCP topic
  3. BASE all responses EXCLUSIVELY on official documentation loaded

Overview

Expert skill for connecting and managing Model Context Protocol (MCP) servers within the Gemini CLI ecosystem.

When to Use This Skill

Keywords: MCP, model context protocol, mcp servers, mcp config, gemini mcp, stdio transport, sse transport, mcp tool permissions, mcp debugging

Use this skill when:

  • Adding new MCP servers via settings.json or CLI (gemini mcp add)
  • Configuring transports: httpUrl, url (SSE), or command (Stdio)
  • Troubleshooting MCP connection states (CONNECTING, DISCONNECTED)
  • Managing MCP tool permissions (Trust vs Ask)
  • Integrating local scripts as MCP servers

MCP Server Configuration

MCP servers are defined in the mcpServers object in settings.json.

Transport Types

  1. Stdio (command): Runs a local executable. Best for local scripts/​tools.

    "local-server": { "command": "node", "args": ["server.js"] }
    
  2. HTTP (httpUrl): Connects via standard HTTP.

  3. SSE (url): Server-Sent Events for streaming updates.

Keyword Registry (Delegates to gemini-cli-docs)

TopicQuery Keywords
Adding Serversgemini mcp add command, mcpServers settings
Transportsmcp transport types, stdio vs sse mcp
Permissionsmcp tool permissions, trust mcp server
Troubleshootingmcp connection error, debug mcp server

Quick Decision Tree

What do you want to do?

  1. Connect a Local Tool -> Query gemini-cli-docs: "configure stdio mcp server"
  2. Connect a Remote API -> Query gemini-cli-docs: "configure http mcp server"
  3. Trust a Server -> Query gemini-cli-docs: "mcp server trust settings"
  4. List Tools -> Query gemini-cli-docs: "list mcp tools command"
  5. Debug Connection -> Query gemini-cli-docs: "troubleshoot mcp connection"

Common Commands

  • gemini mcp add - Interactive wizard to add a server.
  • /​mcp - List connected servers and their status.
  • gemini --debug - View raw MCP connection logs (essential for troubleshooting connection issues).

Test Scenarios

Scenario 1: Add MCP Server

Query: "How do I add an MCP server to Gemini CLI?" Expected Behavior:

  • Skill activates on "MCP" or "mcp servers"
  • Delegates to gemini-cli-docs for configuration Success Criteria: User receives mcpServers settings.json structure

Scenario 2: Configure Transport

Query: "What transport should I use for my MCP server?" Expected Behavior:

  • Skill activates on "mcp transport"
  • Provides comparison of stdio, HTTP, SSE Success Criteria: User receives transport selection guidance

Scenario 3: Debug Connection

Query: "My MCP server isn't connecting to Gemini" Expected Behavior:

  • Skill activates on "mcp connection error"
  • Provides debugging steps with --debug flag Success Criteria: User receives troubleshooting workflow

References

Official Documentation: Query gemini-cli-docs for:

  • "mcp servers"
  • "mcp configuration"

Version History

  • v1.1.0 (2025-12-01): Added Test Scenarios section
  • v1.0.0 (2025-11-25): Initial release

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View