claude-mcp-repl
A python/shell/perl MCP written by Claude itself
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:
poetry installor
uv pip install -r pyproject.tomlConfiguration
Add to your Claude Desktop config file:
{
"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]
Frequently asked questions
What is claude-mcp-repl?
claude-mcp-repl is A python/shell/perl MCP written by Claude itself
How do I install claude-mcp-repl?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is claude-mcp-repl open source?
Yes — it is hosted on GitHub at https://github.com/lyuhau/claude-mcp-repl.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP