Skip to main content
Glama
dinosbakerype

Google Cloud Run MCP Server (SSE)

Google Cloud Run MCP Server (SSE)

MCP Server (Model Context Protocol) with SSE (Server-Sent Events) transport ready to be deployed on Google Cloud Run and connected to Antigravity.


📁 Project Structure

mcp-cloud-run/
├── src/
│   └── server.ts         # Implementación del servidor MCP y endpoints SSE
├── Dockerfile            # Configuración Docker optimizada para Cloud Run
├── package.json          # Dependencias y scripts
├── tsconfig.json         # Configuración de TypeScript
├── .dockerignore
├── .gitignore
└── README.md

Related MCP server: Cloudflare Remote MCP Server Template

🚀 Deployment on Google Cloud Run

Option 1: From GitHub (Cloud Console)

  1. Push this repository to your GitHub account.

  2. In Google Cloud Console, go to Cloud Run > Create Service.

  3. Select Continuously deploy from a repository.

  4. Connect your GitHub account and select this repository (main).

  5. For build type, choose Dockerfile.

  6. Under Authentication, select Allow unauthenticated invocations.

  7. Click Create.

Option 2: From Terminal (gcloud)

gcloud run deploy google-cloud-mcp-server \
  --source . \
  --region us-central1 \
  --allow-unauthenticated \
  --port 8080

🔌 Connection in Antigravity

Once your service is deployed, add the URL with /sse to your ~/.gemini/config/mcp_config.json file:

{
  "mcpServers": {
    "google-cloud-run": {
      "serverUrl": "https://TU-SERVICIO-CLOUD-RUN.a.run.app/sse"
    }
  }
}

Related MCP Connectors

Related MCP Servers