Code Refactor
Rank #16,924io.github.zhouhengchang/code-refactor
Refactor legacy code into modern, idiomatic code without changing its behavior.
What you can do with Code Refactor
Code Refactor is a Model Context Protocol (MCP) server published by zhouhengchang. It ranks #16,924 of 152,909 active servers on MCP Toplist. Code Refactor is listed across 2 registries — Official MCP and Glama, with 2 tracked versions. It was first listed on Oct 18, 2026 and most recently updated on Oct 18, 2026.
Not verifiedMCP Toplist has not yet written a checked profile for this server, so the paragraph above is assembled from registry data only. The repository README is the authority on what it does.
What Code Refactor can and cannot do
MCP Toplist connected to the public endpoint on Oct 19, 2026 and it listed 2 tools. Tool names are not stored, so what they do is not catalogued here.
Not verifiedMCP Toplist has not catalogued this server's tools or limitations. The repository README lists them.
What you need before using Code Refactor
The registry listing declares no required environment variables or authentication. This is declared metadata, not a verified install — the repository README is the authority.
Verified by MCP Toplist on Oct 19, 2026: the public endpoint completed the MCP handshake and listed 2 tools without credentials.
Declared by Glama, last synced Oct 27, 2026. Not independently verified by MCP Toplist.
- REFACTOR_BACKEND · optional
- OPENAI_BASE_URL · optional
- OPENAI_API_KEY · optional
- OPENAI_MODEL · optional
- OLLAMA_HOST · optional
- OLLAMA_MODEL · optional
- REFACTOR_TIMEOUT_MS · optional
Hosted endpoint declared as public.
Connect Code Refactor and confirm it works
claude mcp add --transport http code-refactor https://code-refactor-api.app.workbuddy.host/mcpclaude mcp add code-refactor -e "REFACTOR_BACKEND=<your REFACTOR_BACKEND>" -e "OPENAI_BASE_URL=<your OPENAI_BASE_URL>" -e "OPENAI_API_KEY=<your OPENAI_API_KEY>" -e "OPENAI_MODEL=<your OPENAI_MODEL>" -e "OLLAMA_HOST=<your OLLAMA_HOST>" -e "OLLAMA_MODEL=<your OLLAMA_MODEL>" -e "REFACTOR_TIMEOUT_MS=<your REFACTOR_TIMEOUT_MS>" -- npx -y workbuddy-code-refactor-connectorReplace each placeholder with your own value before saving.
[mcp_servers.code-refactor]
url = "https://code-refactor-api.app.workbuddy.host/mcp"Add to ~/.codex/config.toml.
[mcp_servers.code-refactor]
command = "npx"
args = ["-y", "workbuddy-code-refactor-connector"]
[mcp_servers.code-refactor.env]
REFACTOR_BACKEND = "<your REFACTOR_BACKEND>"
OPENAI_BASE_URL = "<your OPENAI_BASE_URL>"
OPENAI_API_KEY = "<your OPENAI_API_KEY>"
OPENAI_MODEL = "<your OPENAI_MODEL>"
OLLAMA_HOST = "<your OLLAMA_HOST>"
OLLAMA_MODEL = "<your OLLAMA_MODEL>"
REFACTOR_TIMEOUT_MS = "<your REFACTOR_TIMEOUT_MS>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
https://code-refactor-api.app.workbuddy.host/mcpSettings → Connectors → “Add custom connector”, then paste this URL.
{
"mcpServers": {
"code-refactor": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "<your REFACTOR_BACKEND>",
"OPENAI_BASE_URL": "<your OPENAI_BASE_URL>",
"OPENAI_API_KEY": "<your OPENAI_API_KEY>",
"OPENAI_MODEL": "<your OPENAI_MODEL>",
"OLLAMA_HOST": "<your OLLAMA_HOST>",
"OLLAMA_MODEL": "<your OLLAMA_MODEL>",
"REFACTOR_TIMEOUT_MS": "<your REFACTOR_TIMEOUT_MS>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"code-refactor": {
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project).
{
"mcpServers": {
"code-refactor": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "<your REFACTOR_BACKEND>",
"OPENAI_BASE_URL": "<your OPENAI_BASE_URL>",
"OPENAI_API_KEY": "<your OPENAI_API_KEY>",
"OPENAI_MODEL": "<your OPENAI_MODEL>",
"OLLAMA_HOST": "<your OLLAMA_HOST>",
"OLLAMA_MODEL": "<your OLLAMA_MODEL>",
"REFACTOR_TIMEOUT_MS": "<your REFACTOR_TIMEOUT_MS>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"servers": {
"code-refactor": {
"type": "http",
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}Save as .vscode/mcp.json in your workspace.
{
"servers": {
"code-refactor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "<your REFACTOR_BACKEND>",
"OPENAI_BASE_URL": "<your OPENAI_BASE_URL>",
"OPENAI_API_KEY": "<your OPENAI_API_KEY>",
"OPENAI_MODEL": "<your OPENAI_MODEL>",
"OLLAMA_HOST": "<your OLLAMA_HOST>",
"OLLAMA_MODEL": "<your OLLAMA_MODEL>",
"REFACTOR_TIMEOUT_MS": "<your REFACTOR_TIMEOUT_MS>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"code-refactor": {
"serverUrl": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"code-refactor": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "<your REFACTOR_BACKEND>",
"OPENAI_BASE_URL": "<your OPENAI_BASE_URL>",
"OPENAI_API_KEY": "<your OPENAI_API_KEY>",
"OPENAI_MODEL": "<your OPENAI_MODEL>",
"OLLAMA_HOST": "<your OLLAMA_HOST>",
"OLLAMA_MODEL": "<your OLLAMA_MODEL>",
"REFACTOR_TIMEOUT_MS": "<your REFACTOR_TIMEOUT_MS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"code-refactor": {
"url": "https://code-refactor-api.app.workbuddy.host/mcp"
}
}
}{
"mcpServers": {
"code-refactor": {
"command": "npx",
"args": [
"-y",
"workbuddy-code-refactor-connector"
],
"env": {
"REFACTOR_BACKEND": "<your REFACTOR_BACKEND>",
"OPENAI_BASE_URL": "<your OPENAI_BASE_URL>",
"OPENAI_API_KEY": "<your OPENAI_API_KEY>",
"OPENAI_MODEL": "<your OPENAI_MODEL>",
"OLLAMA_HOST": "<your OLLAMA_HOST>",
"OLLAMA_MODEL": "<your OLLAMA_MODEL>",
"REFACTOR_TIMEOUT_MS": "<your REFACTOR_TIMEOUT_MS>"
}
}
}
}Replace each placeholder with your own value before saving.
After adding the config, ask your client to list this server's tools. A tool list confirms the connection; an empty list or an error means the server did not start or needs credentials.
When to choose another server
No task-specific alternatives are catalogued for Code Refactoryet; the list above is its publisher's other servers.
What changed, and when this was checked
- First listed
- Oct 18, 2026
- Latest version published
- Oct 18, 2026
- Version history
- 2 versions tracked (below)
- Requirements evidence
- Verified by MCP Toplist on Oct 19, 2026: the public endpoint completed the MCP handshake and listed 2 tools without credentials.
- Profile checked
- Not yet — purpose, capabilities and requirements above come from registry data only
- Ranking data as of
- Oct 27, 2026
- Official MCP ↗listed since Oct 18, 2026 · still listed
- Glama ↗listed since Oct 18, 2026 · still listed
Do you maintain Code Refactor? to correct or enrich this profile.
Available versions (2)
| Version | Published |
|---|---|
| 1.0.4 | Oct 18, 2026 |
| 1.0.3 | Oct 18, 2026 |
Ranks ahead of 135,985 of 152,909 servers on MCP Toplist.
Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/io.github.zhouhengchang%2Fcode-refactor)<a href="https://mcptoplist.com/server/io.github.zhouhengchang%2Fcode-refactor"><img src="https://mcptoplist.com/badge/io.github.zhouhengchang%2Fcode-refactor.svg" alt="MCP Toplist: Top 25% of 152,909" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Frequently asked questions
- Who maintains Code Refactor?
- Code Refactor is maintained by zhouhengchang, which publishes 2 MCP servers (2 total versions) tracked on MCP Toplist.
- Is Code Refactor listed on the Official MCP Registry?
- Yes — Code Refactor is listed on the Official MCP Registry, alongside Glama.
- How many versions does Code Refactor have?
- MCP Toplist tracks 2 versions of Code Refactor, most recently published on Oct 18, 2026.
- Where can I find the source code for Code Refactor?
- The source code for Code Refactor is hosted at github.com/zhouhengchang/code-refactor.
Do you run this server?
Community projects list the MCP servers behind real agents and apps. Publish yours and this page will link to it.