Isolator MCP Server

Isolator MCP Server

isolator-mcp•byompragash

A Model Context Protocol server that wraps an embedded Go CLI to run code in a secure, isolated Docker container sandbox.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes an execute_code MCP tool that accepts either inline language and entrypoint_code or a named snippet_name from a prompts directory.
  • •Runs Python, Go, or JavaScript inside Docker containers with configurable timeouts, resource limits, and network settings.
  • •Returns structured results combining stdout and stderr and flags tool-level failures via isError.
  • •Supports additional_files that are written alongside the entrypoint code into a temporary host directory before copying into the container.

BEST FOR

  • •LLM applications that need to safely execute code snippets generated by a model.
  • •Developers who want to run predefined code snippets by name from a prompts directory in an isolated container.

ABOUT ISOLATOR-MCP

Isolator MCP Server is cataloged as an MCP server attributed to ompragash. A Model Context Protocol server that wraps an embedded Go CLI to run code in a secure, isolated Docker container sandbox. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Isolator MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which languages does the execute_code tool support?

Python, Go, and JavaScript are supported, with languages configurable via the config file.

How are code execution inputs provided?

Either a snippet_name pointing to a predefined snippet file, or both language and entrypoint_code provided directly; these options are mutually exclusive.

What is required for the server to work?

A running Docker daemon, Go to build the embedded isolator CLI, and Node.js with npm to build and run the server.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2bdca41ef746 · 采集于 2026-11-13 10:47:48 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Isolator MCP Server

isolator-mcp is a Model Context Protocol (MCP) server written in TypeScript. It acts as a wrapper around the embedded isolator Go CLI tool, providing a secure code execution sandbox accessible via MCP.

LLM applications (MCP Hosts) can connect to this server and use its execute_code tool to safely run Python, Go, or JavaScript code snippets provided directly or loaded from predefined snippet files.

Features

  • Provides the execute_code MCP tool.
  • Supports executing code provided directly (language, entrypoint_code) or via named snippets (snippet_name).
  • Supports multiple languages (Python, Go, JavaScript, configurable).
  • Uses the embedded isolator Go CLI (isolator-cli/) for secure Docker container execution.
  • Configurable security defaults (timeout, resource limits, network) via isolator_config.json.
  • Manages temporary directories on the host for code execution.
  • Handles file copying into containers (by instructing the isolator CLI).
  • Returns structured results (stdout, stderr, status) via MCP, setting isError: true on tool-level failures.

Prerequisites

  • Docker: Required for container creation and execution by the isolator-cli. Ensure the Docker daemon is running.
  • Go: Required to build the embedded isolator-cli Go binary.
  • Node.js and npm: Required to install dependencies, build, and run the isolator-mcp TypeScript server.

Installation

  1. Build isolator Go CLI: Navigate to the embedded Go CLI directory and build the binary:
    cd isolator-cli
    go build -o isolator main.go
    cd .. 
    
    This creates the ./isolator-cli/isolator executable needed by the server.
  2. Configure isolator-mcp:
    • Edit isolator_config.json: Update isolatorPath to point to the absolute path of the built binary (e.g., /Users/ompragash/Documents/Cline/MCP/isolator-mcp/isolator-cli/isolator). Adjust default limits, container workdir, language images, or the promptsDir (used for snippets) location if needed.
    • Ensure the prompts directory exists (default: ./prompts). Add code snippet files (e.g., hello_world.py). The filename base (e.g., hello_world) is used as the snippet_name.
  3. Install Server Dependencies: Navigate to the main directory (isolator-mcp) and run:
    npm install
    
  4. Build Server: Compile the TypeScript code:
    npm run build
    
    This creates the executable script at build/index.js.
  5. Configure MCP Host: Add the server to your MCP client's settings file (e.g., cline_mcp_settings.json for the VS Code extension):
    {
      "mcpServers": {
        "isolator": {
          "command": "node",
          "args": ["/Users/ompragash/Documents/Cline/MCP/isolator-mcp/build/index.js"],
          "env": {},
          "disabled": false,
          "autoApprove": []
        }
      }
    }
    
    (Adjust the path in args if necessary). The MCP Host should automatically detect and start the server.

Important Note: Ensure the Docker images specified in isolator_config.json (e.g., python:3.11-alpine, golang:1.21-alpine) are pulled onto your system beforehand using docker pull <image_name>. The isolator tool does not automatically download missing images.

Local Development / Testing

To run the server locally for development or testing (without installing it via MCP Host settings):

  1. Build Go CLI: Ensure the isolator Go CLI is built within its subdirectory:
    cd isolator-cli 
    go build -o isolator main.go
    cd ..
    
  2. Build TS Server: In this main directory (isolator-mcp), run npm install and npm run build.
  3. Configure: Make sure isolator_config.json correctly points to the built ./isolator-cli/isolator binary via the isolatorPath key (use the absolute path).
  4. Run Server: Execute the built server directly using Node:
    node build/index.js
    
    The server will start, connect via stdio, and print logs (including console.error messages from index.ts) to the console.
  5. Interact (Manual): You can manually send JSON-RPC messages (e.g., tools/list, tools/call) to the server's standard input to test its responses. Tools like @modelcontextprotocol/inspector can also be helpful (npm run inspector).

(Remember to stop this manually run server before relying on the MCP Host to start it via the settings file.)

Architecture & Flow

  1. MCP Host Request: An LLM asks the MCP Host (e.g., VS Code Extension) to call the isolator server's execute_code tool with arguments.
  2. Server Processing (index.ts):
    • Receives the tools/call request via stdio.
    • Validates arguments using Zod.
    • Loads configuration from isolator_config.json.
    • Determines the code source:
      • If snippet_name is provided, reads the corresponding file from the configured promptsDir and determines the language from the file extension.
      • If entrypoint_code and language are provided, uses them directly.
    • Creates a temporary directory on the host.
    • Writes the entrypoint code and any additional_files into the temporary directory.
    • Constructs the command-line arguments for the embedded isolator Go CLI, including security flags from the config and the path to the temporary directory.
    • Spawns the isolator process using Node.js child_process.spawn.
  3. Go CLI Execution (isolator-cli/isolator run):
    • Parses flags (including the new --env flag).
    • Creates a tar stream of the temporary directory contents.
    • Uses the Docker SDK to create a container with specified image, resource limits, environment variables (from --env), and security settings (NO bind mount).
    • Uses CopyToContainer to copy the tar stream into the container's working directory.
    • Starts the container, which executes the requested command (e.g., python /workspace/hello_world.py).
    • Waits for completion, captures stdout/stderr.
    • Removes the container.
    • Prints the result (status, output, etc.) as JSON to its stdout.
  4. Server Result Handling (index.ts):
    • Reads the JSON output from the finished isolator process stdout.
    • Parses the JSON result.
    • Formats the CallToolResult for MCP, combining stdout/stderr and setting isError if the Go CLI reported a non-success status.
    • Sends the result back to the MCP Host.
    • Cleans up the temporary directory on the host.
  5. MCP Host Response: Relays the result back to the LLM, which then formulates a response for the user.

execute_code Tool

Description

Executes code (Python, Go, JavaScript) in a secure, isolated container environment.

Input Schema (arguments)

  • language (string, optional): The programming language (e.g., "python", "go", "javascript"). Required if snippet_name is not provided.
  • entrypoint_code (string, optional): The main code content to execute. Required if snippet_name is not provided.
  • entrypoint_filename (string, optional): Filename for the main code (e.g., "main.py", "script.js"). Defaults based on language if not provided.
  • additional_files (array, optional): Array of objects, each with:
    • filename (string, required): Name of the additional file.
    • content (string, required): Content of the additional file.
  • snippet_name (string, optional): Name of a pre-defined code snippet file (without extension) located in the configured promptsDir. Mutually exclusive with language and entrypoint_code.

Constraint: Either snippet_name OR both language and entrypoint_code must be provided.

Output (CallToolResult)

  • content: An array containing a single TextContent object.
    • type: "text"
    • text: A string containing the combined stdout and stderr from the execution, formatted like:
      --- stdout ---
      [Actual stdout output]
      --- stderr ---
      [Actual stderr output]
      
      If an error occurred during execution (non-zero exit code, timeout), the text will be prepended with Execution Failed (status): [error message]\n\n.
  • isError (boolean): true if the execution status reported by the isolator CLI was "error" or "timeout", false otherwise.

(Protocol-level errors, like invalid arguments or failure to start the process, will result in a standard MCP error response instead of a CallToolResult).

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Isolator MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/isolator-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools