loading…
Search for a command to run...
loading…
A mock MCP server that exposes protein structure prediction tools (submit, status, results) for integration with Gemini Enterprise, demonstrating the bring-your
A mock MCP server that exposes protein structure prediction tools (submit, status, results) for integration with Gemini Enterprise, demonstrating the bring-your-own-MCP capability.
This repository demonstrates the "Bring Your Own MCP" capability in Gemini Enterprise.
The original FoldRun architecture is available in the Google Cloud Life Sciences repository. FoldRun is an open-source accelerator designed to automate the end-to-end scientific workflow for protein structure prediction. It runs models such as Boltz2, OpenFold3, and AlphaFold 2. It is an intelligent orchestration layer that uses multi-agent collaboration to manage the entire lifecycle from hypothesis generation to structural validation.
Spinning up the entire FoldRun agent requires costly infrastructure. To make testing accessible, this repository provides a lightweight, mock FoldRun MCP server. It exposes three core tools built in Python (using FastMCP) to demonstrate how easily you can integrate custom external agents and harvest their capabilities directly within Gemini Enterprise.
foldrun_mcp_demo.py: The core FastMCP server that exposes three mock AI tools (submit_protein_prediction, get_job_status, get_prediction_results).Dockerfile & .dockerignore: For containerizing the server for later deployment to Cloud Run.requirements.txt: Python dependencies (mcp and uvicorn).StreamableHTTP protocol (via Server-Sent Events / /mcp) which is natively compatible with Gemini Enterprise.Follow these steps to deploy the server to Google Cloud Run and connect it to Gemini Enterprise.
gcloud CLI installed and authenticated to your GCP project.gcloud run deploy foldrun-mcp-demo \
--source . \
--region us-central1 \
--allow-unauthenticated \
--port 8080
https://foldrun-mcp-demo-xxxxx.us-central1.run.app).You can easily test your MCP tools locally before connecting them to Gemini.
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
mcp dev foldrun_mcp_demo.py
localhost URL in your browser to test the submit_protein_prediction and get_job_status tools visually.Gemini Enterprise requires an OAuth authentication layer, even if your Cloud Run service is set to --allow-unauthenticated. We will use Google's native OAuth endpoints as a passthrough.
https://extensions.googleapis.com/auth.Client ID and Client Secret.foldrun-mcp/mcp appended to the end. (e.g., https://foldrun-mcp-demo-xxxxx.us-central1.run.app/mcp)OAUTHhttps://accounts.google.com/o/oauth2/authhttps://oauth2.googleapis.com/tokenemail profileBy default, newly connected MCP tools are turned off. To enable them:
Creating to Active.submit_protein_prediction, get_job_status, get_prediction_results).Refer to this link for more details on connecting your MCP to Gemini Enterprise.
Once your Data Store is connected to a Chat App/Agent in Gemini Enterprise, try the following prompts to verify each tool is working.
Tool 1 — submit_protein_prediction
"Submit a new AlphaFold2 prediction for the sequence
MKALIVLGLVLLSVTV. Name the jobmy-first-test."
↳ Expected: Gemini calls the tool and returns a new job_id (e.g., foldrun-af2-a1b2c3) and an estimated runtime.
Tool 2 — get_job_status
"Check the status of the protein prediction job
foldrun-af2-demo01."
↳ Expected: Gemini calls the tool and returns the current stage, progress percentage, and a status message (e.g., 35% — running MSA search).
Tool 3 — get_prediction_results
"Get the final structure results and expert analysis for the AlphaFold job
foldrun-af2-demo01."
↳ Expected: Gemini calls the tool and returns quality metrics (pLDDT, pTM score), output file paths, and a detailed structural analysis paragraph.
To move beyond mock data and connect to the actual FoldRun agent, follow these high-level steps:
Выполни в терминале:
claude mcp add foldrun-mcp-server -- npx