Code Runner Mcp
If you are the rightful owner of Code Runner Mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Code Runner MCP is a secure sandbox environment for running JavaScript, TypeScript, and Python code with support for dynamic package imports.
Code Runner MCP is a versatile tool designed to execute JavaScript, TypeScript, and Python code snippets in a secure and isolated environment. It leverages the Deno runtime for JavaScript and TypeScript, providing native TypeScript support and dynamic imports, while Python code is executed using Pyodide, a WebAssembly-based CPython interpreter. This setup ensures that code runs in a sandboxed environment, minimizing security risks and allowing for dynamic package management. The tool is particularly useful for AI-driven applications, enabling quick testing of npm or Python packages, logic verification, and execution of testable functions. It supports importing any package, although first-time imports may require installation time. The project is inspired by the ai.pydantic.dev/mcp/run-python project and extends its capabilities by adding JavaScript support.
Features
- Secure Sandbox: Isolated environment with strict limitations on file system, network, and environment variable access.
- Multi-language Support: Execute JavaScript/TypeScript and Python code snippets.
- Import Any Package: Dynamically import and use external libraries in your code.
- Native TypeScript Support: Run TypeScript files directly without extra compilation.
- Dynamic Imports & Dependency Management: Full support for ES module standards and npm package imports.