Documentation/Extensions

Extensions & MCP

New

Extend Gemini CLI with powerful Model Context Protocol (MCP) servers and custom extensions. Connect external tools, services, and APIs to enhance your AI workflow.

Model Context Protocol (MCP)

MCP is a standardized protocol that allows Gemini CLI to communicate with external tools and services. It enables dynamic tool discovery and execution, making your CLI infinitely extensible.

Dynamic Tools

Discover and use tools at runtime

External Services

Connect to APIs and databases

Real-time

Live data and instant responses

Popular MCP Servers

GitHub MCP Server

Interact with GitHub repositories, issues, and pull requests

Custom Python Server

Create your own tools with Python

Configuration Examples

Multiple Server Setup

Configure multiple MCP servers for different purposes

HTTP MCP Server

Connect to HTTP-based MCP servers

Creating Extensions

Extension Structure

Create a gemini-extension.json file to define your extension

Get started with extensions