World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.
Chinese NLP toolkit for MCP: segmentation, pinyin, keywords, sensitive words. Offline via stdio.
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
One time only; it works for every server that needs Python (uv)
SettingsDeveloperEdit Config
{
"mcpServers": {
"chinese-nlp": {
"command": "uvx",
"args": [
"chinese-nlp-mcp"
]
}
}
}Use Chinese Nlp MCP and tell me what you can do for me, then show me one thing✓ If Claude says it is using Chinese Nlp MCP or shows a Chinese Nlp MCP tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Chinese Nlp MCP yet
Chinese Nlp MCP runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Chinese Nlp MCP
B · Others in Other that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user chinese-nlp -- uvx chinese-nlp-mcpYou should see Chinese Nlp MCP listed as connected
Use Chinese Nlp MCP and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Chinese Nlp MCP or shows a Chinese Nlp MCP tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Use Chinese Nlp MCP and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Chinese Nlp MCP or shows a Chinese Nlp MCP tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
Install Python (uv) on your computer first (one time)
One time only; it works for every server that needs Python (uv)
Use Chinese Nlp MCP and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Chinese Nlp MCP or shows a Chinese Nlp MCP tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user chinese-nlp -- uvx chinese-nlp-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"chinese-nlp": {
"command": "uvx",
"args": [
"chinese-nlp-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"chinese-nlp": {
"command": "uvx",
"args": [
"chinese-nlp-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"chinese-nlp": {
"type": "stdio",
"command": "uvx",
"args": [
"chinese-nlp-mcp"
]
}
}
}These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 14, 2026
The registry name was verified with the GitHub account leonmch-byte, which owns the repo
Code last changed 33 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 33 days ago, and the latest version (0.3.1) reached the registry 33 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: World Monitor, Claude Flow, Windmill
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 97 tools.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
mcp-name: io.github.leonmch-byte/chinese-nlp-mcp
中文 NLP 能力的 MCP Server:分词、关键词提取、拼音转换、自定义敏感词检测。 本地 stdio 运行,全部推理在进程内完成。
📝 Tutorial: How to Add Chinese NLP to Your AI Agent in 5 Minutes
Python 3.10 或更高版本。
uvx chinese-nlp-mcp
需要先安装 uv:https://docs.astral.sh/uv/getting-started/installation/ (macOS/Linux 用 curl -LsSf https://astral.sh/uv/install.sh | sh, Windows 用 irm https://astral.sh/uv/install.ps1 | iex)
pip install chinese-nlp-mcp
chinese-nlp-mcp
git clone https://github.com/leonmch-byte/chinese-nlp-mcp
cd chinese-nlp-mcp
python -m venv .venv ./.venv/Scripts/python.exe -m pip install -r requirements.txt
python3 -m venv .venv ./.venv/bin/python -m pip install -r requirements.txt
推荐用 uvx,无需关心 Python 环境:
{
"mcpServers": { "chinese-nlp-mcp": { "command": "uvx", "args": ["chinese-nlp-mcp"] } } }
若用 pip 安装(方式二):
{
"mcpServers": { "chinese-nlp-mcp": { "command": "chinese-nlp-mcp" } } }
若从源码安装(方式三):
{
"mcpServers": { "chinese-nlp-mcp": { "command": "/absolute/path/to/chinese-nlp-mcp/.venv/Scripts/python.exe", "args": ["/absolute/path/to/chinese-nlp-mcp/server.py"] } } }
VS Code 用
servers键,Claude Desktop / Cursor 用mcpServers键。
| 工具 | 签名 | 说明 | |
|---|---|---|---|
hello_world | () -> str | 健康检查,返回 Hello from Chinese NLP MCP | |
segment_chinese | (text: str, mode: str = "default") -> list[str] | 中文分词,mode 支持 default / search / index | |
convert_pinyin | (text: str, style: str = "tone", separator: str = " ") -> str | 拼音转换,style 支持 tone / tone2 / initials / first_letter | |
extract_keywords | (text: str, topN: int = 10) -> list[dict] | TF-IDF 关键词提取,返回 [{word, weight}],按权重降序 | |
detect_sensitive_words | `(text: str, words: list[str] \ | None = None) -> dict` | 自定义敏感词检测(Aho-Corasick 自动机) |
🔴 `detect_sensitive_words` 不含任何内置词库
本工具不内置任何词库,也不内置任何示例词。词库唯一来源是调用方传入的
words参数。传[]或None等同于不检测,直接返回
{"matches": [], "clean": true}。
内容安全策略必须由使用者自己掌控,工具不会替他预设。
这些直接影响你怎么解析返回值,所以列在这里。
`detect_sensitive_words` — 重叠匹配返回全部命中
不去重、不做最长/最短优先裁剪。调用方是自己词库的负责人, 最清楚"命中什么"才是关心的信号;拿到全部命中后可按 index 自行裁剪或聚合。
例:text="中华人民共和国", words=["中国人民","人民"] → 返回 2 条命中, index 分别为 0 和 2。index 是字符索引(中文按 1 字计,非字节索引)。
`extract_keywords` — `weight` 是未归一化的 TF-IDF 原始分
值域通常 0 ~ 6,可大于 1.0(例:"天安门广场" → 1.6316)。 它表示该词在当前语料中的重要程度,不是概率或百分比。
返回顺序已按权重降序;topN 超过可提取词数时返回全部词,不报错。 中英混合文本中,英文单词会作为独立 token 保留并参与计算,不会被过滤 (例:Python 编程语言很强大 → 提取出 Python,weight 3.98)。
`convert_pinyin` — `tone2` 的数字标在元音后
zhong → zho1ng,不是 zhong1。这是 pypinyin 的既有命名规则。 style 只接受上表四个值,传入其他值会抛错(底层库本会静默降级, 本项目在入口处拦下,避免你拿到"看起来对但不是你要的结果")。
`segment_chinese` — `index` 与 `search` 行为一致
jieba 没有独立的 index 模式,本项目把 index 映射为搜索模式。 两种模式都不返回位置信息,返回值统一是 list[str]。
返回值怎么读
返回 dict 的工具(detect_sensitive_words)会被 fastmcp 直接展开为 structuredContent,不额外加 `result` 包装层; 返回 list / str 的工具则会被包成 structuredContent.result。
例:从 structuredContent.matches 与 structuredContent.clean 取值, 而不是 structuredContent.result.matches。
错误处理
参数非法抛 ValueError,内部失败抛 RuntimeError, 均由 fastmcp 转成 isError=true,工具签名保持纯净。
所有工具都可免费使用,但有每日次数上限(按 UTC 00:00 重置):
| 工具 | 每日上限 |
|---|---|
hello_world | 无限制(健康检查永不拦截) |
segment_chinese | 500 |
convert_pinyin | 300 |
extract_keywords | 100 |
detect_sensitive_words | 200 |
单次输入上限:文本 20,000 字符、自定义词库 1,000 条、topN 最大 50。
达到上限时该工具返回 isError: true,并附带当前限制、重置时间、 Pro 权益与升级链接。hello_world 始终不受影响,避免客户端误判服务器故障。
export CHINESE_NLP_LICENSE_KEY=<你的 key> # Windows: $env:CHINESE_NLP_LICENSE_KEY="..."
| 项目 | 值 |
|---|---|
| 验证频率 | 每次启动校验一次,结果缓存 24 小时 |
| 断网宽限 | 7 天(上次成功验证在 7 天内且网络故障时保持 Pro) |
| 超时 | 8 秒,不重试 |
| 本地保存 | 默认不保存明文 key |
如果你希望免去每次配环境变量,可显式同意把 key 存在本地 (权限 0600 + HMAC 签名):
export CHINESE_NLP_STORE_KEY=1
诊断用 CHINESE_NLP_LICENSE_DEBUG=1(tier 与缓存状态打到 stderr), 自解锁用 CHINESE_NLP_LICENSE_RESET=1(清除本地缓存与凭证)。
License 失效是静默的:不会弹窗、不会改变工具返回结构, 只是退回免费层配额(表现为原有的配额超限文案)。
每日计数保存在你本机的状态文件里:
%LOCALAPPDATA%\chinese-nlp-mcp\~/Library/Application Support/chinese-nlp-mcp/$XDG_STATE_HOME/chinese-nlp-mcp/需要更高额度与批量 API:https://wolfmanchao.gumroad.com/l/chinese-nlp-mcp-pro ($19 买断,非订阅)
Without a license key: Fully offline. No network calls, no telemetry. Your text never leaves the machine.
With a Pro license key: The key is verified against Gumroad once at startup, cached for 24 hours. Only product_id and license_key are sent. No text content, no usage statistics, no machine identifiers.
Verification can be disabled entirely by not setting CHINESE_NLP_LICENSE_KEY.
工具调用本身在两种情况下都完全离线 —— 网络请求只发生在服务器启动时, 且仅在配置了 license key 时。每 24 小时至多一次。
本地只保存 license key 的 SHA-256 摘要(前 16 位十六进制), 不保存明文。缓存、日志、错误信息中都不含明文 key、邮箱或 IP。
这个项目是 MIT 开源的本地软件,没有 DRM。
每日计数是防篡改(tamper-resistant)而非防破解(tamper-proof)——
有决心的人总能从源码层面绕过任何本地机制。
我们卖的是便利(批量 API、长文本、自定义词典),不是锁。
验收方式、测试规约、实现层踩坑记录见 DEVELOPMENT.md。
MIT