Best MCP Servers for Code Execution (2026)

The best MCP servers for code execution — let AI agents run code, shell commands, and scripts in sandboxed environments and get results back.

Browse all Code Execution servers →
  1. 1
    N
    Node Code Sandbox Mcpalfonsograziano
    Most popular in this category on AllMCPs
    A Node.js MCP server that spins up isolated Docker-based sandboxes for executing JavaScript snippets with on-the-fly npm dependency installation and clean teardown
    0 0 0
  2. 2
    P
    Piston Mcpalvii147
    Community pick
    MCP server that lets LLMs execute code through the Piston remote code execution engine, with a zero-config uv setup and a ready-to-use Claude Desktop config example.
    0 0 0
  3. 3
    E
    E2b Sandbox Mcpasif-nvc
    Community pick
    Connect Claude Code with E2B cloud sandboxes — 29 tools for creating isolated Linux VMs, cloning repos, running commands, managing files, and performing git operations without touching the local machine.
    0 0 0
  4. 4
    O
    Openapi Mcpckanthony
    Community pick
    OpenAPI-MCP: Dockerized MCP Server to allow your AI agent to access any API with existing api docs.
    0 0 0
  5. 5
    C
    Container Usedagger
    Community pick
    Containerized environments for coding agents. Multiple agents can work independently, isolated in fresh containers and git branches. No conflicts, many experiments. Full execution history, terminal access to agent environments, git workflow. Any agent/model/infra stack.
    0 0 0
  6. 6
    O
    Outsource Mcpgwbischof
    Community pick
    Give your AI assistant its own AI assistants. For example: "Could you ask openai to generate an image of a dog?"
    0 0 0
  7. 7
    M
    Matlab Mcp Server PythonHanSur94
    Community pick
    Connect AI agents to MATLAB — execute code, run async jobs with progress reporting, get interactive Plotly plots, expose custom .m functions as tools, and monitor via live dashboard.
    0 0 0
  8. 8
    P
    PRIMShileamlakB
    Community pick
    A Python Runtime Interpreter MCP Server that executes user-submitted code in an isolated environment.
    0 0 0
  9. 9
    S
    Srunxksterx
    Community pick
    MCP server for the SLURM workload manager. Submit jobs, run YAML workflows, monitor GPU resources, manage SSH profiles, and sync files to remote HPC clusters from natural language. 14 tools spanning local SLURM and SSH-remote clusters; companion CLI and FastAPI Web UI ship in the same package.
    0 0 0
  10. 10
    M
    Mcp Servermavdol/capsule
    Community pick
    Run untrusted Python/JavaScript code in WebAssembly sandboxes.
    0 0 0

Frequently asked questions

What is the best MCP server for running code?

Sandboxed code-execution servers that support Python and JavaScript are the most installed. This page ranks code-execution MCP servers by real usage.

Is it safe to let an AI agent execute code?

Only inside a sandbox. Prefer servers that run code in an isolated container or ephemeral environment, never with direct access to your host, credentials, or production data.

Which languages do code-execution MCP servers support?

Python and JavaScript are the most common; several also handle shell commands or arbitrary languages via a container. Check each listing for the exact runtime.

More best-of guides

Best for DatabasesBest for DevelopersBest for Web Search & ScrapingBest for SecurityBest for Browser AutomationBest for Slack & CommunicationBest for Memory & KnowledgeBest for Finance & Fintech