A Gemini CLI extension that installs the Gemini API Documentation MCP, providing your AI agent with real-time access to the official Gemini API documentation, including best practices, code examples, and model capabilities.
Gemini API Docs MCP Extension for Gemini CLI
This is a Gemini CLI extension that integrates the Gemini API Documentation MCP, providing your AI agent with real-time access to the official Gemini API documentation, including best practices, code examples, and model capabilities.
The purpose of this extension is to facilitate installation of the Gemini API Documentation MCP server into Gemini CLI using the standard extension installation mechanism.
One-Line Installation
To install this extension into your Gemini CLI, run:
gemini extensions install https://github.com/derailed-dash/gemini-api-docs-mcp-ext
Once installed, simply start the Gemini CLI and run /mcp to verify the gemini-api-docs-mcp.dev tools are loaded.
What This Extension Does
By providing the agent with a direct line to the official documentation, this extension enables the Gemini CLI to:
- Retrieve the latest information on Gemini models (Flash, Pro, etc.)
- Understand Gemini API features like Context Caching, Function Calling, and Structured Outputs
- Get up-to-date SDK usage examples for Python, Node.js, Go, and more
- Stay informed about the latest documentation updates and coding standards
This makes the extension incredibly useful for developers building applications with Gemini, ensuring the AI agent providing help has the most accurate and current context available.
How It Works
This extension is a lightweight wrapper that configures the Gemini CLI to use the gemini-api-docs-mcp.dev server. It uses the Model Context Protocol (MCP) to allow Gemini to "search" and "read" official documentation as needed.
Documentation Reference
For more information on building coding agents and using MCP with Gemini, refer to the official documentation: Build coding agents with Gemini
Acknowledgements
This extension is a wrapper around the documentation search capabilities provided by Google. Full credit for the documentation and the underlying MCP server goes to the Google Gemini team.