Google Cloud MCP Server
🤖 A Model Context Protocol (MCP) server for Google Cloud
Overview
Google Cloud MCP Server is a Model Context Protocol server that connects to Google Cloud services, providing context and tools for interacting with Google Cloud resources.
To use the server, clone the repository, install dependencies, and authenticate to Google Cloud using a service account key file or environment variables. Configure the MCP servers in your client to start using it.
- Supports Google Cloud Logging, Monitoring, and Spanner. - Allows querying and filtering of log entries. - Executes SQL queries against Spanner databases. - Retrieves and analyzes metrics from Google Cloud Monitoring. - Supports lazy loading of authentication for efficient server startup.
- Monitoring and analyzing logs from Google Cloud services.
- Executing and managing SQL queries on Google Cloud Spanner databases.
- Visualizing and analyzing metrics from Google Cloud Monitoring.
Add to your AI client
Use these steps to connect Google Cloud MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"google-cloud-mcp-krzko": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-cloud-mcp-krzko"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"google-cloud-mcp-krzko": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-cloud-mcp-krzko"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"google-cloud-mcp-krzko": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-cloud-mcp-krzko"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"google-cloud-mcp-krzko": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-cloud-mcp-krzko"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"google-cloud-mcp-krzko": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-cloud-mcp-krzko"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"google-cloud-mcp-krzko": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-google-cloud-mcp-krzko"
]
}
}
}FAQ
What authentication methods are supported?
The server supports Service Account Key File and Environment Variables for authentication.
How do I troubleshoot server timeout issues?
Enable debug logging, ensure lazy authentication is set, and check the accessibility of your credentials file.
Can I use this server with Smithery?
Yes, the server can be deployed with Smithery, but local server support is still in development.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2660,"uuid":"d7592969-ca8a-47db-a316-f728854e4c67","name":"google-cloud-mcp","title":"Google Cloud MCP Server","description":"🤖 A Model Context Protocol (MCP) server for Google Cloud","avatar_url":"https://avatars.githubusercontent.com/u/1499932?v=4","created_at":"2025-03-13T09:26:07.193Z","updated_at":"2025-03-13T09:39:31.172Z","status":"created","author_name":"krzko","author_avatar_url":"https://avatars.githubusercontent.com/u/1499932?v=4","tags":"google,mcp,gcp,google-cloud,google-cloud-platform,llmops,mcp-server","category":"cloud-platforms","is_featured":false,"sort":1,"url":"https://github.com/krzko/google-cloud-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-10 14:18:33\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]