Integrations

  • Provides a secure JavaScript REPL (Read-Eval-Print-Loop) environment to execute code snippets with error handling, memory management, and output formatting.

  • Enables secure access to Node.js built-in modules and execution of JavaScript code in a sandboxed VM context with working directory support.

  • Allows running the REPL directly via npx without installation or installing it globally through npm for repeated usage.

🚀 Direct Node.js REPL Executor

🧙‍♂️ Simplified JavaScript Execution Environment

A streamlined direct Node.js execution environment that enables seamless code execution with full support for:

  • ESM Modules - Native import/export syntax
  • Dynamic Imports - Full support for await import()
  • CommonJS compatibility - Works with require() through createRequire
  • Native Node.js API access - Direct access to all Node.js features

🧩 Configuration

For Cursor, update your .cursor/mcp.json configuration:

{ "mcpServers": { "mcp-repl": { "command": "node", "args": [ "path/to/direct-node-executor.js", "path/to/your/project" ], "env": {}, "disabled": false, "autoApprove": ["execute"] } } }

✨ Features

  • 🚀 Direct Node.js Execution: Runs code directly in Node.js without VM sandboxing
  • 📦 Full Module Support: Seamless support for ESM and CommonJS modules
  • ⏱️ Real-time Feedback: Get immediate results from code execution
  • 🔍 Enhanced Debugging: Clean output with proper error handling
  • 🧠 Simple Architecture: Streamlined implementation with minimal complexity
  • 🔄 File System Access: Full access to the file system for real testing

🛠️ Implementation Details

This implementation:

  1. Creates temporary .mjs files for each execution
  2. Runs the code directly with Node.js in a separate process
  3. Captures all console output and execution results
  4. Cleans up temporary files automatically
  5. Returns standardized results to the MCP client

📝 Usage Examples

// Dynamic imports const fs = await import('fs/promises'); const path = await import('path'); // Reading files const content = await fs.readFile('package.json', 'utf8'); console.log(JSON.parse(content)); // Using path utilities console.log(path.join('folder', 'file.txt'));

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A secure JavaScript REPL server that enables executing code snippets in a sandboxed environment with memory protection, timeout handling, and comprehensive error reporting.

  1. 🧙‍♂️ Simplified JavaScript Execution Environment
    1. 🧩 Configuration
      1. ✨ Features
        1. 🛠️ Implementation Details
          1. 📝 Usage Examples

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              The sessionless code interpreter. Securely run AI-generated code in stateful sandboxes that run forever.
              Last updated -
              65
              176
              Rust
              MIT License
            • A
              security
              F
              license
              A
              quality
              Provides a secure, isolated JavaScript execution environment with configurable time and memory limits for safely running code from Claude.
              Last updated -
              1
              5
              JavaScript
              • Apple
            • -
              security
              F
              license
              -
              quality
              A server that enables AI assistants to execute JavaScript code with persistent context through stateful REPL sessions, file operations, and package management features.
              Last updated -
              TypeScript
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              Enables mapping JavaScript error stack traces back to original source code, extracting context information to help developers locate and fix issues.
              Last updated -
              2
              150
              2
              TypeScript
              MIT License

            View all related MCP servers

            ID: qxzhferyl6