Gemini Docs MCP Server
Gemini Docs MCP Server
An MCP (Model Context Protocol) server that provides tools to search and fetch Google's Gemini API documentation.
Features
Search Documentation: Search through the Gemini API documentation index to find relevant pages
Fetch Documentation: Fetch and parse specific documentation pages with structured content extraction
Installation
npm install
npm run buildUsage
As an MCP Server (stdio)
node dist/index.jsConfiguration for Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"gemini-docs": {
"command": "node",
"args": ["/path/to/gemini-docs-mcp/dist/index.js"]
}
}
}Tools
search_gemini_docs
Search the Gemini API documentation for relevant pages.
Parameters:
query(string, required): Search query (e.g., "function calling", "embeddings")max_results(number, optional): Maximum results to return (1-20, default: 10)response_format(string, optional): Output format - "markdown" or "json" (default: "markdown")
Example:
{
"query": "function calling",
"max_results": 5,
"response_format": "json"
}fetch_gemini_doc
Fetch and parse a specific Gemini API documentation page.
Parameters:
path(string, required): Documentation path (e.g., "embeddings", "function-calling"). Use empty string for the main overview page.response_format(string, optional): Output format - "markdown" or "json" (default: "markdown")
Common paths:
""- Main overview pagequickstart- Getting started guidefunction-calling- Function calling / tool useembeddings- Text embeddingsstructured-output- JSON structured outputtext-generation- Text generation basicsimage-understanding- Vision / image analysislive- Live API (real-time streaming)api-key- API key setupmodels- Available models
Example:
{
"path": "function-calling",
"response_format": "markdown"
}Development
# Install dependencies
npm install
# Development mode with auto-reload
npm run dev
# Build
npm run build
# Run tests
npm run testLatest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LeomaiaJr/gemini-docs-skills'
If you have feedback or need assistance with the MCP directory API, please join our Discord server