run-code
Run code snippet and return the result.
Hand over a snippet and the language it is written in, and get its output back in the same turn.
LABSCO SUMMARY
The parameters are the code and its languageId — there is no session id, no working directory, no file handle — so each call stands alone and nothing you define in one is waiting in the next. That makes it a scratchpad for settling a question about behaviour, not a place to build something up across several steps.
A single-tool server that runs a code snippet in a named language and returns the result.
Node.js to run the server, and the interpreter or compiler for every language you want to run, on your PATH: the server calls the one already installed and brings none of its own. Each call then takes the snippet and a languageId naming its language.
One command — npx -y mcp-server-code-runner
USE CASES
Hand over the code with its languageId and read the result, instead of reasoning about the output and being wrong about an edge case.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
run-codeRun code snippet and return the result.
BEFORE YOU INSTALL
1 tool when we connected.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-server-code-runner": {
"command": "npx",
"args": [
"-y",
"mcp-server-code-runner"
]
}
}
}npx -y mcp-server-code-runner