MCP Gemini Server
@MCP-Mirror
About MCP Gemini Server
Mirror of
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"bsmi021_mcp-gemini-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-gemini-server",
"--client",
"claude"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Gemini Server?
This server wraps the @google/genai SDK, exposing Google Gemini model capabilities as standard MCP tools. It allows other LLMs (like Cline) or MCP-compatible systems to leverage Gemini’s text generation, function calling, chat, file handling, and caching features.
How to use MCP Gemini Server?
Install via Smithery (npx -y @smithery/cli install @bsmi021/mcp-gemini-server) or manually (clone, npm install, npm run build). Configure your MCP client’s settings with the server’s path and required environment variables (GOOGLE_GEMINI_API_KEY, optionally GOOGLE_GEMINI_MODEL). Restart the client after configuration.
Key features of MCP Gemini Server
- Standard and streaming text generation (
gemini_generateContent,gemini_generateContentStream) - Function calling that lets Gemini request client-defined functions
- Stateful chat sessions with history management
- File upload, list, retrieve, and delete operations
- Cache content creation, listing, retrieval, update, and deletion
Use cases of MCP Gemini Server
- Integrate Gemini text generation into MCP-compatible assistants (e.g., Cline)
- Enable function calling workflows where Gemini invokes external tools
- Build conversational agents that maintain context across multiple turns
- Upload and manage files (images, documents) for multimodal prompts
- Optimize repeated prompt patterns with server-side content caching
FAQ from MCP Gemini Server
What runtime is required?
Node.js version 18 or later.
Where do I get an API key?
An API key from Google AI Studio (https://aistudio.google.com/app/apikey).
Can I use Vertex AI authentication?
No. The server only supports Google AI Studio API keys; file handling and caching features are not compatible with Vertex AI credentials.
How do I set a default Gemini model?
Set the GOOGLE_GEMINI_MODEL environment variable (e.g., gemini-1.5-flash). If not set, the modelName parameter becomes required on applicable tool calls.
What error types does the server return?
Errors are returned as McpError objects with an error code (InvalidParams, InternalError, etc.), a message, and optional details for troubleshooting (e.g., safety block reasons).
More AI & Agents MCP servers
Open Multi-Agent Canvas
CopilotKitThe open-source multi-agent chat interface that lets you manage multiple agents in one dynamic conversation and add MCP servers for deep research
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 构建高性能后端服务。
1MCP - One MCP Server for All
1mcp-appA unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
Sequential Thinking Multi-Agent System (MAS)
FradSerAn advanced sequential thinking process using a Multi-Agent System (MAS) built with the Agno framework and served via MCP.
Comments