A python/shell/perl MCP written by Claude itself
0 stars
Python
Updated Jan 3, 2025
Documentation
Claude REPL Server
A Python-based REPL server that enhances Claude with Python execution, shell commands, and file manipulation capabilities.
Features
Python Tools
- **One-off Python (
python)**: Run code in fresh environments - Great for quick calculations and tests
- Pandas and PyArrow support available
- Clean environment each time
- **Session-based Python (
python_session)**: Run code with persistent state - Keep variables between executions
- Perfect for data analysis workflows
- Sessions remain active for 5 minutes
Shell Tools
- **Command execution (
shell)**: Run shell commands - Quick commands return immediately
- Long-running commands switch to async mode
- Returns task ID for tracking
- **Task status (
shell_status)**: Monitor long-running commands - Check progress of async commands
- Get outputs when completed
- View execution time and results
File Tools
- **File modification (
perl)**: Safe text processing - Pattern-based search and replace
- Multi-line transformations
- UTF-8 support built-in
- Preserves file structure
Installation
1. Clone the repository
2. Install dependencies:
bash
poetry installor
bash
uv pip install -r pyproject.tomlConfiguration
Add to your Claude Desktop config file:
json
{
"mcpServers": {
"repl": {
"command": "/path/to/python/env/bin/python",
"args": ["-m", "repl"]
}
}
}Config locations:
- Windows:
%APPDATA%/Roaming/Claude/claude_desktop_config.json - macOS: (TBD)
- Linux: (TBD)
For detailed setup instructions and alternative configurations, see INSTALLATION.md.
Contributing
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
License
[Add license info]
Similar MCP
Based on tags & features
Trending MCP
Most active this week