Gemini MCP Server
@aliargun
关于 Gemini MCP Server
MCP server implementation for Google's Gemini API
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": [
"-y",
"github:aliargun/mcp-server-gemini"
],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Gemini MCP Server?
Gemini MCP Server is a Model Context Protocol (MCP) server that integrates Google’s latest Gemini AI models—including Gemini 2.5 with thinking capabilities—into any MCP-compatible development environment (e.g., Claude Desktop, Cursor, Windsurf). It provides tools for text generation, image analysis, token counting, model listing, embeddings, and self-documentation.
How to use Gemini MCP Server?
Configure your MCP client with the npx command npx -y github:aliargun/mcp-server-gemini and set the GEMINI_API_KEY environment variable. Once connected, use natural language in your client to invoke Gemini capabilities (e.g., “Use Gemini to review this code” or “Analyze this image with Gemini”).
Key features of Gemini MCP Server
- Six built-in tools: text generation, image analysis, token counting, model listing, embeddings, and help
- Supports latest Gemini 2.5 models with thinking, JSON mode, and Google Search grounding
- Full MCP protocol via stdio communication for seamless client integration
- Self-documenting help system accessible from within the editor
- Modern TypeScript and ESM implementation
- Configurable system instructions and conversation memory
Use cases of Gemini MCP Server
- Complex reasoning tasks using Gemini 2.5 Pro’s 2M token context
- Code review and analysis with adjustable temperature and model selection
- Image analysis (vision) within an editor workflow
- Research with grounding to incorporate Google Search results
- Token counting and model listing for capacity planning
FAQ from Gemini MCP Server
What models are supported?
The server supports Gemini 2.5 Pro (2M tokens, thinking, JSON, grounding), Gemini 2.5 Flash (1M tokens, thinking, JSON, grounding), Gemini 2.5 Flash Lite (1M tokens, thinking, JSON), Gemini 2.0 Flash (1M tokens, JSON, grounding), and Gemini 1.5 Pro (2M tokens, JSON).
How do I get and set up an API key?
Obtain an API key from Google AI Studio (makersuite.google.com/app/apikey). Set it as the environment variable GEMINI_API_KEY in your MCP client configuration. Never commit the key to version control.
Which MCP clients are supported?
The server works with any MCP-compatible client that supports stdio transport, including Claude Desktop, Cursor, and Windsurf. Configuration examples for each are provided in the README.
What transport does the server use?
The server uses stdio transport, communicating via standard input/output with the MCP client. No HTTP or WebSocket transport is mentioned.
Are there any known limitations?
The README does not list specific limitations, but notes that API keys must be kept secure, and common issues can be resolved by checking client logs and internet connectivity. Troubleshooting guidance is available in the dedicated docs.
AI 与智能体 分类下的更多 MCP 服务器
1Panel
1Panel-dev🔥 1Panel is a modern, open-source VPS control panel — and the only one with native AI agent support. Run Ollama models, deploy OpenClaw agents, and manage your entire server stack from one clean web interface.
mcp-hfspace MCP Server 🤗
evalstateMCP Server to Use HuggingFace spaces, easy configuration and Claude Desktop mode.
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
LinkedIn MCP Server
stickerdanielOpen-source MCP server for LinkedIn. Give Claude and any MCP-compatible AI agent access to profiles, companies, jobs, and messages.
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
评论