About code-executor
code-executor is an MCP server published by bazinga012 in the Developer Tools category: the MCP Code Executor is an MCP server that allows LLMs to execute Python code within a specified Conda environment. Conduid read 9 tools from its source: append_to_code_file, check_installed_packages, configure_environment, execute_code, execute_code_file, get_environment_config and 3 more. No package is published for it, so it installs from a source checkout.
The repository has 211 stars and 43 forks, is licensed MIT, and its last commit was on 24 May 2025. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include code-execution and security.
Install
git clone https://github.com/bazinga012/mcp_code_executorTools (9)
append_to_code_fileAppend content to an existing Python code file. Use this to add more code to a file created with initialize_code_file, allowing you to build up larger code bases in parts.| Parameter | Type | Description |
|---|---|---|
| content * | string | Content to append to the file |
| file_path * | string | Full path to the file |
check_installed_packagesCheck if packages are installed in the ${ENV_CONFIG.type} environment| Parameter | Type | Description |
|---|---|---|
| packages * | array | List of packages to check |
configure_environmentChange the environment configuration settings| Parameter | Type | Description |
|---|---|---|
| conda_name | string | Name of the conda environment (required if type is 'conda') |
| type * | string | Type of Python environment |
| uv_venv_path | string | Path to the UV virtualenv (required if type is 'venv-uv') |
| venv_path | string | Path to the virtualenv (required if type is 'venv') |
execute_codeExecute Python code in the ${ENV_CONFIG.type} environment. For short code snippets only. For longer code, use initialize_code_file and append_to_code_file instead.| Parameter | Type | Description |
|---|---|---|
| code * | string | Python code to execute |
| filename | string | Optional: Name of the file to save the code (default: generated UUID) |
execute_code_fileExecute an existing Python file. Use this as the final step after building up code with initialize_code_file and append_to_code_file.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Full path to the Python file to execute |
get_environment_configGet the current environment configurationinitialize_code_fileCreate a new Python file with initial content. Use this as the first step for longer code that may exceed token limits. Follow with append_to_code_file for additional code.| Parameter | Type | Description |
|---|---|---|
| content * | string | Initial content to write to the file |
| filename | string | Optional: Name of the file (default: generated UUID) |
install_dependenciesInstall Python dependencies in the ${ENV_CONFIG.type} environment| Parameter | Type | Description |
|---|---|---|
| packages * | array | List of packages to install |
read_code_fileRead the content of an existing Python code file. Use this to verify the current state of a file before appending more content or executing it.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Full path to the file to read |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 804 words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 1 source file and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:4
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 1 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 804 words, fetched a month ago. The original in the repository is authoritative.
Read full README