cnki-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CNKI_UA | No | Custom User-Agent string. | built-in Chrome UA |
| NO_PROXY | No | Comma-separated domains that bypass the proxy, e.g. kns.cnki.net,www.cnki.net. | |
| HTTP_PROXY | No | HTTP proxy URL, used together with NODE_USE_ENV_PROXY=1. | |
| HTTPS_PROXY | No | HTTPS proxy URL, used together with NODE_USE_ENV_PROXY=1. | |
| CNKI_AUTO_WARM | No | Automatically re-solve the slider captcha when the session becomes invalid (1 = enabled). | 1 |
| CNKI_STATE_DIR | No | Directory where the session, cache, and quota state files are stored. | ~/.pi/agent/state/cnki-mcp |
| CNKI_MIN_GAP_MS | No | Minimum interval in milliseconds between two requests (global serial throttling). | 2000 |
| CNKI_TIMEOUT_MS | No | Per-request timeout in milliseconds. | 30000 |
| CNKI_DAILY_QUOTA | No | Rolling 24-hour request limit. | 300 |
| CNKI_CACHE_TTL_MS | No | Query cache TTL in milliseconds. | 86400000 |
| NODE_USE_ENV_PROXY | No | Node >= 24 option that makes the built-in fetch honor HTTP_PROXY / HTTPS_PROXY environment variables. | 1 |
| NODE_EXTRA_CA_CERTS | No | Path to additional trusted root certificates, needed when a corporate gateway performs TLS interception. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cnki_searchA | 检索中国知网(CNKI)。返回题名、作者、来源刊、发表时间、被引、下载量与详情页 URL。慢速串行、带 24h 缓存与每日配额。 |
| cnki_get_paper_detailA | 根据详情页 URL 抓取完整元数据:题名、作者、机构、刊名/年/卷/期/页、DOI、摘要、关键词、基金、分类号,并本地生成 GB/T 7714、APA、BibTeX、RIS 引文。 |
| cnki_citeA | 批量抓取多条文献并只返回引文文本(GB/T 7714 / APA / BibTeX / RIS)。可直接粘进 Zotero 或稿件。 |
| cnki_warmA | 重新通过安全验证(自动解拼图滑块)并保存 cookie 会话。会话失效或换网络后调用。 |
| cnki_statusA | 显示 cookie 会话状态、今日请求配额、缓存条数与当前配置。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a clear anchor: session warm-up, search, single-paper metadata, batch citations, and status. The only real overlap is between cnki_get_paper_detail and cnki_cite, which both fetch metadata and emit citations, but the descriptions differentiate them (single paper + full metadata vs. batch + citation text only) well enough to avoid misselection.
All tools share the cnki_ prefix and snake_case with an action-oriented second segment (warm, search, get_paper_detail, cite, status). The pattern is predictable and readable throughout.
Five tools map cleanly onto the domain's lifecycle (auth, search, detail, cite, diagnostics) with no filler. It is slightly lean — no export or batch-search variant — but nothing feels redundant.
The path search → detail → cite is fully covered, plus session recovery and quota introspection which are real operational needs for a scraped source. Minor gaps remain around advanced querying (author/journal filters, pagination control) and bulk export, but agents can work around them with the existing tools.