Connects agents to Google Cloud: query logs, work with Spanner databases and analyze Cloud Monitoring metrics.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add google-cloud --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -- node /Users/foo/code/google-cloud-mcp/dist/index.js~/.codex/config.toml
[mcp_servers.google-cloud]
command = "node"
args = ["/Users/foo/code/google-cloud-mcp/dist/index.js"]
env = { GOOGLE_APPLICATION_CREDENTIALS = "<GOOGLE_APPLICATION_CREDENTIALS>" }
# codex mcp add google-cloud --env GOOGLE_APPLICATION_CREDENTIALS='<GOOGLE_APPLICATION_CREDENTIALS>' -- node /Users/foo/code/google-cloud-mcp/dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"google-cloud": {
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-cloud": {
"type": "stdio",
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-cloud": {
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-cloud": {
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-cloud": {
"command": "node",
"args": [
"/Users/foo/code/google-cloud-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>"
}
}
}
}Environment variables
GOOGLE_APPLICATION_CREDENTIALS
Replace the placeholders with your own credentials and keep them out of version control.