The GCP MCP application enables Google Cloud Platform management through Claude Desktop via the Model Context Protocol. This integration lets you manage your GCP resources using natural language commands without complex setup processes or manual credential handling.
To get started with GCP MCP, install it using pip:
pip install gcp-mcp
Add the following configuration to your Claude Desktop MCP configuration:
{
"gcp-mcp": {
"command": "uvx",
"args": [
"gcp-mcp"
]
}
}
No additional setup or credential manipulation is required. When you first ask Claude to interact with your GCP resources, a browser window will automatically open for authentication. After granting access, Claude can manage your GCP resources through natural language commands.
Could you list my GCP projects?
Show me my compute instances
What storage buckets do I have?
Please create a compute instance with 2GB RAM and 10GB storage, name it MCP-engine
Create a new storage bucket called my-backup-bucket in us-central1
Set up a new VPC network named prod-network with subnet 10.0.0.0/24
Stop all compute instances in the dev project
Show me all instances that have been running for more than 24 hours
What's the current CPU usage of my instance named backend-server?
Create a snapshot of my database disk
Set up an alert for when CPU usage goes above 80%
Show me all critical alerts from the last 24 hours
What's the current status of my GKE clusters?
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.