MCP Gemini Server
@MCP-Mirror
MCP Gemini Server について
Mirror of
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"bsmi021_mcp-gemini-server": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@bsmi021/mcp-gemini-server",
"--client",
"claude"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
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).
「AI とエージェント」の他のコンテンツ
MCP Manager for Claude Desktop
zueaisimple web ui to manage mcp (model context protocol) servers in the claude app
MCP Claude Code
SDGLBLMCP implementation of Claude Code capabilities and more
Perplexity Ask MCP Server
ppl-aiThe official MCP server implementation for the Perplexity API Platform
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.
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
コメント