Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ This MCP server provides a Python REPL (Read-Eval-Print Loop) as a tool. It allo

## Setup

No setup needed! The project uses `uv` for dependency management.

### Prerequisites
- Install `uv` if you haven't already
- Clone this repository
```bash
git clone https://github.com/hdresearch/mcp-python
```
## Running the Server

Simply run:

```bash
uv run src/python_repl/server.py
cd mcp-python
uv run src/mcp_python/server.py
```

## Usage with Claude Desktop
Expand All @@ -25,7 +30,7 @@ Add this configuration to your Claude Desktop config file:
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/python-repl-server",
"/absolute/path/to/mcp-python",
"run",
"mcp_python"
]
Expand All @@ -34,6 +39,10 @@ Add this configuration to your Claude Desktop config file:
}
```

- `/absolute/path/to/mcp-python` might look like `/Users/hdresearch/repos/mcp-python`
- if `mcp_python` is not working, substitute with `src/mcp_python/server.py`


The server provides three tools:

1. `execute_python`: Execute Python code with persistent variables
Expand Down