
Refactoring MCP Server
Give your coding agent Fowler-style refactoring names, steps, and tradeoffs while you clean up legacy code without guessing catalog terminology.
Overview
Refactoring MCP Server is a MCP server for the Ship phase that exposes Martin Fowler’s refactoring catalog with 71+ techniques to your agent over stdio.
What is this MCP server?
- Exposes 71+ Martin Fowler refactorings as MCP tools for LLM lookup
- Stdio transport via PyPI package mcp-refactoring (v0.1.2)
- Structured catalog access instead of ad-hoc web summaries
- Useful during backend refactors and test-preserving structural changes
- Developer-reference MCP, not an automated rewrite engine
- 71+ refactorings in catalog
- Server version 0.1.2
- Transport: stdio via PyPI identifier mcp-refactoring
What problem does it solve?
Agents guess refactoring names and steps from memory, which leads to vague advice and risky structural edits without a shared catalog vocabulary.
Who is it for?
Indie developers doing incremental cleanups during PR review or post-launch iteration who want catalog-accurate refactoring language in the agent loop.
Skip if: Teams that need automatic codemods, organization-wide style enforcement, or security/compliance scanning without manual implementation.
What do I get? / Deliverables
Your agent can cite specific Fowler refactorings and apply consistent terminology while you refactor with tests and review still in your hands.
- Agent-callable access to 71+ catalogued refactoring techniques
- Consistent Fowler terminology in refactor planning chat
- Local stdio MCP integration without a hosted remote endpoint
Recommended MCP Servers
Journey fit
Refactoring is canonical on the ship shelf because it is most often invoked when improving existing code quality before merge or release, not when greenfield scaffolding. Review is the natural home for systematic rename/extract/inline guidance that pairs with diff review and pre-merge cleanup.
How it compares
Fowler catalog reference over MCP—not a linter, formatter, or autonomous refactoring bot.
Common Questions / FAQ
Who is Refactoring MCP Server for?
Solo builders and small teams who refactor real codebases with AI assistants and want Martin Fowler’s catalog available as structured MCP tools.
When should I use Refactoring MCP Server?
Use it during code review, backend cleanup, or iterate cycles when you need the right refactoring name, motivation, and safe-step framing before editing.
How do I add Refactoring MCP Server to my agent?
Install the PyPI package mcp-refactoring (0.1.2), register it as a stdio MCP server in Claude Code or Cursor, then invoke its tools from the agent during refactor tasks.