zhconvert-mcp
v1.0.0
Published
MCP server for ZhConvert — Simplified <-> Traditional Chinese conversion with OpenCC configs (s2t, s2tw, s2hk, s2twp, t2s, …) for Claude and other MCP clients. By Dawn Studio.
Maintainers
Readme
zhconvert-mcp
MCP (Model Context Protocol) server for ZhConvert — Simplified ↔ Traditional Chinese conversion for Claude Desktop, Claude Code and other MCP clients. Free, by Dawn Studio.
Powered by @dawn-studio/zh-convert: all 14 OpenCC preset configs (regional Taiwan / Hong Kong wording and phrases included) plus a lightweight tongwen engine. Conversion runs locally — your text never leaves your machine. Protected words are never altered (e.g. 占卜 stays 占卜, never 佔卜), and non-Chinese lines pass through untouched.
Use
npx -y zhconvert-mcpClaude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"zhconvert": {
"command": "npx",
"args": ["-y", "zhconvert-mcp"]
}
}
}Or run from a local checkout:
{
"mcpServers": {
"zhconvert": {
"command": "node",
"args": ["/path/to/zhconvert-mcp/server.mjs"]
}
}
}Tools
| Tool | What it does |
|---|---|
| convert_text | Convert text between Simplified and Traditional Chinese |
| list_configs | List the 14 OpenCC preset configs and what each one does |
convert_text
| Argument | Type | Notes |
|---|---|---|
| text | string (required) | Text to convert; may contain newlines |
| config | enum | OpenCC preset, default s2t. Ignored when engine is tongwen |
| engine | opencc | tongwen | Default opencc |
| from / to | zh-Hans | zh-Hant | Tongwen engine only; defaults zh-Hans → zh-Hant |
OpenCC configs: s2t, t2s, s2tw, tw2s, s2hk, hk2s, s2twp, tw2sp, t2tw, tw2t, t2hk, hk2t, s2hkp, hk2sp — call list_configs for the direction and description of each. Locales: cn = Simplified (Mainland), t = Traditional (OpenCC standard), tw/twp = Traditional (Taiwan; twp with Taiwan phrases), hk/hkp = Traditional (Hong Kong; hkp with Hong Kong phrases).
Examples:
convert_text { text: "头发和鼠标", config: "s2t" }→頭髮和鼠標convert_text { text: "鼠标", config: "s2twp" }→滑鼠convert_text { text: "頭髮", engine: "tongwen", from: "zh-Hant", to: "zh-Hans" }→头发
Test
npm test # or: node smoke-test.mjsDrives the server over stdio (initialize → tools/list → tools/call) and asserts the conversion cases above, the 占卜 protection, and that list_configs returns all 14 configs.
Web version
Prefer a browser? The same engine runs at zhconvert.dawnstudio.app — free, no sign-up, files converted on-device.
License
MIT
