Gemini MCP Server
Provides tools for executing queries to Gemini AI, including basic queries and queries with auto-confirmation of unsafe operations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Live SEO workflow tools for Claude Code, Codex, and AI agents.
Read and write NetSuite and run SuiteQL from Claude or ChatGPT. Write tools flagged for approval.
Web scraping, Google SERP, Markdown and ChatGPT/Gemini answers as typed tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects Claude Code with Google's Gemini AI, allowing users to ask Gemini questions, get code reviews, and brainstorm ideas directly within Claude Code.251MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.285 npmMIT
- AlicenseCqualityDmaintenanceEnables 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.4MIT
- AlicenseNot gradedqualityDmaintenanceIntegrates 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.285 npmMIT