Refactory MCP Server

Mechanical code decomposition. AI plans module boundaries, deterministic extraction copies the code. JS/Python built in.

Local serverstdioPython

What is the Refactory MCP Server?

Mechanical code decomposition. AI plans module boundaries, deterministic extraction copies the code. JS/Python built in.

What it actually does

Refactory splits monolith source files into clean modules. It uses an LLM for one thing — deciding which functions group together. Everything else is mechanical: function boundary detection, import resolution, module assembly, syntax validation, scoring.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
clean_ratemodules that load without errors / total modules
size_reduction1 − (largest module / original file)

How to install the Refactory MCP Server

{
  "mcpServers": {
    "refactory": {
      "command": "npx",
      "args": ["@refactory/mcp"],
      "env": {
        "GROQ_API_KEY": "your-key-here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GROQ_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
OPENROUTER_API_KEYCredential the server authenticates with.Yes
SAMBANOVA_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Refactory to clean rate.”
  • “Use Refactory to size reduction.”
  • “Use Refactory to Metric.”

Frequently asked questions

Mechanical code decomposition. AI plans module boundaries, deterministic extraction copies the code. JS/Python built in. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.