Best for
- Developers who need to run code snippets and view results from an MCP client.
- Users who have the interpreter or compiler for the target language installed and configured.
The source describes a server for running code snippets in many languages, provides a stdio package configuration, and documents a Streamable HTTP startup method in the README. Execution depends on local language runtimes; the source does not describe sandboxing or code isolation.
Strongest · Setup experience 13/20 Weakest · Security and permissions 5/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js
The Claude Desktop example uses npx -y mcp-server-code-runner@latest. VS Code can use the same npx command or the Docker example provided in the README. The README also documents installing the npm package globally and passing --transport http to use Streamable HTTP transport. Before running code, ensure the target language's interpreter or compiler is available on PATH.
{"mcpServers":{"mcp-server-code-runner":{"command":"npx","args":["-y","mcp-server-code-runner@latest"]}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"mcp-server-code-runner": {
"command": "npx",
"args": [
"-y",
"mcp-server-code-runner@latest"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.mcp-server-code-runner] command = "npx" args = ["-y", "mcp-server-code-runner@latest"]
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add mcp-server-code-runner -- npx -y mcp-server-code-runner@latest
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that run-code appears in the client's tool list. Call it with `console.log(5+6)` and check that the result is 11.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Code Runner MCP Server runs code snippets in various programming languages and shows the results. The README lists languages including JavaScript, PHP, Python, Ruby, Go, PowerShell, Bash, TypeScript, Swift, R, Kotlin Script, and Dart. The interpreter or compiler for the language being run must be available on PATH.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision 529b5ed4654c Data synced 2026-12-05 Read the FMRS scoring method Markdown