isolator-mcp
1
The Isolator MCP Server is a TypeScript-based server that provides a secure sandbox to execute Python, Go, and JavaScript code. It uses Docker containers for isolation and integrates with the Model Context Protocol (MCP) for secure and configurable code execution.
Isolator MCP Server
isolator-mcp
is a Model Context Protocol (MCP) server written in TypeScript, providing a secure code execution sandbox using the embedded isolator
Go CLI tool. It allows LLM applications to safely run Python, Go, or JavaScript code snippets.
Features
- Executes code via the
execute_code
MCP tool. - Supports multiple languages and named snippets.
- Uses Docker for secure execution.
- Configurable security and resource limits.
- Returns structured results with error handling.
Prerequisites
- Docker for container execution.
- Go for building the embedded CLI.
- Node.js and npm for server dependencies.
Installation
- Build the
isolator
Go CLI. - Configure
isolator_mcp
inisolator_config.json
. - Install server dependencies with npm.
- Build TypeScript code.
- Configure MCP Host settings.
Local Development / Testing
- Build the Go CLI and TypeScript server.
- Run the server with Node.js and interact manually for testing.
Architecture & Flow
- MCP Host sends requests.
- Server processes and validates using
index.ts
. - Executes in Docker container.
- Server handles results and cleans up.
- MCP Host responds back to LLM.