
lkbaba/gemini-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
lkbaba/gemini-mcp — это кандидат на сервер MCP, импортированный из https://github.com/lkbaba/gemini-mcp.
Обзор
lkbaba/gemini-mcp — это кандидат на сервер MCP, импортированный из https://github.com/lkbaba/gemini-mcp.
Обзор (машинный перевод)
*Дайте Claude Code силу Gemini 3.1
MCP-сервер, который соединяет Claude Code с Gemini 3.1 от Google, открывая возможности, дополняющие сильные стороны Claude.
Почему Близнецы + Клод?
| Сильные стороны Gemini | Кейс использования |
|---|---|
| 1M Контекст токенов | Анализировать целые кодовые базы за один раз |
| Google Поиск Заземляние | Получайте документацию в реальном времени и последнюю информацию |
| Мультимодальное видение | Понимание скриншотов, схем, дизайнов |
Философия: Клод — командир, Джемини — специалист.
Быстрый старт
Добавьте в ваш конфигурационный файл MCP:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Затем перезапустите Claude Code.
Аутентификация
Поддерживаются два режима аутентификации. Сервер автоматически определяет, какой режим использовать на основе переменных окружения.
Вариант 1: Ключ API AI Studio (самый простой)
Лучше всего подходит для личностного развития и быстрых испытаний.
- Посетите Google AI Studio и создайте ключ API
- Добавьте в свою конфигурацию MCP:
Вариант 2: Vertex AI (рекомендуется для продакшена)
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Gemini MCP Server
Give Claude Code the power of Gemini 3.1
An MCP server that connects Claude Code to Google’s Gemini 3.1, unlocking capabilities that complement Claude’s strengths.
Why Gemini + Claude?
| Gemini’s Strengths | Use Case |
|---|---|
| 1M Token Context | Analyze entire codebases in one shot |
| Google Search Grounding | Get real-time documentation & latest info |
| Multimodal Vision | Understand screenshots, diagrams, designs |
Philosophy: Claude is the commander, Gemini is the specialist.
Quick Start
Add to your MCP config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Then restart Claude Code.
Authentication
Two authentication modes are supported. The server auto-detects which mode to use based on environment variables.
Option 1: AI Studio API Key (Simplest)
Best for personal development and quick trials.
- Visit Google AI Studio and create an API key
- Add to your MCP config:
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["-y", "@lkbaba/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your-api-key"
}
}
}
}
Option 2: Vertex AI (Recommended for Production)
More secure, uses Google Cloud IAM authentication.
Prerequisites:
- A Google Cloud project with Vertex AI API enabled
- A service account with Vertex AI User role (create one here)
Setup (2 minutes):
- Create a service account in GCP Console → download JSON key file
- Open the JSON key file, copy all key-value pairs
- Paste them into the
envsection of your MCP config:
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["-y", "@lkbaba/mcp-server-gemini"],
"env": {
"type": "service_account",
"project_id": "your-project-id",
"private_key_id": "key-id-here",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEv...\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "123456789",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/your-sa%40your-project.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}
}
}
}
The server auto-detects service account credentials from env vars — no GOOGLE_GENAI_USE_VERTEXAI or GOOGLE_CLOUD_PROJECT needed. Just paste and go.
Установка
npx -y @lkbaba/mcp-server-geminiКонфигурация
{
"mcpServers": {
"gemini": {
"command": "npx",
"args": ["-y", "@lkbaba/mcp-server-gemini"],
"env": {
"GEMINI_API_KEY": "your-api-key"
}
}
}
}