Provides tools for searching and retrieving Google Gemini API documentation, including full-text search across documentation pages, listing available capabilities, and accessing current model documentation.
Gemini Docs MCP Server
An local STDIO MCP server that provides tools to search and retrieve Google Gemini API documentation.
Search Documentation: Full-text search across all Gemini documentation pages.
Get Capabilities: List available documentation pages or retrieve content for a specific page.
Get Current Model: Quickly access documentation for current Gemini models.
Automatic Updates: Scrapes and updates documentation on server startup.
How it Works
Ingestion: On startup, the server fetches
https://ai.google.dev/gemini-api/docs/llms.txtto get a list of all available documentation pages.Processing: It then concurrently fetches and processes each page, extracting the text content.
Indexing: The processed content is stored in a local SQLite database with a Full-Text Search (FTS5) index for efficient querying.
Searching: When you use the
search_documentationtool, the server queries this SQLite database to find the most relevant documentation pages.
Installation
Option 1: Use uvx (Recommended)
You can use uvx to run the server directly without explicit installation. This is the easiest way to get started.
Option 2: Install directly from GitHub
You can install the package directly from GitHub using pip:
Option 3: Manual Installation (for development)
Usage
If you installed via pip (Option 2 or 3), run the server using:
This will start the MCP server over stdio. It will immediately begin ingesting documentation, which might take a few moments on the first run.
Configuration
The database is stored at ~/.mcp/gemini-api-docs/database.db by default. You can override this by setting the GEMINI_DOCS_DB_PATH environment variable.
Using with an MCP Client
Configure your MCP client to run the gemini-docs-mcp command.
Tools
search_documentation(queries: list[str]): Performs a full-text search on Gemini documentation for the given list of queries (max 3).get_capability_page(capability: str = None): Get a list of capabilities or content for a specific one.get_current_model(): Get documentation for current Gemini models.
License
MIT
local-only server
The server can only run on the client's local machine because it depends on local resources.
Provides tools to search and retrieve Google Gemini API documentation with full-text search capabilities and automatic documentation updates stored in a local SQLite database.