
Chengyu Coach
io.github.FlowerOfFirePublished by GitHub account FlowerOfFirev1.0.0Updated Oct 29, 2026
成语学习服务器:随机抽成语、查释义与出处,并按对话表现记录掌握程度
Overview
A local Chinese idiom (chengyu) study server that draws idioms, looks up meanings and origins, and tracks mastery in a local SQLite database.
- What you can do
- Draw random idioms, preferring ones never drawn before and skipping recently drawn or mastered entries
- Look up an idiom's meaning, origin, classical example, draw count, status and notes
- Search the built-in dictionary by keyword, pinyin or pinyin initials
- Update mastery status (learning, reviewing, mastered) and add or clear free-form notes
- Show overall progress counts and recent draws, and read entries or statistics as resources
- Provide teaching and oral-quiz prompt templates for the client model to run
- When to use it
- Useful for daily Chinese idiom study with any MCP client: the assistant picks a few idioms, explains and quizzes them, and records how well the learner did. Suited to learners who want spaced, progress-tracked vocabulary practice rather than a fixed test set.
- Requirements
- Runs locally over stdio as a Python package (pip install or uvx). No account, API key or network access needed. Progress is stored by default at ~/.chengyu-coach/idiom_progress.db, and the CHENGYU_COACH_DB environment variable can point it elsewhere.
Installation
In SourceWeft
- Open Chengyu Coach in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
chengyu-coach-mcp
成语学习 MCP 服务器(Python,mcp SDK v2 的 MCPServer,stdio 传输)。内置 3303 条常用成语,学习进度存在本地 SQLite,让任意 MCP 客户端(Qoder / Claude Desktop / Cursor 等)帮你每天抽几个成语学,并根据聊天表现自动记录掌握程度。
- 抽词:优先抽没抽过的;一轮抽完后按"抽得最少 + 最久没抽"轮转;默认跳过最近 20 条和已掌握的
- 查询:每个成语抽中了几次、当前状态、备注
- 记录:掌握状态 + 每词自由备注,由 AI 根据对话自行判断写入
- 不内置测验卷:考不考、怎么考由客户端 AI 决定,服务端只负责抽词和记录
掌握状态:learning(还不熟)→ reviewing(基本会但不稳)→ mastered(能熟练解释和造句)。
安装
从源码安装:
接入 MCP 客户端
已安装到环境后,在客户端配置里加:
从源码运行时(pip install -e . 之后),用解释器直接启动模块:
调试可用官方 MCP Inspector:
提供的能力
造句和出题都不需要服务端:抽题/查词结果已带释义、出处、古文例句,客户端大模型据此讲解、造句、提问,并把判断结果写回 update_status / add_note。
数据与隐私
- 学习记录默认写入
~/.chengyu-coach/idiom_progress.db,可用环境变量CHENGYU_COACH_DB指定其他路径 - 数据只存在本机,不联网、不上传
- 词库随包分发,只读;替换
src/chengyu_coach_mcp/data/chengyu_common.json即可换词库(数组,每条需含word/pinyin/explanation/derivation/example/id)
user_word 表结构:
开发
项目结构:
发布新版本时同步改三处:pyproject.toml 的 version、src/chengyu_coach_mcp/__init__.py 的 __version__、CHANGELOG.md;server.json 里的 version 与 packages[0].version 也要跟上。改完打标签并推送,release.yml 会校验四处版本号一致后自动构建上传:
README 顶部那行 <!-- mcp-name: io.github.FlowerOfFire/chengyu-coach-mcp --> 是给官方 MCP Registry 验证包所有权用的,发布到 PyPI 的版本里必须带着它,删掉会导致 mcp-publisher publish 失败。
数据来源与许可
- 代码:MIT
- 成语词条:chinese-xinhua(MIT)
- 词频数据:JioNLP(Apache-2.0)
Source: README.md at commit 3d410e1
Tools
0Version history
1- v1.0.0LatestOct 29, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts