🚀 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:
- Creates temporary
.mjsfiles for each execution - Runs the code directly with Node.js in a separate process
- Captures all console output and execution results
- Cleans up temporary files automatically
- 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'));
Simple JavaScript REPL
by AnEntrypoint
Project Details
- AnEntrypoint/mcp-repl
- mcp-repl
- Last Updated: 4/16/2025
Recomended MCP Servers
🧩
SVG to PNG Converter
A MCP server for svg-png conversion tool
Solana RPC Server
🧩
Match-3 Game Server
cursor写的消消乐
Excel File Processing Server
Excel数据处理微服务
🧩
MCP Video & Audio Text Extraction Server
BlueSky MCP Server
MongoDB Operations Service
A project to be pushed from local to GitHub using MCP service.
Tavus MCP Server
A comprehensive Model Context Protocol (MCP) server for the Tavus API, enabling AI video generation, replica management, conversational...
🧩
YugabyteDB MCP Server
MCP Server to interact with data in YugabyteDB
TfNSW Realtime Alerts
A Model Context Protocol (MCP) server for TfNSW's realtime alerts API
🧩
PowerShell Server
GNURadio MCP Server
MCP server for GNU Radio





