trackmcp
Back to directory
lyuhau

claude-mcp-repl

View on GitHub

A python/shell/perl MCP written by Claude itself

0 stars PythonAI & Machine Learning 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 install

or

bash
uv pip install -r pyproject.toml

Configuration

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]

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

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP