MCP.so
登录

Gemini MCP Server

@chew-z

基本信息

分类

AI 与智能体

传输方式

stdio

作者

chew-z

关于 Gemini MCP Server

MCP (Model Control Protocol) server integrating with Google's Gemini API

Gemini MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Gemini MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Gemini MCP Server?

Gemini MCP Server is a Model Control Protocol (MCP) server that integrates with Google's Gemini API. Written in Go and compiled to a single self-contained binary, it provides tools for code analysis, general queries, and search with grounding. It is designed for developers using MCP-compatible clients like Claude Desktop.

How to use Gemini MCP Server?

Clone the repository and build the binary with go build -o mcp-gemini. Set the GEMINI_API_KEY environment variable and optionally specify a model. Configure the server in your MCP client (e.g., Claude Desktop) by adding a JSON entry with the binary path and environment variables (all config must be in the env section of the client configuration, not as system environment variables).

Key features of Gemini MCP Server

  • Single self-contained binary with no dependencies
  • Dynamic model access: fetches latest Gemini models at startup
  • Advanced caching system with configurable TTL
  • Seamless file integration with intelligent MIME detection
  • Robust error handling, automatic retries, and graceful degradation
  • Full support for code analysis, general queries, and search with grounding

Use cases of Gemini MCP Server

  • Code analysis and review with file attachments and caching
  • Creative writing with custom system prompts
  • Factual research using Google Search integration
  • Complex reasoning tasks with thinking mode enabled
  • Multi-file project analysis with cost-efficient caching

常见问题

1

What are the prerequisites to use Gemini MCP Server?

You need a Google Gemini API key and Go installed to build the binary. No additional dependencies are required.

2

How do I configure Gemini MCP Server for Claude Desktop?

Add a JSON entry to your Claude Desktop configuration file (on macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`; on Windows: `%APPDATA%\Claude\claude_desktop_config.json`) with the binary path and all environment variables (e.g., `GEMINI_API_KEY`, `GEMINI_MODEL`) inside the `env` block. System environment variables are not passed to the client.

3

What tools does Gemini MCP Server provide?

It provides three tools: `gemini_ask` for code analysis and general queries with optional file context, `gemini_search` for grounded answers with Google Search, and `gemini_models` to list all available Gemini models with capabilities and caching support.

4

How does caching work in Gemini MCP Server?

Caching is enabled via the `use_cache` parameter and a configurable `cache_ttl` (e.g., `"30m"`). Files are processed once and cached, making subsequent queries faster and reducing API costs by an estimated 40–60% for extended reviews.

5

Which Gemini models are supported?

Models are dynamically fetched from the Google API at startup. Recommended models include `gemini-2.5-pro-exp-03-25` for reasoning, `gemini-2.0-flash-001` for cached tasks, and `gemini-2.5-flash-preview-04-17` for search.

评论

AI 与智能体 分类下的更多 MCP 服务器