Skip to main content
Glama

Code Executor MCP

MCP server for code executor mcp operations

PyPI License: MIT MEOK AI Labs

Overview

Code Executor MCP provides AI-powered tools via the Model Context Protocol (MCP).

Tools

Tool

Description

execute_code

Execute code in a sandboxed environment with safety checks.

run_command

Execute a shell command and return stdout/stderr/exit_code.

run_tests

Run a test suite and return results. Default: pytest.

read_file

Read contents of a file (restricted to allowed directories: Desktop,

list_sandbox_files

List files in the sandbox working directory. All code execution

get_safety_rules

Get the current safety rules and blocked patterns for code execution.

Installation

pip install meok-code-executor-mcp

Usage 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 implementation

License

MIT © MEOK AI Labs

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)

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