What transports does this MCP server support?
It uses `streamable-http` by default, but you can switch to `sse` by changing the transport parameter in `server.py` to `transport="sse"`.
@jackwotherspoon
基本信息
Deploy and host a remote MCP server on Cloud Run
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-on-cloudrun": {
"command": "uv",
"args": [
"run",
"test_server.py"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
This project provides a quick-start template and guide to build a remote MCP server using FastMCP and deploy it to Google Cloud Run. It demonstrates how to run a Model Context Protocol server over the streamable-http (or sse) transport, making it centrally accessible, scalable, and secured with authentication. It is aimed at developers who want to move from local MCP servers to a remote, shareable infrastructure.
Clone the repository, set your Google Cloud project, and deploy the server with gcloud run deploy mcp-server --no-allow-unauthenticated --region=us-central1 --source .. After deployment, run gcloud run services proxy mcp-server --region=us-central1 to create an authenticated local tunnel. Test the connection using uv run test_server.py, which exercises the add and subtract tools.
--no-allow-unauthenticated flag and IAM roles.streamable-http transport (default) with sse as an option.add and subtract.It uses `streamable-http` by default, but you can switch to `sse` by changing the transport parameter in `server.py` to `transport="sse"`.
You can deploy from source with `gcloud run deploy mcp-server --no-allow-unauthenticated --region=us-central1 --source .` or from a container image built via Cloud Build. Both options require the `--no-allow-unauthenticated` flag.
Use the Cloud Run proxy by running `gcloud run services proxy mcp-server --region=us-central1`. This creates an authenticated tunnel to your service. You must also ensure that the caller (or the proxy) has the `roles/run.invoker` IAM role.
You need Python 3.10+ (required by FastMCP), the Google Cloud SDK (`gcloud`), and Git for cloning the repository.
The example Math MCP server provides two tools: `add` (returns the sum of two numbers) and `subtract` (returns the difference).
MCP server that lets Claude Code, Cursor or Codex ask you for API keys on a local page and write them to .env. The agent only ever sees key names.

Agent-Native Terminal

Multi-zone MCP server for GKE/EKS/AKS: Python tools from git, NeMo guardrails, SSO, autoscaling.

Know when your AI agents, cron jobs and CI pipelines fail, stall or go quiet. Your agent sets up monitors from a plain description, tells you what is broken and why, reads run history and traces, and writes notes on inci

SSH MCP server for AI agents: remote commands, file transfer, log search and server audits through OpenSSH.
评论