Code Executor MCP Server
Enables Docker isolation for code execution in the Pro tier, providing enhanced security and environment control for running untrusted code.
Supports execution of JavaScript code with safety checks, output capture, and blocking of dangerous patterns like child_process and eval().
Allows running Jest test suites with pass/fail summaries, enabling AI agents to execute and validate JavaScript tests programmatically.
Enables execution of pytest test suites with pass/fail summaries, allowing AI agents to run and validate Python tests programmatically.
Provides Python code execution with safety checks, output capture, and blocking of dangerous patterns like os.system and subprocess calls.
Enables execution of shell commands with destructive-pattern blocking, output capture, and safety filters to prevent harmful operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Code Executor MCP Serverrun a Python script to calculate factorial of 10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Code Executor MCP
MCP server for code executor mcp operations
Overview
Code Executor MCP provides AI-powered tools via the Model Context Protocol (MCP).
Tools
Tool | Description |
| Execute code in a sandboxed environment with safety checks. |
| Execute a shell command and return stdout/stderr/exit_code. |
| Run a test suite and return results. Default: pytest. |
| Read contents of a file (restricted to allowed directories: Desktop, |
| List files in the sandbox working directory. All code execution |
| Get the current safety rules and blocked patterns for code execution. |
Installation
pip install meok-code-executor-mcpUsage with Claude Desktop
Add to your Claude Desktop MCP config (claude_desktop_config.json):
{
"mcpServers": {
"code-executor-mcp": {
"command": "python",
"args": ["-m", "meok_code_executor_mcp.server"]
}
}
}Usage with FastMCP
from mcp.server.fastmcp import FastMCP
# This server exposes 6 tool(s) via MCP
# See server.py for full implementationLicense
MIT © MEOK AI Labs
This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CSOAI-ORG/code-executor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server