DevelopmentPython

mcp-server-code-execution-mode

This MCP server executes Python code in isolated rootless containers, reducing context bloat for MCP tools.

Free
N/A rating (0 reviews)0 installs320 GitHub stars
MCPCode ExecutionPython

The MCP Code Execution Server is designed to minimize the context required for executing code by leveraging rootless security features. By implementing a bridge that utilizes the discovery patterns proposed by industry leaders like Anthropic and Cloudflare, this server allows for efficient execution of Python code while maintaining a secure environment. It significantly reduces the context size from 30,000 tokens to just 200 tokens, making it more cost-effective for users who rely on MCP tools. In addition to its core functionality, the server supports optional proxying for standard input/output operations, enabling seamless integration with existing systems. This innovative approach not only enhances the performance of language models in generating code but also streamlines the process of interacting with MCP tools, allowing developers to focus on building applications without the overhead of managing extensive context definitions.

Compatible with

Claude DesktopCursor

Install

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-server-code-execution-mode": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-code-execution-mode"
      ]
    }
  }
}

Config File Location

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Linux: ~/.config/claude/claude_desktop_config.json

Some servers require additional setup - check the GitHub README for specific instructions.

Permissions

ok0
ok1