Basic information
About Code Runner MCP Server
Run Python code online or compile Java programs easily with Code Runner. Test code in 30+ languages instantly in your browser.
Code Runner is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by formulahendry. It exposes 1 tool, including run-code. Supported transport: stdio, streamable-http. Runtime: TypeScript. License: MIT. The repository has 242 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools.
Setup
{
"mcpServers": {
"mcp-server-code-runner": {
"command": "npx",
"args": [
"-y",
"mcp-server-code-runner@latest"
]
}
}
}
{
"mcpServers": {
"mcp-server-code-runner": {
"command": "npx",
"args": [
"-y",
"mcp-server-code-runner@latest"
]
}
}
}
{
"servers": {
"mcp-server-code-runner": {
"command": "npx",
"args": [
"-y",
"mcp-server-code-runner@latest"
]
}
}
}
Code Runner MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-code-runner": {
"command": "npx",
"args": [
"-y",
"mcp-server-code-runner@latest"
]
}
}
}
Code Runner MCP Server tools
- run-code — Run code snippet and return the result.
Overview
What is Code Runner?
Code Runner MCP Server is an MCP server that runs code snippets and displays the results. It supports multiple programming languages including JavaScript, Python, Ruby, Go, PHP, and many others. This server is for developers who want to execute code directly through MCP-compatible applications like VS Code or Claude Desktop.
How to use Code Runner?
Install and configure the server via npx, Docker, or bunx in your MCP client's configuration file (e.g., settings.json for VS Code or claude_desktop_config.json for Claude Desktop). Ensure the interpreter or compiler for your desired language is set in the PATH environment variable, then use prompts like Run the JavaScript Code: console.log(5+6).
Key features of Code Runner
- Runs code snippets in 37+ programming languages
- Supports setup via npx, Docker, or bunx
- Offers Streamable HTTP Transport option
- Returns execution output and results to the client
- Works with VS Code, Claude Desktop, and other MCP hosts
- Simple prompt-based usage with
run-codetool
Use cases of Code Runner
- Execute ad-hoc code snippets without leaving your editor
- Test small scripts or algorithms during development
- Run system commands or retrieve OS information via code
- Validate code logic before integrating into larger projects
Frequently asked questions
1 What languages does Code Runner MCP Server support?
It supports JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, C# Script, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Clojure, Racket, Scheme, AutoHotkey, AutoIt, Kotlin Script, Dart, Haskell, Ni, Lisp, Kit, V, SCSS, and Sass. The full list is in the source constants file.
2 What are the runtime requirements?
The interpreter or compiler for each programming language you want to run must be installed and available in your system's PATH environment variable.
3 How can I run the server with HTTP instead of stdio?
Use the command mcp-server-code-runner --transport http after installing the package globally via npm install -g mcp-server-code-runner@latest.
4 What can I do if npx fails on Windows?
If npx fails to connect, try using bunx instead of npx, or wrap the npx command with cmd and /c in your configuration.
5 How do I install the server for use with Claude Desktop?
Add a mcpServers entry in your claude_desktop_config.json with "command": "npx" and "args": ["-y", "mcp-server-code-runner@latest"].
Videos
Tutorials, guides, and showcases related to Code Runner MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In