Overview
What is mcp-code-runner?
mcp-code-runner is a code executor that implements the Model Context Protocol (MCP). It runs code inside Docker containers and returns the execution results. It is designed for developers who need to safely execute code through an MCP-compatible client.
How to use mcp-code-runner?
The README does not provide specific installation or invocation instructions. It only states that Docker must be installed on the host machine because all code execution happens inside Docker containers.
Key features of mcp-code-runner
- Implements the MCP protocol.
- Executes code and returns results.
- Uses Docker for isolated execution.
- Requires Docker to be installed locally.
Use cases of mcp-code-runner
- Execute code snippets from an MCP client.
- Run user-provided code in a sandboxed Docker environment.
- Integrate code execution capabilities into AI assistants or tools that speak MCP.
FAQ from mcp-code-runner
What does mcp-code-runner do?
It is a code executor that uses Docker to safely run code and return the output. It communicates via the MCP protocol.
Does mcp-code-runner require any special setup?
Yes. You must have Docker installed on the machine where the server runs, because all code execution happens inside Docker containers.
Can mcp-code-runner report execution time or memory usage?
Currently, no. The README lists these as planned features, but they are not yet implemented. Only the code output is returned.
Is mcp-code-runner an MCP server?
Yes. It implements the Model Context Protocol, so it can be used with any MCP-compatible client.
What programming languages does mcp-code-runner support?
The README does not specify supported languages. The only detail given is that execution happens via Docker, so the actual language support likely depends on the Docker image used.