# MCP Python Refactoring

MCP Python Refactoring is a self-hosted ai app. An MCP server that analyzes Python code and provides guided, step-by-step refactoring suggestions to AI coding assistants without automatically modifying your code. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5490/mcp-python-refactoring

## Description

An MCP server that analyzes Python code and provides guided, step-by-step refactoring suggestions to AI coding assistants without automatically modifying your code.

## Platform availability

Available on 0 of 10 platforms.

## Health score

48/100 (Fair), based on 4 of 5 factors.
- Maintained: 91 (last commit 15 days ago)
- Popular: 24 (14 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 15 (2 serious findings, 10 minor, CI, tests)

## Security check

2 serious findings: Uses certifi 2026.7.22, which has a known critical vulnerability; Uses pyjwt 2.13.0, which has a known critical vulnerability.
Automated checks on commit b2ade1f, 19 Nov 2026. Not an audit.

## Links

- GitHub: https://github.com/slamer59/mcp-python-refactoring
- Docker Hub: https://hub.docker.com/r/mcp/mcp-python-refactoring

## Common questions

### Will the server rewrite my Python files automatically?

No, it analyzes Python code and provides guided refactoring suggestions without automatically modifying your code.

### Can I connect it to AI coding assistants other than Claude?

Yes, it integrates with AI coding assistants such as Claude, ChatGPT, and Cursor.

### Which Python code-analysis libraries are listed for the project?

The project lists ROPE, Radon, Vulture, and Jedi among its Python code-analysis tools.

### Should I expose the server over HTTP as a remote MCP endpoint?

The official MCP Python SDK uses stdio communication by default, so use the client's stdio launcher instead of trying to start the server with HTTP.

---
Source: Our Local Host (https://ourlocalhost.com/app/5490/mcp-python-refactoring), the self-hosted and open-source app directory.
