GCP MCP Host on Cloud Run
Provides tools for managing Google Cloud Platform resources, including projects, services, and IAM permissions.
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 Host on Cloud Runlist all my Compute Engine instances"
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 Host on Cloud Run
Tämä repositorio sisältää konfiguraatiot ja lähdekoodin Model Context Protocol (MCP) -palvelimen isännöimiseksi Google Cloud Runissa. Palvelin tarjoaa työkaluja GCP-resurssien hallintaan ja AI-kehitysapureiden (kuten Antigravity-IDE) integroimiseen.
Arkkitehtuuri
Palvelin käyttää tilatonta Streamable HTTP -transporttia (StreamableHTTPServerTransport).
Tilattomuus: MCP-palvelimen tila ei säily pyyntöjen välillä, mikä poistaa tarpeen istuntokohtaiselle sticky session/session affinity -hallinnalle Cloud Runissa.
Manuaalinen JSON-RPC Dispatch: Pyynnöt käsitellään suoraan ilman SDK:n
McpServer-luokkaa. Tämä takaa täyden kontrollin JSON-RPC-viestien reitityksestä ja virheiden käsittelystä.
Related MCP server: Cloud Run MCP Server
Tiedostot
Projektin litteä kansiorakenne noudattaa organisaation koodisopimuksia:
mcp-gcp-server.ts: Express-pohjainen Node.js MCP-palvelin.service.yaml: Knative-määritys Cloud Run -palvelulle terveystarkastuksineen.Dockerfile: Monivaiheinen kontitusrakenne.deploy-mcp.sh: Automaattinen asennus- ja päivitysskripti.package.json&tsconfig.json: Riippuvuudet ja TypeScript-konfiguraatiot.
Käyttöönotto (Deployment)
Aja asennus ja päivitys suorittamalla:
./deploy-mcp.shSkripti suorittaa seuraavat vaiheet:
Varmistaa pääsyn GCP-projektiin
uutisseuranta-activitystreams.Kääntää ja lataa konttikuvan Artifact Registryn
mcp-servers-repositorioon.Päivittää palvelun Cloud Run -määrityksen
service.yaml-tiedoston mukaisesti.
Oikeudet (IAM)
Palvelu on suojattu, eikä se salli anonyymeja kutsuja (--no-allow-unauthenticated). Kutsujilla on oltava roles/run.invoker -oikeus palveluun.
Oikeuden lisääminen kehittäjälle:
gcloud run services add-iam-policy-binding mcp-gcp-server \
--region europe-north1 \
--member="user:jaakko.korhonen@gmail.com" \
--role="roles/run.invoker" \
--project=uutisseuranta-activitystreamsThis server cannot be installed
Maintenance
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/jaakkokorhonen/gcp-stateless-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server