# Refactor
> Provides regex-based code refactoring capabilities for bulk search-and-replace operations across file systems with pattern matching, context filtering, and glob-based file discovery to enable large-scale code transformations and migrations.
Canonical: https://www.mcpfolio.com/servers/refactor
Last updated: 2026-10-28
## Catalog record

- Publisher: myuon
- Categories: development, search, file-system

## Repository

https://github.com/myuon/refactor-mcp

## Transports

stdio

## Authentication

No credentials were configured; the tested read-only tool “code_search” succeeded in an isolated environment. Other tools may have additional requirements.

## Tools

- **code_refactor**: Refactor code by replacing search pattern with replace pattern using regex
- **code_search**: Search for code patterns using regex and return file locations with line numbers

## Sources

- [MCP.Directory public profile](https://mcp.directory/servers/refactor)
- [Linked publisher repository](https://github.com/myuon/refactor-mcp)
- [npm registry metadata](https://registry.npmjs.org/%40myuon%2Frefactor-mcp)
- [maintainer_or_vendor_documentation](https://github.com/myuon/refactor-mcp)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/refactor) to view instructions for each supported client.