Skip to contentCode Refactor MCP Server | MCPpediaCCode Refactor MCP Server
Refactor legacy code into modern, idiomatic code without changing its behavior.
RegistryRemotezhouhengchang 55FairInstall
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"zhouhengchang-server": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector@1.0.4"
],
"env": {
"REFACTOR_BACKEND": "ollama",
"OPENAI_BASE_URL": "",
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",
"OPENAI_MODEL": "deepseek-chat",
"OLLAMA_HOST": "http://127.0.0.1:11434",
"OLLAMA_MODEL": "qwen2.5-coder",
"REFACTOR_TIMEOUT_MS": "180000"
}
}
}
}
Related servers
FMCP server for Firecrawl — web search, scraping, and biomedical/arXiv paper search.
Environment
| Name | Required | Notes |
|---|
| REFACTOR_BACKEND | No | Inference backend: 'ollama' (local, code stays on your machine, default) or 'openai' (any OpenAI-compatible cloud endpoint, e.g. DeepSeek). |
| OPENAI_BASE_URL | No | Base URL of the OpenAI-compatible endpoint, e.g. https://api.deepseek.com/v1. Required when REFACTOR_BACKEND=openai. |
| OPENAI_API_KEY | No | API key for the cloud endpoint, e.g. a DeepSeek key. Only needed when REFACTOR_BACKEND=openai. Secret. |
| OPENAI_MODEL | No | Cloud model name, e.g. deepseek-chat. |
| OLLAMA_HOST | No | Ollama server address used when REFACTOR_BACKEND=ollama. |
| OLLAMA_MODEL | No | Ollama model name used when REFACTOR_BACKEND=ollama. |
| REFACTOR_TIMEOUT_MS | No | Per-call timeout in milliseconds. Raise it for slow local CPU inference. |
Tools show up when the registry metadata or the repository README lists them. GitHub enrichment fills this in when a token is configured.
About
Refactor legacy code into modern, idiomatic code without changing its behavior.
FAQ
- What is Code Refactor?
- Refactor legacy code into modern, idiomatic code without changing its behavior.
- How do I install Code Refactor?
- Pick a client above and copy the generated config. Cursor and VS Code also have a deep link when the server can run locally or remotely.
- Is Code Refactor official?
- No. Registry-listed is not the same as vendor-official. Read the methodology for the difference.
- How is the trust score calculated?
- This listing scores 55 (Fair). The formula is published on the methodology page.
Reviews
0 published · no average
Sign in to review this server.
Good
Google PageSpeed Insights and CrUX: six workflow tools for web performance.
ZDraft, translate and update Help Center articles and manage Zendesk tickets from your AI assistant.
WLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 94 tools.
HEvidence-backed crypto due diligence with sources, freshness, and a runtime receipt on every call.
MMCP server for MikroTik routers: firewall, NAT, routing, DHCP, DNS, WireGuard and more via SSH.