Refactor

6

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.

Category MCP Servers
Added Mar 28, 2026
Views 57

About

This MCP server provides code refactoring capabilities through regex-based search and replace operations across file systems, enabling AI agents to perform bulk code transformations with pattern matching and context filtering. Built using TypeScript with the Model Context Protocol SDK, glob for file discovery, and Zod for validation, it offers two core tools: code_refactor for executing search-and-replace operations with optional context patterns to limit scope, and code_search for finding code patterns and returning file locations with grouped line numbers. The implementation supports glob patterns for file filtering, directory-based searches, regex capture groups for complex replacements, and context-aware filtering to target specific code sections like import blocks, making it valuable for large-scale code migrations, API updates, refactoring legacy codebases, and building AI assistants that need programmatic code transformation capabilities across multiple files without manual find-and-replace operations.

Is this your product? Claim this listing with an email at your domain to post updates.

Is this your project?

Claim this listing to manage your page, access analytics, and unlock upgrades. Verification takes 60 seconds.

Log In to Claim

Share This Project

Embed Badge

Add this badge to your README:

[![Listed on AiList](https://hifriendbot.com/ai-list/badge/refactor.svg)](https://hifriendbot.com/ai-list/refactor/)
Listed on AiList

List Your Project

Join the directory Ai agents read. Free forever.

Submit Your Project