execute code
execute code. Exposed over MCP by the mcp code executor mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.
The MCP Code Executor is an MCP server that allows LLMs to execute Python code within a specified Python environment. This enables LLMs to run code with access to libraries and dependencies defined in the environment. It also supports incremental code generation for handling large code blocks that may exceed token limits.
You will need 5 environment variables: CODE_STORAGE_DIR, ENV_TYPE, CONDA_ENV_NAME, VENV_PATH, UV_VENV_PATH. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by bazinga012; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MCP Code Executor's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
{
"mcpServers": {
"mcp-code-executor": {
"command": "node",
"args": [
"/path/to/mcp_code_executor/build/index.js"
],
"env": {
"CODE_STORAGE_DIR": "/path/to/code/storage",
"ENV_TYPE": "conda",
"CONDA_ENV_NAME": "your-conda-env"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| CODE_STORAGE_DIR | Filesystem location the server is allowed to use. | Optional |
| ENV_TYPE | Configuration value read at startup. | Optional |
| CONDA_ENV_NAME | Configuration value read at startup. | Optional |
| VENV_PATH | Filesystem location the server is allowed to use. | Optional |
| UV_VENV_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.