# Refactoring MCP Server

> Refactoring MCP Server is an open-source MCP server. MCP server exposing Martin Fowler's refactoring catalog to LLMs with 71+ refactorings. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/marshally/mcp-refactoring
- **MCP Registry name:** io.github.marshally/mcp-refactoring
- **Listing updated:** 2026-11-13

## About

MCP server exposing Martin Fowler's refactoring catalog to LLMs with 71+ refactorings

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-refactoring -- uvx mcp-refactoring
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-refactoring": {
      "command": "uvx",
      "args": [
        "mcp-refactoring"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-refactoring": {
      "command": "uvx",
      "args": [
        "mcp-refactoring"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-refactoring": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-refactoring"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-refactoring": {
      "command": "uvx",
      "args": [
        "mcp-refactoring"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-refactoring": {
      "command": "uvx",
      "args": [
        "mcp-refactoring"
      ]
    }
  }
}
```

## FAQ

### Is Refactoring MCP Server free?

Yes. Refactoring MCP Server is open source, so you can use and self-host it for free.

### How do I add Refactoring MCP Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-refactoring -- uvx mcp-refactoring

---
Source: https://ai-powered.com/mcp/refactoring-mcp-server
