GCP MCP Server
Lets AI agents manage Google Cloud Platform resources including projects, IAM, service accounts, and APIs via direct GCP REST API calls.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GCP MCP ServerList all my GCP projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GCP MCP Server
An MCP (Model Context Protocol) server that lets AI agents manage Google Cloud Platform ā no gcloud CLI or Terraform required. It talks directly to GCP REST APIs using a service account.
Tools Exposed
š Projects
Tool | Description |
| List all accessible GCP projects |
| Get details for a specific project |
| Create a new project |
| Update a project's display name or labels |
| Soft-delete a project (30-day recovery) |
| Poll a long-running project operation |
š IAM & Service Accounts
Tool | Description |
| List service accounts in a project |
| Create a new service account |
| Delete a service account |
| Re-enable a disabled service account |
| Disable a service account |
| List keys for a service account |
| Get the project's IAM policy |
| Grant a role to a member |
| Revoke a role from a member |
| Browse available IAM roles |
āļø APIs / Services
Tool | Description |
| List enabled/disabled APIs on a project |
| Enable one or more APIs (batch) |
| Disable an API |
| Check if a specific API is enabled |
| Poll an API enable/disable operation |
Related MCP server: GCP MCP Server
Prerequisites
A Google Cloud service account with appropriate permissions (see below)
A JSON key file downloaded for that service account
Node.js 18+
Minimum IAM Permissions for the Service Account
Capability | Required Role |
List/view projects |
|
Create projects |
|
Manage IAM policies |
|
Manage service accounts |
|
Enable/disable APIs |
|
Setup
1. Get a service account key
# In Google Cloud Console:
# IAM & Admin ā Service Accounts ā Create ā download JSON key
# OR via gcloud (if installed):
gcloud iam service-accounts create gcp-mcp-sa \
--display-name "GCP MCP Server"
gcloud iam service-accounts keys create key.json \
--iam-account gcp-mcp-sa@YOUR_PROJECT.iam.gserviceaccount.com2. Set environment variable
export GOOGLE_APPLICATION_CREDENTIALS=/home/nathan/googlemcp/key.jsonOr copy .env.example ā .env and fill in the path (you'll need to load it yourself or use dotenv).
3. Build
npm run build4. Test the server starts
node dist/index.js
# Should print: ā
GCP MCP Server running on stdioConnecting to an Agent
Antigravity / Claude Desktop (MCP config)
Add to your MCP settings (e.g. ~/.config/antigravity/mcp.json or Claude Desktop config):
{
"mcpServers": {
"gcp": {
"command": "node",
"args": ["/home/nathan/googlemcp/dist/index.js"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/home/nathan/googlemcp/key.json"
}
}
}
}Generic stdio MCP
The server communicates over stdin/stdout using the MCP protocol. Any MCP-compatible client can connect by spawning the process:
node /home/nathan/googlemcp/dist/index.jsExample Agent Interactions
"List all my active GCP projects" ā calls
gcp_list_projectswithfilter: "state:ACTIVE"
"Create a new project called my-api-backend" ā calls
gcp_create_projectwithprojectId: "my-api-backend", thengcp_get_operationto poll
"Enable Cloud Run and Cloud Build on my project" ā calls
gcp_enable_apiswith["run.googleapis.com", "cloudbuild.googleapis.com"]
"Create a deployer service account and give it Cloud Run invoker" ā
gcp_create_service_accountāgcp_add_project_iam_bindingwithroles/run.invoker
Project Structure
googlemcp/
āāā src/
ā āāā auth.ts # Service account token fetcher
ā āāā index.ts # MCP server entry point (21 tools registered)
ā āāā tools/
ā āāā projects.ts # Project CRUD (CRM v3)
ā āāā iam.ts # Service accounts + IAM policies
ā āāā apis.ts # API enable/disable (Service Usage v1)
āāā dist/ # Compiled output (after npm run build)
āāā tsconfig.json
āāā package.jsonMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/natekpurcella-hue/gcp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server