microsandbox server is also a Model Context Protocol (MCP) server, enabling seamless integration with AI tools and agents that support MCP.
Claude.Desktop.Demo.mp4
The Model Context Protocol (MCP) is an open standard that allows AI models to securely connect to external data sources and tools. It provides a standardized way for AI assistants to access and interact with various services through a unified interface.
With MCP, your AI can:
- Execute code in secure sandboxes
- Access real-time data and services
- Perform complex operations safely
- Maintain context across interactions
microsandbox server supports MCP connections via Streamable HTTP transport only.
- Transport: HTTP
- URL:
http://localhost:5555/mcp - Method: Streamable HTTP
When running your microsandbox server, it automatically exposes MCP endpoints at:
http://localhost:5555/mcp
Note
The MCP endpoint uses the same host and port as your main microsandbox server.
-
Start your microsandbox server:
msb server start --dev
-
Configure your MCP client with the connection details above
-
Begin using sandbox tools through your AI assistant
Try these example prompts:
"Create a Python sandbox and run a simple hello world program""Start a Node.js sandbox, install express, and create a basic web server""Execute this shell command in a sandbox: curl -s https://api.github.com/users/octocat"
The microsandbox MCP server provides these tools:
sandbox_start- Create and start new sandboxessandbox_stop- Stop running sandboxessandbox_run_code- Execute code in sandboxessandbox_run_command- Run shell commandssandbox_get_metrics- Monitor sandbox status