GCP MCP
GCP MCP
Сервер Model Context Protocol (MCP), который позволяет помощникам ИИ, таким как Claude, взаимодействовать с вашей средой Google Cloud Platform. Это позволяет выполнять запросы на естественном языке и управлять вашими ресурсами GCP во время разговоров.

Функции
🔍 Запрашивайте и изменяйте ресурсы GCP, используя естественный язык
☁️ Поддержка нескольких проектов GCP
🌐 Поддержка нескольких регионов
🔐 Безопасная обработка учетных данных (никакие учетные данные не передаются внешним службам)
🏃♂️ Локальное выполнение с вашими учетными данными GCP
🔄 Автоматические повторные попытки для повышения надежности
Related MCP server: Kubectl MCP Tool
Предпосылки
Node.js
Клод Рабочий стол/Курсор/Виндсерфинг
Учетные данные GCP настроены локально (учетные данные приложения по умолчанию)
Установка
Клонируйте репозиторий:
git clone https://github.com/eniayomi/gcp-mcp
cd gcp-mcpУстановить зависимости:
npm installКонфигурация
Клод Десктоп
Откройте приложение Claude для ПК и перейдите в Настройки -> Разработчик -> Изменить конфигурацию.
Добавьте следующую запись в ваш
claude_desktop_config.json:
через npm:
{
"mcpServers": {
"gcp": {
"command": "sh",
"args": ["-c", "npx -y gcp-mcp"]
}
}
}Если вы установили из исходного кода:
{
"mcpServers": {
"gcp": {
"command": "npm",
"args": [
"--silent",
"--prefix",
"/path/to/gcp-mcp",
"start"
]
}
}
}Замените /path/to/gcp-mcp на фактический путь к каталогу вашего проекта, если вы используете установку из исходного кода.
Курсор
Откройте Курсор и перейдите в Настройки (⌘,)
Перейдите в раздел AI -> Model Context Protocol.
Добавьте новую конфигурацию MCP:
{
"gcp": {
"command": "npx -y gcp-mcp"
}
}Виндсерфинг
Откройте
~/.windsurf/config.json(создайте, если его нет)Добавьте конфигурацию MCP:
{
"mcpServers": {
"gcp": {
"command": "npx -y gcp-mcp"
}
}
}Настройка GCP
Настройте учетные данные GCP:
Настройте учетные данные приложения по умолчанию с помощью
gcloud auth application-default login
Обновите своего помощника на основе искусственного интеллекта (Claude Desktop/Cursor/Windsurf)
Использование
Начните с выбора проекта или задайте такие вопросы, как:
«Список всех проектов GCP, к которым у меня есть доступ»
«Покажите мне все экземпляры Cloud SQL в проекте X»
«Каков мой текущий платежный статус?»
«Покажите мне журналы моих сервисов Cloud Run»
«Список всех кластеров GKE в us-central1»
«Покажите мне все контейнеры Cloud Storage в проекте X»
«Какие облачные функции развернуты в us-central1?»
«Список всех служб Cloud Run»
«Покажите мне наборы данных и таблицы BigQuery»
Доступные инструменты
run-gcp-code: выполнение вызовов API GCP с использованием кода TypeScriptlist-projects: Список всех доступных проектов GCPselect-project: выбор проекта GCP для последующих операцийget-billing-info: Получить платежную информацию для текущего проектаget-cost-forecast: Получить прогноз стоимости для текущего проектаget-billing-budget: Получить бюджеты выставления счетов для текущего проектаlist-gke-clusters: Список всех кластеров GKE в текущем проектеlist-sql-instances: список всех экземпляров Cloud SQL в текущем проектеget-logs: Получить записи облачного журнала для текущего проекта
Примеры взаимодействий
Список доступных проектов:
List all GCP projects I have access toВыберите проект:
Use project my-project-idПроверьте статус платежа:
What's my current billing status?Просмотр журналов:
Show me the last 10 log entries from my projectПоддерживаемые услуги
Google Compute Engine
Облачное хранилище
Облачные функции
Облачный забег
BigQuery
Облачный SQL
Google Kubernetes Engine (GKE)
Ведение журнала в облаке
Облачный биллинг
Менеджер ресурсов
Скоро будет больше...
Поиск неисправностей
Чтобы просмотреть журналы:
tail -n 50 -f ~/Library/Logs/Claude/mcp-server-gcp.logРаспространенные проблемы:
Ошибки аутентификации: убедитесь, что вы запустили
gcloud auth application-default loginОшибки разрешений: проверьте роли IAM для вашей учетной записи
Ошибки API: убедитесь, что в вашем проекте включены требуемые API.
Внося вклад
Вклады приветствуются! Пожалуйста, не стесняйтесь отправлять запрос на включение.
Лицензия
Массачусетский технологический институт
Available Tools
9 toolsget-billing-budgetC
Get billing budgets for the current project
Inputs: projectId.
get-billing-infoC
Get billing information for the current project
Inputs: projectId.
get-cost-forecastB
Get cost forecast for the current project
Inputs: months, projectId.
get-logsB
Get Cloud Logging entries for the current project
Inputs: filter, pageSize.
list-gke-clustersB
List all GKE clusters in the current project
Inputs: location.
list-projectsA
List all GCP projects accessible with current credentials
Inputs: no named parameters.
list-sql-instancesB
List all Cloud SQL instances in the current project
Inputs: no named parameters.
run-gcp-codeD
Run GCP code
Inputs: code (required), reasoning (required), region, projectId.
select-projectB
Selects GCP project to use for subsequent interactions
Inputs: projectId (required), region.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Tools are mostly distinct: billing-related tools (budget, info, forecast) are clearly separate, and list/select tools for different resources are unambiguous. The only potential confusion is 'run-gcp-code' which is vague but still distinct from other tools.
All tool names follow a consistent verb-noun pattern with hyphens (e.g., get-billing-budget, list-gke-clusters, select-project). The naming convention is uniform and predictable.
The server has 9 tools, which is an appropriate size for a focused GCP management server. It covers several key areas without being overwhelming.
The tool surface is limited to reading and listing operations for select GCP services (billing, logs, GKE, SQL, projects). Missing CRUD operations for resources, compute, storage, IAM, and other common GCP tasks. The vague 'run-gcp-code' tool does not compensate for these gaps.
Maintenance
Related MCP Connectors
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
The Google Compute Engine MCP server is a fully-managed Model Context Protocol server that provides tools to manage Google Compute Engine resources through AI agents. It enables capabilities including instance management (creating, starting, stopping, resetting, listing), disk management, handling instance templates and group managers, viewing machine and accelerator types, managing images, and accessing reservation and commitment information. The server operates as a zero-deployment, enterprise-grade endpoint at https://compute.googleapis.com/mcp with built-in IAM-based security.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that connects to Google Cloud services, allowing users to query logs, interact with Spanner databases, and analyze Cloud Monitoring metrics through natural language interaction.4080Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.280 npm976MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol server allowing Claude AI to interact with AWS resources through natural language, enabling users to query and manage AWS services without using the traditional AWS Console or CLI.36ISC
- AlicenseCqualityCmaintenanceA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.1704 npm170MIT