loading…
Search for a command to run...
loading…
A boilerplate for deploying a remote MCP server on Google Cloud with authentication, enabling experimentation with MCP tools.
A boilerplate for deploying a remote MCP server on Google Cloud with authentication, enabling experimentation with MCP tools.
This repository contains the code to demonstrate MCP capabilities
Build Status Python 3.10+ FastAPI Code style: black
python 3.12 installed and available on your system. To check write python3 --version on your terminalpython3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
We're going to deploy a remote MCP server to google cloud which also supports authentication. Navigate to the server remote-mcp-gcp directory and perform the following steps
.envrc_sample to .envrc so that your shell can pickup the GCLOUD_PROJECT_ID environment variable mv .envrc_sample .envrc .envrc file with the ID of your google cloud project. gcloud artifacts repositories create remote-mcp-servers \
--repository-format=docker \
--location=us-central1 \
--description="Repository for remote MCP servers" \
--project=$GCLOUD_PROJECT_ID
gcloud builds submit --region=us-central1 --tag us-central1-docker.pkg.dev/$GCLOUD_PROJECT_ID/remote-mcp-servers/mcp-server:latest
gcloud run deploy mcp-server \
--image us-central1-docker.pkg.dev/$GCLOUD_PROJECT_ID/remote-mcp-servers/mcp-server:latest \
--region=us-central1 \
--no-allow-unauthenticated
gcloud run services proxy mcp-server --region=us-central1. This will ask you to install cloud run proxy tooling on your computer. localhost:8080 should be pointed to your deployed instance with authentication enableduv run test_server.py to invoke the client script against the remote server with various tools.Feel free to create new tools and experiment.
[!IMPORTANT] Once you're done, delete all associated resources from Google Cloud to avoid unnecessary charges.
Run in your terminal:
claude mcp add mcp-boilerplate -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.