mcp-interactive-repl
Allows starting and interacting with a Python interactive REPL session, including sending input, waiting for prompts, reading output, and terminating the session.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-interactive-repl start a Python REPL and run print('hello')"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-interactive-repl
An MCP server that provides generic interactive REPL access for Claude and other MCP clients. Useful for working with command-line tools that have prompt-based interfaces, interactively.
I only vibed this so that Claude could help me debug an issue in Quinix using the
qvminteractive debugger; hopefully it's useful.
Installation
npm install -g mcp-interactive-replOr use directly with npx (no install needed).
Related MCP server: ptywright
Usage
Add to your Claude Code MCP configuration (~/.claude/settings.json):
{
"mcpServers": {
"repl": {
"command": "npx",
"args": ["mcp-interactive-repl"]
}
}
}Or if installed globally:
{
"mcpServers": {
"repl": {
"command": "mcp-interactive-repl"
}
}
}Tools
repl_start
Start a REPL session with prompt detection. For example, to start the Python REPL:
{
"command": "python",
"args": ["-i"],
"prompt": "^>>> $"
}Parameters:
command(required): Command to runprompt(required): Regex pattern to detect the promptargs: Command arguments (default:[])cwd: Working directory (default: server's current directory)env: Additional environment variables, merged with server's environment (default:{})initialTimeout: Max milliseconds to wait for initial prompt (default: 30000)
repl_send
Send input to a session and wait for the next prompt.
{
"sessionId": "...",
"input": "print('hello')",
"timeout": 30000
}Parameters:
sessionId(required): Session ID fromrepl_startinput(required): Input to send (newline appended automatically)timeout: Max milliseconds to wait for prompt (default: 30000)
repl_read
Non-blocking read of the current output buffer.
{
"sessionId": "..."
}Parameters:
sessionId(required): Session ID fromrepl_start
repl_kill
Terminate a session.
{
"sessionId": "..."
}Parameters:
sessionId(required): Session ID fromrepl_start
repl_list
List all active sessions. Takes no parameters.
Development
npm install
npm run typecheck # Type check
npm run build # Build to dist/
npm run dev # Build and runAvailable Tools
5 toolsrepl_killC
Terminate a REPL session
Inputs: sessionId (required).
repl_listB
List all active REPL sessions
Inputs: no named parameters.
repl_readA
Non-blocking read of current output buffer
Inputs: sessionId (required).
repl_sendB
Send input to a REPL session and wait for the next prompt
Inputs: input (required), sessionId (required), timeout.
repl_startC
Start an interactive REPL process with prompt detection
Inputs: prompt (required), command (required), cwd, env, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool maps to a distinct lifecycle action: start, send (blocking), read (non-blocking), kill, list. The blocking vs. non-blocking distinction between repl_send and repl_read is explicitly documented, so overlap is minimal.
All five tools use the same repl_ prefix followed by a short verb (start, send, read, kill, list). The pattern is fully predictable and readable.
Five tools is a tight, well-scoped surface for managing interactive REPL sessions, with no redundant or filler tools.
Session lifecycle (create, interact, inspect, terminate, enumerate) is fully covered. Minor gaps exist: no explicit interrupt/signal-send or status/exit-code tool, though agents can approximate these via repl_send sending control characters.
Maintenance
Related MCP Connectors
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to spawn and control Codex CLI and Claude Code sessions on the host machine, with session management and filesystem access.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to launch and interact with terminal/TUI programs, providing tools to inspect and control live CLI/TUI sessions.3 npm1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides persistent interactive shell sessions via pseudo-terminals for MCP agents, enabling bidirectional communication, incremental reads, and stateful command execution across steps.6 npmMIT
- FlicenseNot gradedqualityCmaintenanceMCP server for programmatic lifecycle management of Claude Code sessions, supporting list, create, read, send, fork, wait, and interrupt operations.1-