loading…
Search for a command to run...
loading…
This server exposes over 250 tools across 23 GCP service domains, enabling AI models to manage infrastructure, deployments, data, and security on Google Cloud P
This server exposes over 250 tools across 23 GCP service domains, enabling AI models to manage infrastructure, deployments, data, and security on Google Cloud Platform.
A comprehensive Model Context Protocol (MCP) server for managing everything in Google Cloud Platform (GCP). This server exposes over 250 tools across 23 GCP service domains, allowing AI models to manage infrastructure, deployments, data, and security.
@modelcontextprotocol/sdkThe server requires the following environment variables:
| Variable | Description | Required |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS |
Path to the service account JSON key file | Yes (or use inline) |
GCP_PROJECT_ID |
Your GCP Project ID | Yes |
GCP_REGION |
Default region (default: us-central1) |
No |
GCP_ZONE |
Default zone (default: us-central1-a) |
No |
GCP_ALLOW_WRITE |
Set to true to enable creating/modifying resources |
No (default: false) |
Instead of a file path, you can pass the credentials inline:
GCP_SERVICE_ACCOUNT_KEY_JSON: The raw JSON string of the key.GCP_SERVICE_ACCOUNT_KEY_BASE64: Base64 encoded string of the JSON key.Build the Docker image:
docker build -t gcp-mcp-server .
Run the container:
docker run -i --rm \
-v /path/to/your/key.json:/app/key.json \
-env GOOGLE_APPLICATION_CREDENTIALS=/app/key.json \
-env GCP_PROJECT_ID=your-project-id \
-env GCP_ALLOW_WRITE=true \
gcp-mcp-server
npm install
npm run build
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
export GCP_PROJECT_ID=your-project-id
export GCP_ALLOW_WRITE=true
npm start
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/path/to/your/key.json:/app/key.json",
"-e",
"GOOGLE_APPLICATION_CREDENTIALS=/app/key.json",
"-e",
"GCP_PROJECT_ID=your-project-id",
"-e",
"GCP_ALLOW_WRITE=true",
"gcp-mcp-server"
]
}
}
}
{
"mcpServers": {
"gcp": {
"command": "node",
"args": [
"f:/MCP_Server/cloud_MCP/GCP_MCP_server/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "f:/path/to/your/key.json",
"GCP_PROJECT_ID": "your-project-id",
"GCP_ALLOW_WRITE": "true"
}
}
}
}
MIT
Выполни в терминале:
claude mcp add gcp-mcp-server -- npx