Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
MCP server exposing Martin Fowler's refactoring catalog to LLMs with 71+ refactorings
Pick the AI app you use, then copy the settings.
Passed 1/2 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
One time only; it works for every server that needs Python (uv)
SettingsDeveloperEdit Config
{
"mcpServers": {
"refactoring": {
"command": "uvx",
"args": [
"mcp-refactoring"
]
}
}
}Use Refactoring MCP Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using Refactoring MCP Server or shows a Refactoring MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Refactoring MCP Server yet
Refactoring MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Refactoring MCP Server
B · Others in Search & AI memory that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user refactoring -- uvx mcp-refactoringYou should see Refactoring MCP Server listed as connected
Use Refactoring MCP Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Refactoring MCP Server or shows a Refactoring MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Use Refactoring MCP Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Refactoring MCP Server or shows a Refactoring MCP Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Use Refactoring MCP Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Refactoring MCP Server or shows a Refactoring MCP Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user refactoring -- uvx mcp-refactoringClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"refactoring": {
"command": "uvx",
"args": [
"mcp-refactoring"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"refactoring": {
"command": "uvx",
"args": [
"mcp-refactoring"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"refactoring": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-refactoring"
]
}
}
}These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 12, 2026
The registry name was verified with the GitHub account marshally, which owns the repo
Code last changed 12 months ago, more than 6 months ago
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 12 months ago, and the latest version (0.1.2) reached the registry 12 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Context7, Codebase Memory, Ruflo
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Agent teams, swarms, memory and hooks for Claude Code and Codex, served over MCP.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
An MCP (Model Context Protocol) server that exposes Martin Fowler's refactoring catalog to LLMs through a pluggable, language-agnostic architecture.
# Using uvx (recommended)
uvx mcp-refactoring
pip install mcp-refactoring
pipx install mcp-refactoring
molting-cli for Python)Install the Python backend:
pip install molting-cli
Add to your Claude Desktop config:
{
"mcpServers": { "refactoring": { "command": "uvx", "args": ["mcp-refactoring"] } } }
List available refactorings with their parameter contracts.
list_refactorings(language="python", category="composing_methods")
Preview what changes a refactoring would make (dry-run).
preview_refactoring(
refactoring="extract-method", target="src/order.py::Order::calculate#L10-L15", params={"name": "calculate_tax"} )
Apply a refactoring to the codebase.
apply_refactoring(
refactoring="rename-method", target="src/order.py::Order::calc", params={"new_name": "calculate_total"} )
Get structural information about code.
inspect_structure(path="src/order.py", depth="method")
Analyze code for smells and suggest refactorings.
analyze_code(path="src/order.py", smells=["long-method"])
Each language uses its native conventions:
src/order.py::Order::calculate_total # Method
src/order.py::Order::calculate_total#L10-L15 # Line range src/order.py::Order # Class
Create ~/.mcp-refactoring/config.toml:
[backends.python]
enabled = true command = "molting"
[backends.ruby] enabled = false command = "molting-rb"
Environment variable overrides:
MCP_REFACTORING_PYTHON_COMMAND=/path/to/molting
MCP_REFACTORING_PYTHON_ENABLED=true
Based on Martin Fowler's catalog:
# Clone the repository
git clone https://github.com/marshally/mcp-refactoring.git cd mcp-refactoring
pip install -e ".[dev]"
pytest
ruff check .
mypy src/
MIT License - see LICENSE for details.