The MCP-REPL server provides a comprehensive JavaScript/TypeScript execution and code analysis environment with advanced tooling for debugging, search, and transformation.
Execute JavaScript/TypeScript code directly with Node.js or Deno, supporting ESM imports, CommonJS compatibility, dynamic imports, type checking, and full access to native APIs including web requests
Debug and test hypotheses through iterative code execution with structured debugging approaches and batch operations for complex workflows
Perform semantic code search with natural language queries, metadata extraction, and AST-aware chunking across project directories with configurable folders, ignores, and extensions
Conduct AST-based pattern matching using ast-grep for searching, replacing, linting, and analyzing code structures with support for dry runs and interactive mode
Transform and validate code with pattern-based replacements and YAML-defined rule validation for linting purposes
Analyze AST structures with debugging capabilities for query analysis, pattern understanding, and full tree context viewing
Work across multiple environments including Claude Code, Cursor, GitHub Copilot, and VS Code with flexible configuration options
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:
local-only server
The server can only run on the client's local machine because it depends on local resources.
A secure JavaScript REPL server that enables executing code snippets in a sandboxed environment with memory protection, timeout handling, and comprehensive error reporting.
Related MCP Servers
- AsecurityFlicenseAqualityProvides a secure, isolated JavaScript execution environment with configurable time and memory limits for safely running code from Claude.Last updated -1275
- -securityFlicense-qualityA server that enables AI assistants to execute JavaScript code with persistent context through stateful REPL sessions, file operations, and package management features.Last updated -
- -securityFlicense-qualityA secure MCP server that provides controlled ShellJS access for LLMs, enabling AI systems to safely execute shell commands and interact with the filesystem within a configurable security sandbox.Last updated -
- -securityFlicense-qualityProvides secure execution of arbitrary JavaScript code within a sandboxed QuickJS WASM environment, allowing language models or other MCP clients to safely run JavaScript code snippets without compromising the host system.Last updated -4