
mcp-repl
Supports UIby posit-dev
Persistent R and Python REPL sessions for stateful data analysis and iterative coding.
What it does
mcp-repl provides agents with long-lived R or Python sessions. Unlike standard shell tools that run one-off commands, mcp-repl maintains state across tool calls, allowing agents to load data, define variables, and iterate on analysis without losing context.
Tools
repl: Executes code within the persistent session. Supports multi-step analysis and data exploration.repl_reset: Gracefully restarts the current interpreter session to clear state.
Installation
Install via Cargo:
cargo install --git https://github.com/posit-dev/mcp-repl --locked
Configure Claude Desktop:
{
"mcpServers": {
"python": {
"command": "mcp-repl",
"args": ["--sandbox", "workspace-write", "--oversized-output", "files", "--interpreter", "python"]
},
"r": {
"command": "mcp-repl",
"args": ["--sandbox", "workspace-write", "--oversized-output", "files", "--interpreter", "r"]
}
}
}
Supported hosts
- claude
- codex
Quick install
cargo install --git https://github.com/posit-dev/mcp-repl --lockedInformation
- Pricing
- free
- Published
- 5/10/2026
- stars





