How to Deploy The Neo4j MCP Server to GCP Cloud Run
Blog post from Neo4j
The guide outlines a comprehensive method for deploying the Neo4j MCP server on a Google Cloud Platform (GCP) Cloud Run instance, which facilitates connection to local MCP client applications. Initially, it underscores the importance of having the necessary libraries, GCP permissions, and a non-local Neo4j database. It then walks through setting up the gcloud CLI for deployment and configuring sensitive information with the GCP Secret Manager or a local YAML file. The walkthrough includes steps for creating and managing a service account, deploying the MCP server using Docker images, and setting environment variables to ensure secure and authenticated server usage. Additionally, it details testing the deployment with tools like curl, Claude Desktop, and Postman, demonstrating how to interact with the Neo4j database by executing queries and retrieving schema information. This deployment framework permits multiple users to access a shared Neo4j instance while maintaining role-based permissions, enhancing the server's utility and security in both development and production environments.