{"_id":"mcp-server-code-runner","_rev":"9-2209ad38f98976c9483f91e1cbf2a545","name":"mcp-server-code-runner","dist-tags":{"latest":"0.1.8"},"versions":{"0.1.0":{"name":"mcp-server-code-runner","version":"0.1.0","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.0","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"cd77affbc2b5f533f0dff8337315e1dbcb86da27","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.0.tgz","fileCount":5,"integrity":"sha512-ip1IBMnl0AhUEp33RIfqxKtyLAVgO3YOcnj1S7cL8Rw4e8d5t0NKRbVl+rO1jTyz0qP8sV6IERkbhxLgSABujw==","signatures":[{"sig":"MEYCIQCz8qEWiZPQtRrLoC/aT6VjrYLQCNHJIRirWD1lhgtF8QIhAM0Apg72n8AeX/AfUotFUhPFRrLXWLsgBGzwNyqZN43h","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5079},"main":"index.js","type":"module","gitHead":"14f3600088affd723a5bac2343e78e1337103de4","scripts":{"build":"tsc && chmod 755 dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.0_1742384652682_0.8837977031962754","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"mcp-server-code-runner","version":"0.1.1","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.1","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"509b308fa8b7f8170d19493f2beb8d84be669637","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.1.tgz","fileCount":5,"integrity":"sha512-3okFWFEV/F7nhEM7jkNLnpWW+PmU1w3SsfN1AmUcc+mC4cA0ucFN1pu7dB0qEgvFrnNSiR6vO38sNyIWfpNqRA==","signatures":[{"sig":"MEUCIQDa4JLPtToofD7ijQwmCJlXhCQMB0+vYnrgM+8UMamjxgIgE5/UbWfW2I+H8U5yl1zeEaeywkrZfq7NKfrQJ7Tjn20=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5117},"main":"index.js","type":"module","gitHead":"90691bc7fbe99a5285ec5b6a9f0975eb04d9a7d2","scripts":{"build":"tsc && shx chmod +x dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.1_1742385471870_0.1540200698853318","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"mcp-server-code-runner","version":"0.1.2","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.2","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"c09b05f7a60288e40e29ed3af133158a94c6c24d","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.2.tgz","fileCount":5,"integrity":"sha512-2xX7hGc18UmV//PGPh9iR+C6OKMFjDbzqK40156TiwST0dXC2sJfKgwBemCLDShUCZ2r9XfKZ0Bq2pLHuChSRQ==","signatures":[{"sig":"MEQCIFjS3Nb8BtQB3p5t9WzxXNMPctINpuVAK1aGEoec9aseAiAFovEjiqb8O6oQZJGL0bhZlFzQTNnENrmq90hOCMhH9Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5095},"type":"module","gitHead":"34c22a72174b8f7dbf16cbc34840271826c6773a","scripts":{"build":"tsc && shx chmod +x dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.2_1742386001937_0.4602909980553036","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"mcp-server-code-runner","version":"0.1.3","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.3","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"d47d3ff248ba0f82a434c49d4fbdde56eec18006","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.3.tgz","fileCount":5,"integrity":"sha512-vTerxK1Aqt4hO87ZvlGVqtFTQn6CtMIyYfVbi8uMDEqKQ1Qn/2gKmCgSn8yps7UYCxV0lZ7cFaEzSN2iYsc5ag==","signatures":[{"sig":"MEYCIQDZ5o1s/YKlAnb0LbqdDk8teZM6MQj4KUo26XZyKdhVlgIhAIxRfJViUTb0J2SFyiy+HiPulTEQA/ZLpOa6hwhAMhF+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5115},"type":"module","gitHead":"332b678c8949dd7545d5326046a86ce3dd13ec80","scripts":{"build":"tsc && shx chmod +x dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.3_1742386651705_0.96190602069655","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"mcp-server-code-runner","version":"0.1.4","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.4","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"e1cde2876b53289d6834537a905c23290e4130bb","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.4.tgz","fileCount":5,"integrity":"sha512-ONQa0hIhvWVFr4CqmJCqoGNaW0ccB23KdZChnzoma3sq0m31LSS8MOdSAsIaKt1jvCEeCcgdx5+b5JNna3ffgg==","signatures":[{"sig":"MEUCIQC5r248ajoXhs4pv9xha2eui4mFErj0Uo15YR1wF1vWpQIgDHk+UrHY+6UYW08tvAppNak4bb1nek92tTqfwSj7ngs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6451},"type":"module","gitHead":"0d158909ac0c3f7bfb01abb08fb5c2e0c121313c","scripts":{"build":"tsc && shx chmod +x dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.4_1742427918905_0.37140743957091815","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"mcp-server-code-runner","version":"0.1.5","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.5","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"39ddb0c853c6e08d4eb3e60ce16a4a853fa858c4","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.5.tgz","fileCount":5,"integrity":"sha512-twEzNphu7M1FVTh2HDcDZ3moVSQvAJTxR7ckAAx9MkGB0d+p6bq5iwL8ar1JYmQts5OmoE8EH1+5spoTBEQLpw==","signatures":[{"sig":"MEUCIQDyCQCslRs3qV2Ab1FuM4ISfbtYp70bWkCJVz0IqvAVCQIgc8c9S/E/hpG67iCEZABXDiWe/NoVFN161maN0Q3NKNU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6990},"type":"module","gitHead":"7022d5332f04afd9e5f77b83eba684678e0f8213","scripts":{"build":"tsc && shx chmod +x dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.5_1742477918197_0.5665000081740628","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"mcp-server-code-runner","version":"0.1.6","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.6","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/index.js"},"dist":{"shasum":"255e10af796df6b211d6d1075a27222d85138dd9","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.6.tgz","fileCount":6,"integrity":"sha512-fd1vqNqgk//tIDB/ouFzI9KZ7K7BEzyu7Jm37MaocgW8Y3Aw31kmWXoNaXWWHhLNl3A0pY5tDcDJ6lqJgFFbcQ==","signatures":[{"sig":"MEQCIBU4YmSCeKpilGB5hQ7AWmNt2tWvFCUpF5ZFS1bhKpARAiBtuub3rbjYEylTKGeEf71GuXMY1Usi+S2c/hhJq79I7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8970},"type":"module","gitHead":"a169327e6e0dce951db939bade9976e0c43653d0","scripts":{"build":"tsc && shx chmod +x dist/index.js","start":"node ./dist/index.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","@modelcontextprotocol/sdk":"^1.7.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.6_1742693437546_0.6813680277783887","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"mcp-server-code-runner","version":"0.1.7","keywords":["mcp","code-runner","server"],"author":{"name":"Jun Han"},"license":"MIT","_id":"mcp-server-code-runner@0.1.7","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"bin":{"mcp-server-code-runner":"dist/cli.js"},"dist":{"shasum":"7707b234b7dfc64dabaa1fcac343d0ca230f0dde","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.7.tgz","fileCount":27,"integrity":"sha512-+8njcAw1HNvMWA7twxHf7OiZw1nViLBESmUkxp9B25o1rIgDKKUu976dEl5ovFK8XbK96WFZU5/QU/s7qR0yVQ==","signatures":[{"sig":"MEUCIA22qBUBkS1ycwH0J3myf1H6X2GNeNEw4RucKlUewZO/AiEAhQaPmZwr/PoqA6Kok/TGC8hAp1+nsJl62G5+Cxkm5GE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25938},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"5d49485f03385d86cc0588e1075e8dc355c03dda","scripts":{"build":"tsc && shx chmod +x dist/index.js dist/cli.js","start":"node ./dist/cli.js","watch":"tsc --watch"},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"repository":{"url":"git+https://github.com/formulahendry/mcp-server-code-runner.git","type":"git"},"_npmVersion":"10.8.2","description":"Code Runner MCP Server","directories":{},"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.24.2","express":"^5.1.0","commander":"^13.1.0","@modelcontextprotocol/sdk":"^1.10.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","typescript":"^5.8.2","@types/node":"^22.13.10","@types/express":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-code-runner_0.1.7_1745660236906_0.5939489301216851","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"mcp-server-code-runner","version":"0.1.8","mcpName":"io.github.formulahendry/code-runner","type":"module","main":"dist/index.js","bin":{"mcp-server-code-runner":"dist/cli.js"},"exports":{".":"./dist/index.js"},"scripts":{"build":"tsc && shx chmod +x dist/index.js dist/cli.js","watch":"tsc --watch","start":"node ./dist/cli.js"},"keywords":["mcp","code-runner","server"],"repository":{"type":"git","url":"git+https://github.com/formulahendry/mcp-server-code-runner.git"},"author":{"name":"Jun Han"},"license":"MIT","description":"Code Runner MCP Server","dependencies":{"@modelcontextprotocol/sdk":"^1.10.1","commander":"^13.1.0","express":"^5.1.0","zod":"^3.24.2"},"devDependencies":{"@types/express":"^5.0.1","@types/node":"^22.13.10","shx":"^0.4.0","typescript":"^5.8.2"},"_id":"mcp-server-code-runner@0.1.8","gitHead":"02b99a94bf056ce17525ae7d3b7370e1757e004b","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-E7vblFTD/Q99mieJ0xlkVAg3MeD7XREKcoSnmXn9OJ5gFD0BOA/2ljroIkflNH86R7pBQNGBjSIVbrVcCLGRaw==","shasum":"6620efc85965ce5235250af32798fa927e605635","tarball":"https://registry.npmjs.org/mcp-server-code-runner/-/mcp-server-code-runner-0.1.8.tgz","fileCount":27,"unpackedSize":26210,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHDsa67AYymXTLZmCfLGo7Iahmp3hBq/mmqxbq1Rtc79AiAuVFZQHkbb3jLO7TOJ2wrzJ3oPYGmFFQPfRXjgGWxDeQ=="}]},"_npmUser":{"name":"formulahendry","email":"formulahendry@gmail.com"},"directories":{},"maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-code-runner_0.1.8_1757392795924_0.789138978090506"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-19T11:44:12.681Z","modified":"2025-09-09T04:39:56.298Z","0.1.0":"2025-03-19T11:44:12.999Z","0.1.1":"2025-03-19T11:57:52.049Z","0.1.2":"2025-03-19T12:06:42.111Z","0.1.3":"2025-03-19T12:17:31.918Z","0.1.4":"2025-03-19T23:45:19.126Z","0.1.5":"2025-03-20T13:38:38.371Z","0.1.6":"2025-03-23T01:30:37.767Z","0.1.7":"2025-04-26T09:37:17.139Z","0.1.8":"2025-09-09T04:39:56.102Z"},"bugs":{"url":"https://github.com/formulahendry/mcp-server-code-runner/issues"},"author":{"name":"Jun Han"},"license":"MIT","homepage":"https://github.com/formulahendry/mcp-server-code-runner#readme","keywords":["mcp","code-runner","server"],"repository":{"type":"git","url":"git+https://github.com/formulahendry/mcp-server-code-runner.git"},"description":"Code Runner MCP Server","maintainers":[{"name":"formulahendry","email":"formulahendry@gmail.com"}],"readme":"# Code Runner MCP Server\r\n[![NPM Downloads](https://img.shields.io/npm/d18m/mcp-server-code-runner)](https://www.npmjs.com/package/mcp-server-code-runner) [![smithery badge](https://smithery.ai/badge/@formulahendry/mcp-server-code-runner)](https://smithery.ai/server/@formulahendry/mcp-server-code-runner) [![Docker Pulls](https://img.shields.io/docker/pulls/formulahendry/mcp-server-code-runner)](https://hub.docker.com/r/formulahendry/mcp-server-code-runner)\r\n\r\nMCP Server for running code snippet and show the result.\r\n\r\nIt supports running multiple programming languages: **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, Sass**. Full list could be seen here in [constants.ts](https://github.com/formulahendry/mcp-server-code-runner/blob/main/src/constants.ts).\r\n\r\n<a href=\"https://glama.ai/mcp/servers/d3mluq4vy9\">\r\n  <img width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/d3mluq4vy9/badge\" alt=\"mcp-server-code-runner MCP server\" />\r\n</a>\r\n\r\n## Setup\r\n\r\n### npx for VS Code\r\n\r\nInstall the Code Runner MCP server in VS Code using below buttons:\r\n\r\n[![Install in VS Code](https://img.shields.io/badge/Install_MCP_Server_(npx)-VS_Code-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522mcp-server-code-runner%2540latest%2522%255D%257D) [![Install in VS Code Insiders](https://img.shields.io/badge/Install_MCP_Server_(npx)-VS_Code_Insiders-24bfa5)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522mcp-server-code-runner%2540latest%2522%255D%257D)\r\n\r\nAlternatively, you can add configuration in `settings.json`:\r\n\r\n```json\r\n{\r\n  \"mcp\": {\r\n    \"inputs\": [],\r\n    \"servers\": {\r\n      \"mcp-server-code-runner\": {\r\n        \"command\": \"npx\",\r\n        \"args\": [\r\n          \"-y\",\r\n          \"mcp-server-code-runner@latest\"\r\n        ],\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### npx for Claude Desktop\r\n\r\nConfiguration in `claude_desktop_config.json`: \r\n\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"mcp-server-code-runner\": {\r\n      \"command\": \"npx\",\r\n      \"args\": [\r\n        \"-y\",\r\n        \"mcp-server-code-runner@latest\"\r\n      ],\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### Docker\r\n\r\nUse VS Code as example. Install the Code Runner MCP server in VS Code using below buttons:\r\n\r\n[![Install in VS Code](https://img.shields.io/badge/Install_MCP_Server_(Docker)-VS_Code-0098FF)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522docker%2522%252C%2522args%2522%253A%255B%2522run%2522%252C%2522--rm%2522%252C%2522-i%2522%252C%2522formulahendry%252Fmcp-server-code-runner%2522%255D%257D) [![Install in VS Code Insiders](https://img.shields.io/badge/Install_MCP_Server_(Docker)-VS_Code_Insiders-24bfa5)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522mcp-server-code-runner%2522%252C%2522command%2522%253A%2522docker%2522%252C%2522args%2522%253A%255B%2522run%2522%252C%2522--rm%2522%252C%2522-i%2522%252C%2522formulahendry%252Fmcp-server-code-runner%2522%255D%257D)\r\n\r\nAlternatively, you can add configuration in `settings.json`:\r\n\r\n```json\r\n{\r\n  \"mcp\": {\r\n    \"inputs\": [],\r\n    \"servers\": {\r\n      \"mcp-server-code-runner\": {\r\n        \"command\": \"docker\",\r\n        \"args\": [\r\n          \"run\",\r\n          \"--rm\",\r\n          \"-i\",\r\n          \"formulahendry/mcp-server-code-runner\"\r\n        ]\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### npx issue on Widnows\r\n\r\nOn Windows, [MCP servers may fail to connect with `npx`](https://github.com/modelcontextprotocol/servers/issues/40).\r\n\r\nYou could try below two workarounds:\r\n\r\n#### use bunx\r\n\r\n1. Install [Bun](https://bun.sh/docs/installation).\r\n2. In configuration, change `npx` with `bunx`.\r\n\r\n#### use cmd\r\n\r\nBelow is VS Code configuration in `settings.json`:\r\n\r\n```json\r\n{\r\n  \"mcp\": {\r\n    \"inputs\": [],\r\n    \"servers\": {\r\n      \"mcp-server-code-runner\": {\r\n        \"command\": \"cmd\",\r\n        \"args\": [\r\n          \"/c\",\r\n          \"npx\",\r\n          \"-y\",\r\n          \"mcp-server-code-runner@latest\"\r\n        ],\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n## Run with [Streamable HTTP Transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)\r\n\r\n```shell\r\nnpm install -g mcp-server-code-runner@latest\r\nmcp-server-code-runner --transport http\r\n```\r\n\r\n## Usage\r\n\r\nBefore using Code Runner MCP Server, please make sure interpreter or compiler of the programming language you want to run is set in `PATH` environment variable.\r\n\r\nTry below prompts in the application which has configured Code Runner MCP Server:\r\n\r\n* `Run the JavaScript Code: console.log(5+6)`\r\n* `Where is temporary folder in my OS? Use run-code tool`\r\n* `How many CPUs do I have in my machine? Use run-code tool`\r\n\r\n![](./images/usage-confirm.png)\r\n\r\n![](./images/usage-result.png)\r\n\r\n## Build your own MCP Server\r\n\r\nWant to build your own MCP Server? Try [Yeoman Generator for MCP Server](https://www.npmjs.com/package/generator-mcp) to create your MCP Server project!\r\n","readmeFilename":"README.md"}