Skip to main content
Glama
dinosbakerype

Google Cloud Run MCP Server (SSE)

Google Cloud Run MCP 服务器 (SSE)

采用 SSE(服务器发送事件) 传输协议的 MCP(模型上下文协议)服务器,已准备好部署到 Google Cloud Run 并连接到 Antigravity。


📁 项目结构

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: Remote MCP Server on Cloudflare (Authless)

🚀 部署到 Google Cloud Run

选项 1:从 GitHub 部署(Cloud Console)

  1. 将此仓库上传到你的 GitHub 账户。

  2. 在 Google Cloud Console 中,进入 Cloud Run > 创建服务。

  3. 选择 从仓库持续部署。

  4. 连接你的 GitHub 账户并选择此仓库(main 分支)。

  5. 在构建类型中,选择 Dockerfile。

  6. 在 身份验证 中,选择 允许未认证的调用。

  7. 点击 创建。

选项 2:从终端部署(gcloud)

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

🔌 在 Antigravity 中连接

服务部署完成后,将包含 /sse 的 URL 添加到你的 ~/.gemini/config/mcp_config.json 文件中:

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

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables the deployment of remote Model Context Protocol servers on Cloudflare Workers without requiring authentication. It allows users to integrate custom tools into AI clients like Claude Desktop or the Cloudflare AI Playground via Server-Sent Events.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables spawning ephemeral Model Context Protocol (MCP) servers on Kubernetes using Server-Sent Events (SSE), supporting multiple runtimes.
    2
    MIT