cnki-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CNKI_HEADED | No | Set to 1 / true to run Playwright in visible (headed) mode permanently. | 0 |
| CNKI_AUTO_AUTH | No | Enable automatic desktop popup on off-campus login or CAPTCHA (0 / false disables). | 1 |
| CNKI_CARSI_ORG | No | Optional university name on fsso.cnki.net to auto-select (e.g., 北京大学). | |
| CNKI_STATE_FILE | No | Full storage_state (cookies + localStorage) file path (0600 permissions; never commit). | ~/.cnki_state.json |
| CNKI_COOKIE_FILE | No | Legacy cookie list file path (0600 permissions; never commit). | ~/.cnki_cookies.json |
| CNKI_AUTH_TIMEOUT | No | Single popup wait timeout in milliseconds. | 110000 |
| CNKI_DOWNLOAD_DIR | No | Directory for downloaded PDFs and TOC files (recommended to set an explicit path such as ~/Downloads/cnki). | ./downloads |
| CNKI_AUTH_COOLDOWN | No | Cooldown in seconds after closing/cancelling a login popup (0 disables). | 120 |
| CNKI_BROWSER_CHANNEL | No | Preferred browser channel; falls back to Playwright Chromium if unavailable. | chrome |
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": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cnki_journal_searchA | 在知网出版物导航(navi.cnki.net)按刊名、ISSN、CN 号或主办单位检索期刊。刊名精确匹配项会自动排在最前;设置 exact=True 可仅返回精确匹配结果,防止近似刊名串刊。 |
| cnki_journal_detailA | 获取知网期刊详情页基本信息、不过期的永久期刊主页(permanent_url)、免登录官方 RSS 2.0 订阅地址(rss_url)、核心收录数据库(北大核心/CSSCI/CSCD/AMI/WJCI/SCI/EI 等)、复合/综合影响因子及全部可用年份与期次列表(available_years)。 |
| cnki_journal_tocA | 按知网期刊详情页 URL 或精确刊名获取期次论文目录(TOC),同时返回不过期的永久期刊主页(permanent_url)与免登录官方 RSS 2.0 订阅地址(rss_url)。支持获取最新期/网络首发、指定单期、同一年多期批量提取或全年各期遍历,返回每篇论文标题、作者、页码、栏目、详情链接及原版目录链接,可选下载原版封面目录 PDF(校园网内自动静默下载;非校园网未登录时桌面端自动弹出高校 CARSI 登录窗口待命续传,无界面环境可用 cnki-mcp --auth --carsi)。 |
| cnki_journal_opmlA | 批量获取多本知网期刊的永久主页(permanent_url)与官方免登录 RSS 2.0 订阅源(rss_url),并生成标准 OPML 2.0 订阅文件(可直接导入 Folo / NetNewsWire / Reeder 等阅读器)。 |
| cnki_searchB | 检索知网(CNKI)学术论文。支持自然语言修饰词(作者:、关键词:、单位:、基金:、来源:、篇名:、摘要: 及年份区间)与结构化筛选参数,支持 source + exact_source 精确文献来源过滤以防近似刊名串刊,返回每条结果的元数据与导出标识(export_id)。 |
| cnki_professional_searchA | 使用 CNKI 专业检索语法表达式直接检索学术论文。格式:<字段代码> <匹配运算符> '<检索值>'(数值型年份字段 YE 使用无引号整数),以 AND / OR / NOT 组合,例如:SU %= '人工智能' AND LY = '教育研究' AND YE BETWEEN (2020, 2025)。 |
| cnki_syntax_guideA | 获取 CNKI 专业检索表达式完整语法参考,包含字段代码、匹配运算符、比较运算符、逻辑与复合运算符、位置算符及检索示例。 |
| cnki_get_articleA | 获取单篇知网论文详情(标题、作者、机构、来源期刊、发表时间、卷期页码、摘要、关键词、基金、DOI、永久链接、GB/T 7714 引文及博硕士学位论文导师/学科专业字段),可选设置 include_citations=True 在同一次访问中提取引文统计、参考文献与引证文献。 |
| cnki_search_with_abstractsA | 检索知网论文并自动批量补全详情:basic 模式(默认)通过知网批量导出接口秒级获取摘要、关键词与 GB/T 7714 引文;full 模式提取完整引文网络信息(含参考文献与引证文献)。支持与 cnki_search 相同的全部筛选参数。 |
| cnki_get_citationsB | 获取知网论文的参考文献与引证文献网络。支持按 tabs 指定提取类型(references、citations、coreferences、secondreferences、secondcitations)。 |
| cnki_downloadA | 下载知网论文全文 PDF 并保存到下载目录。校园网内自动静默下载;非校园网未登录时桌面端自动弹出高校 CARSI 登录窗口待命续传(无界面环境可用 cnki-mcp --auth --carsi 完成认证)。 |
| cnki_export_citationsA | 批量导出知网文献的标准引文格式(GB/T 7714 国标参考文献文本、EndNote 题录及结构化元数据)。支持传入 cnki_search 返回的 export_ids 列表(极速无需打开详情页)或文章详情页 urls 列表。 |
| cnki_statusA | 查看知网(CNKI)视角下的当前网络出口与机构认证状态(避免通过第三方测 IP 网站或本机网卡误判代理分流)。默认 probe=False 仅读取本地/内存会话状态(0 网络请求、不消耗风控配额);设置 probe=True 时通过独立无痕会话向知网认证服务实测当前出口是否具备校园网 IP 机构权限,且不会清除已有的校外 CARSI 登录态。 |
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 13 tools
Three overlapping search entry points exist (cnki_search, cnki_professional_search, cnki_search_with_abstracts), and the latter explicitly mirrors cnki_search's parameters, so an agent must reason carefully about which to call. Citation retrieval is also split between cnki_get_citations and cnki_get_article(include_citations=True), and cnki_journal_detail vs cnki_journal_opml both return permanent_url/rss_url. Descriptions do disambiguate each case, but the boundaries are not self-evident from names alone.
All names are snake_case with a consistent cnki_ namespace prefix, and most follow a verb_noun pattern (get_article, download, export_citations, journal_search). A few deviate into noun_phrase style (syntax_guide, journal_toc, journal_opml, status) and the prefix ordering shifts between cnki_<verb>_<noun> and cnki_journal_<noun>. Minor deviations only; overall predictable.
13 tools is well within the sweet spot and each maps to a concrete capability: search, article detail, citations, download, journal navigation/TOC/RSS, export, and auth status. No obviously redundant or filler tool given the breadth of the CNKI domain (articles, journals, subscription feeds, campus auth).
The surface covers the full research workflow: discovery (plain + professional search), enrichment (abstracts/citations), full-text download, journal-level TOC and RSS/OPML subscription, citation export, and auth diagnostics. Minor gaps remain around author/institution-centric lookup, saved-library operations, and batch full-text download, but these are workaroundable via the syntax search and export tools.