mcp-sse-authenticated-cloud-run

mcp-sse-authenticated-cloud-run

19

This project enables secure hosting of a custom MCP server on Google Cloud Run, using IAM Authentication to connect clients over the internet. It provides a proxy-based solution due to current authentication limitations, enhancing security with Google Cloud IAM access controls.

Host MCP SSE Server on Google Cloud Run

This project provides a secure method to host a custom MCP server using Google Cloud Run and User-Based IAM Authentication, allowing teams to access it over the internet. The MCP server uses a network layer-based solution due to current limitations in authentication and authorization solutions for MCP. The setup involves deploying the server on Cloud Run and running a local proxy using the Google Cloud SDK to securely forward requests. Key steps involve updating deployment scripts with project details and running the proxy locally to connect with the MCP server.

Deployment Steps

  • Clone the repository and install dependencies.
  • Deploy the server to Google Cloud Run with a deployment script.
  • Run a local proxy to connect to the Cloud Run server.

Security

The MCP server setup ensures that it's not publicly accessible without authentication, securing connections with Google Cloud IAM.