H
hdresearch/mcp-python
A python repl for MCP
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# Python REPL MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
This MCP server provides a Python REPL (Read-Eval-Print Loop) as a tool. It allows execution of Python code through the MCP protocol with a persistent session.
## Setup
No setup needed! The project uses uv for dependency management.
## Running the Server
Simply run:
bash
uv run src/python_repl/server.py
## Usage with Claude Desktop
Add this configuration to your Claude Desktop config file:
json
"mcpServers": {
"python-repl": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/python-repl-server",
"run",
"mcp_python"
The server provides three tools:
1. execute_python: Execute Python code with persistent variables
code: The Python code to execute
reset: Optional boolean to reset the session
2. list_variables: Show all variables in the current session
3. install_package: Install a package from pypi
## Examples
Set a variable:
python
a = 42
Use the variable:
python
print(f"The value is {a}")
List all variables:
python
# Use the list_variables tool
Reset the session:
python
# Use execute_python with reset=true
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request. Here are some ways you can contribute:
Report bugs
Suggest new features
Improve documentation
Add test cases
Submit code improvements
Before submitting a PR, please ensure:
1. Your code follows the existing style
2. You've updated documentation as needed
3. Maybe write some tests?
For major changes, please open an issue first to discuss what you would like to change.
## Setup
No setup needed! The project uses uv for dependency management.
## Running the Server
Simply run:
bash
uv run src/python_repl/server.py
## Usage with Claude Desktop
Add this configuration to your Claude Desktop config file:
json
"mcpServers": {
"python-repl": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/python-repl-server",
"run",
"mcp_python"
The server provides three tools:
1. execute_python: Execute Python code with persistent variables
code: The Python code to execute
reset: Optional boolean to reset the session
2. list_variables: Show all variables in the current session
3. install_package: Install a package from pypi
## Examples
Set a variable:
python
a = 42
Use the variable:
python
print(f"The value is {a}")
List all variables:
python
# Use the list_variables tool
Reset the session:
python
# Use execute_python with reset=true
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request. Here are some ways you can contribute:
Report bugs
Suggest new features
Improve documentation
Add test cases
Submit code improvements
Before submitting a PR, please ensure:
1. Your code follows the existing style
2. You've updated documentation as needed
3. Maybe write some tests?
For major changes, please open an issue first to discuss what you would like to change.
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/hdresearch-mcp-python/)
- Source
- awesome · https://github.com/hdresearch/mcp-python
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.