gemini-mcp
gemini-mcp
Легковесный MCP-сервер, который предоставляет Google Gemini в виде инструментов для Claude (или любого MCP-клиента).
Используйте Gemini для альтернативных мнений, анализа больших контекстов, ревью кода или всего, где помогает взгляд другой модели.
Инструменты
Инструмент | Описание |
| Задайте Gemini вопрос или дайте ему задачу |
| Отправьте код/текст для анализа с конкретной инструкцией |
| Многоходовой диалог с полной историей |
| Список доступных моделей Gemini |
Related MCP server: Gemini Bridge
Быстрый старт
1. Получите API-ключ
Перейдите в Google AI Studio и создайте бесплатный API-ключ.
2. Установка
Вариант A — Клонирование (рекомендуется для Claude Code)
git clone https://github.com/PavelGuzenfeld/gemini-mcp.git ~/.claude/mcp-servers/gemini
cd ~/.claude/mcp-servers/gemini
npm installВариант B — npx (без установки)
npx claude-gemini-mcp3. Регистрация в Claude Code
Добавьте в ~/.claude/settings.json:
{
"mcpServers": {
"gemini": {
"command": "node",
"args": ["/home/you/.claude/mcp-servers/gemini/index.js"],
"env": {
"GEMINI_API_KEY": "your-key-here"
}
}
}
}Или с помощью npx:
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["-y", "claude-gemini-mcp"],
"env": {
"GEMINI_API_KEY": "your-key-here"
}
}
}
}Примеры использования
Задать вопрос
> Use gemini_ask to explain the difference between std::expected and std::optional
Gemini says: std::optional<T> represents a value that may or may not be present...
std::expected<T, E> additionally carries an error value when the expected value is absent...Проанализировать код
> Use gemini_analyze to review this function for performance issues:
instruction: "Find performance bottlenecks"
content: <your code here>
Gemini says: Line 12 allocates inside the loop — move the vector outside...Многоходовой диалог
> Use gemini_chat with messages:
[{"role": "user", "content": "Design a REST API for a task manager"},
{"role": "model", "content": "Here's a RESTful design..."},
{"role": "user", "content": "Now add authentication"}]
Gemini says: Building on the previous design, add JWT-based auth...Переопределить модель для вызова
> Use gemini_ask with model: "gemini-2.5-flash" to quickly summarize this error logПеременные окружения
Переменная | По умолчанию | Описание |
| (обязательно) | API-ключ Google AI Studio |
|
| Модель по умолчанию для всех инструментов |
Модели
Модель | Лучше всего подходит для |
| Лучшее качество, большой контекст (1M токенов) |
| Быстрая, подходит для большинства задач |
| Самая быстрая, простые задачи |
Каждый инструмент принимает необязательный параметр model для переопределения значения по умолчанию при каждом вызове.
Возможности
Повторные попытки с экспоненциальной задержкой при ограничении частоты запросов (429) и серверных ошибках (5xx)
Корректное сообщение об ошибках MCP-клиенту (без сбоев)
Переопределение модели при каждом вызове
Ноль конфигурации, кроме API-ключа
Устранение неполадок
Проблема | Решение |
| Добавьте ключ в блок |
| Встроенная повторная попытка решает это — подождите несколько секунд |
| Запустите |
Инструменты не появляются в Claude Code | Проверьте синтаксис |
| Проверьте сеть/брандмауэр — сервер обращается к |
Разработка
git clone https://github.com/PavelGuzenfeld/gemini-mcp.git
cd gemini-mcp
npm install
npm test # Run smoke tests
node index.js # Start the MCP server locallyЛицензия
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceAn MCP server implementation that allows using Google's Gemini AI models (specifically Gemini 1.5 Pro) through Claude or other MCP clients via the Model Context Protocol.1
- AlicenseAqualityFmaintenanceA lightweight MCP server that enables AI coding assistants to interact with Google's Gemini AI through the official CLI.3MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that integrates Google Gemini CLI with Claude Code for AI-powered development assistance, enabling code review, bug analysis, feature planning, and code explanation without requiring an API key.8MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides access to Google Gemini models via Vertex AI, enabling text generation, multi-turn chat, image/video generation, and frontend design through Claude Code.21MIT
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest 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/PavelGuzenfeld/gemini-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server