Gemini MCP Server
Provides tools for executing queries to Gemini AI, including basic queries and queries with auto-confirmation of unsafe operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gemini MCP Serverexplain quantum computing in simple terms"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gemini MCP Server
MCP (Model Context Protocol) сервер для интеграции с Gemini AI. Предоставляет инструменты для выполнения запросов к Gemini через Claude Code.
Возможности
gemini_query - базовые запросы к Gemini AI
gemini_unsafe - запросы с автоподтверждением небезопасных операций
Работа через stdio transport
Интеграция с Claude Code через MCP протокол
Related MCP server: MCP Gemini Server
Установка
Требования
Node.js
Установленный gemini CLI
API ключ Gemini
Быстрый старт
Клонируйте репозиторий:
git clone https://github.com/Stesm/gemini-mcp.git
cd gemini-mcpУстановите зависимости:
npm installСоберите проект:
npm run buildДобавьте MCP сервер в Claude Code:
claude mcp add gemini node /path/to/gemini-mcp/dist/index.js -e GEMINI_API_KEY=your_api_keyКонфигурация
Переменные окружения
GEMINI_API_KEY- API ключ для Gemini AI (обязательно)
Альтернативный способ подключения
Добавьте в конфигурацию Claude Code (~/.config/claude-code/claude_desktop_config.json):
{
"mcpServers": {
"gemini": {
"command": "node",
"args": ["/path/to/gemini-mcp/dist/index.js"],
"env": {
"GEMINI_API_KEY": "your_api_key"
}
}
}
}Использование
После подключения к Claude Code доступны два инструмента:
gemini_query
Базовый инструмент для отправки запросов в Gemini AI.
Параметры:
prompt(string, required) - текст запроса
gemini_unsafe
Инструмент для запросов с автоподтверждением небезопасных операций.
Параметры:
prompt(string, required) - текст запросаauto_confirm(boolean, optional) - автоматически подтверждать операции
Разработка
Команды
# Установка зависимостей
npm install
# Сборка проекта
npm run build
# Запуск сервера
npm start
# Разработка (сборка + запуск)
npm run devСтруктура проекта
├── src/
│ └── index.ts # MCP сервер с инструментами Gemini
├── dist/ # Скомпилированный JavaScript
├── package.json # Конфигурация и зависимости
├── tsconfig.json # Конфигурация TypeScript
└── CLAUDE.md # Документация для Claude CodeАрхитектура
MCP Server - использует @modelcontextprotocol/sdk
Transport - StdioServerTransport для коммуникации с Claude Code
Tools - инструменты для работы с Gemini CLI
Command Execution - spawn процессы для вызова gemini CLI
Лицензия
MIT
Автор
Created with Claude Code
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
- Alicense-qualityDmaintenanceConnects Claude Code with Google's Gemini AI, allowing users to ask Gemini questions, get code reviews, and brainstorm ideas directly within Claude Code.Last updated246MIT
- Alicense-qualityDmaintenanceEnables Claude Desktop to interact with Google's Gemini API, allowing users to query Gemini models directly or facilitate conversations between Claude and Gemini with conversation history management.Last updated65MIT
- FlicenseCqualityDmaintenanceEnables Claude Code to call Gemini models through an OpenAI-compatible API, providing tools for deep analysis, brainstorming, code review, and general queries using Gemini's capabilities.Last updated4
- Alicense-qualityDmaintenanceIntegrates Google Gemini API capabilities into Claude Code, supporting text generation, image analysis, and AI image creation. It features specialized tools for creative brainstorming and managing multi-turn chat sessions.Last updated65MIT
Related MCP Connectors
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Trade Robinhood through natural language in Claude Code.
233 tools for Google, Microsoft, TikTok, LinkedIn Ads in Claude or ChatGPT. Writes need approval.
Appeared in Searches
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/Stesm/gemini-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server