# Code Runner MCP Server

> Run code snippets in many programming languages and view the results.

- **URL**: https://followmcp.com/en/servers/mcp-server-code-runner
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 240
- **FMRS Score**: 46/100 (Grade D)
- **Source**: https://github.com/formulahendry/mcp-server-code-runner
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js
- **Auth**: No credential needed

## Overview
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.

## 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.

## Not for
- Users who need to run code without the relevant language runtime on the machine.
- Read-only workflows; this server is designed to execute code.

## Required permissions
- At runtime, it needs access to the target language interpreter or compiler configured on PATH.
- Code may access resources available to its execution environment; the README does not describe sandboxing or permission limits.

## Risks
- Executed code may have unintended side effects; the README does not describe isolation or sandboxing.
- Code may fail to run if the target language interpreter or compiler is not on PATH.

## Client config (JSON)
```json
{"mcpServers":{"mcp-server-code-runner":{"command":"npx","args":["-y","mcp-server-code-runner@latest"]}}}
```

## Tools (1)
- `run-code`: Runs a code snippet and returns its result.
