MCP Sandboxed Python Data Analyst
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Sandboxed Python Data AnalystAnalyze this dataset and generate a bar chart with summary statistics."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Sandboxed Python Data Analyst
Google ADK Master Curriculum — Track 3: MCP (Model Context Protocol) & Tool Ecosystems (Application 15 of 40)
Architectural Overview
Secure MCP data analyst executing statistical Python code in isolated micro-VM sandboxes, producing charts, and returning analytical summaries.
Google ADK Primitives Featured
Agentbash_toolmcp_tool
Related MCP server: Code Executor MCP Server
System Architecture
graph TD
User["Client / Event Stream"] --> Gateway["ADK Runtime / FastApi Server"]
Gateway --> Agent["adk-mcp-sandboxed-data-analyst (Root Agent)"]
Agent --> Tools["Specialized Domain Tools"]
Tools --> External["External Systems / Google Cloud APIs"]Project Structure
.
├── agent.py # Google ADK agent definition
├── config.py # Environment & model configurations
├── tools/ # Specialized domain tools
├── tests/ # Automated pytest suite
├── main.py # Application entrypoint
├── Dockerfile # Container deployment
└── .github/workflows/ # Automated CI verificationRunning Locally
# 1. Install dependencies
pip install -r requirements.txt
# 2. Configure credentials
export GOOGLE_API_KEY="your-gemini-api-key"
# 3. Run application
python main.pyRunning Tests
pytest tests/Related MCP Connectors
Run Python code in a secure sandbox without local setup. Declare inline dependencies and execute s…
The statistical analyst in your AI chat — validated, citable, re-runnable analysis of your data.
- mcp-serverOAuthai.cdbx
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.
Hosted Python sandbox for package runtime verification: pip install and usable-import evidence.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables secure cloud-based execution of code across 14+ programming languages within a sandboxed environment. It supports file management, standard input/output handling, and automatic generation of visual artifacts like plots and charts.MIT
- AlicenseNot gradedqualityAmaintenanceProvides sandboxed code execution for AI agents with support for Python, JavaScript, and shell commands. Includes comprehensive safety features like destructive pattern blocking, timeout protection, and restricted file access for secure production use.12 npm113 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to execute Python code securely in a sandboxed environment. Supports configurable restrictions like no network access and returns results including files.MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to securely execute Python and JavaScript code in sandboxed environments, with file management and package installation.725 npm-