CNKI MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CNKI MCP Server Search for papers on deep learning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CNKI MCP Server
知网(CNKI)论文检索 MCP 服务 —— 让 AI 助手直接搜索和获取知网论文信息。
功能
Tool | 说明 |
| 搜索知网论文,支持 15 种搜索类型、分页、排序 |
| 从详情页提取完整元数据(标题/摘要/作者/DOI等) |
| 按字符相似度匹配最相近的论文标题 |
Resource | 说明 |
| 列出所有可用搜索类型及别名 |
| 查看服务运行状态 |
Related MCP server: cnki-mcp
安装
前置条件
Python >= 3.10
uv(推荐)或 pip
Chrome 浏览器
方式一:uvx 直接运行(推荐)
无需手动安装,配置后自动拉取:
{
"mcpServers": {
"cnki": {
"command": "uvx",
"args": ["cnki-mcp"]
}
}
}方式二:从 Git 安装
uvx --from git+https://github.com/你的用户名/cnki-mcp cnki-mcp方式三:本地开发安装
git clone <repo-url> cnki-mcp
cd cnki-mcp
uv sync
# 或 pip install -e .配置
Claude Desktop
编辑 claude_desktop_config.json:
{
"mcpServers": {
"cnki": {
"command": "uvx",
"args": ["--from", "e:\\data_agent\\cnki-mcp", "cnki-mcp"]
}
}
}Cursor
编辑 Cursor 的 MCP 配置:
{
"mcpServers": {
"cnki": {
"command": "uvx",
"args": ["--from", "e:\\data_agent\\cnki-mcp", "cnki-mcp"]
}
}
}支持的搜索类型
中文 | 英文别名 | 说明 |
主题 | subject, theme | 综合搜索(默认) |
篇关摘 | — | 篇名+关键词+摘要 |
关键词 | keyword, keywords | 关键词搜索 |
篇名 | title | 按标题搜索 |
全文 | fulltext, full_text | 全文搜索 |
作者 | author | 作者名搜索 |
第一作者 | first_author | 第一作者搜索 |
通讯作者 | corresponding_author | 通讯作者搜索 |
作者单位 | affiliation, institution | 机构搜索 |
基金 | fund | 基金项目搜索 |
摘要 | abstract | 摘要搜索 |
参考文献 | reference | 参考文献搜索 |
分类号 | classification | 分类号搜索 |
文献来源 | source | 期刊/来源搜索 |
DOI | doi | DOI 精确搜索 |
排序方式
中文 | 英文 |
相关度(默认) | relevance |
发表时间 | time, date |
被引 | cited, citation |
下载 | download, downloads |
使用建议
每次搜索建议 1-3 页,避免频繁请求触发反爬
搜索间隔建议 2-3 秒
首次运行会自动下载 ChromeDriver
维护
知网改版时如何修复
打开浏览器开发者工具,检查知网搜索页/详情页的 HTML 结构
编辑
src/cnki_mcp/selectors.py,更新对应的选择器每个字段支持多选择器回退,格式为
"策略:选择器",策略支持css、xpath、id
添加新的搜索类型
编辑 selectors.py 中的 SEARCH_TYPE_VALUES 和 SEARCH_TYPE_ALIASES 字典。
与原始项目的区别
本项目的改进:
选择器配置化 — 所有 XPath/CSS 集中在
selectors.py,知网改版只需改一个文件多选择器回退 — 每个元素有多套选择器策略,一个失败自动尝试下一个
结构化错误处理 — 自定义异常体系,每个步骤独立容错
更好的反检测 — 更多反自动化检测措施
可维护架构 — 清晰的模块分离(浏览器管理 / 选择器配置 / 业务逻辑)
去掉冗余 — 移除 FastAPI 版本,专注 MCP
License
MIT
Available Tools
3 toolsfind_best_matchA
根据论文标题在知网中查找最匹配的论文。使用字符相似度算法匹配第一页搜索结果中与输入标题最相似的论文。
Inputs: title (required), search_type. Returns: object
get_paper_detailA
获取知网论文的详细信息:标题、作者、机构、摘要、关键词、DOI、来源期刊、被引次数、下载次数等。传入论文详情页 URL。
Inputs: url (required). Returns: object
search_cnkiA
搜索知网(CNKI)论文。支持主题、关键词、篇名、作者、作者单位等多种搜索类型,支持分页和排序。每次建议搜索 1-3 页,间隔 2-3 秒。
Inputs: query (required), page, sort, page_size, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: search_cnki for general querying, get_paper_detail for retrieving metadata from a URL, and find_best_match for fuzzy title matching. There is no overlap in their primary functions, making selection unambiguous.
All tool names follow a consistent verb_noun pattern (search_cnki, get_paper_detail, find_best_match) with snake_case and action-first naming. The verbs clearly reflect the operation, and the naming style is uniform.
With 3 tools, the server is well-scoped for its purpose of searching and retrieving CNKI papers. Each tool serves a distinct need without redundancy, fitting within the ideal 3-15 range.
The tool set covers the core workflow: search for papers, retrieve details, and match specific titles. A minor gap is the lack of a direct way to browse by subject or export results, but the existing tools handle the main research workflow effectively.
Maintenance
Related MCP Connectors
Research paper search with real citations and reference formatting for AI assistants
Search peer-reviewed papers and research methodology guidance from your AI agent.
Search 340M+ academic papers — citation graphs, semantic similarity, and AI literature reviews.
arXiv and OpenAlex/Crossref paper search (an open Google Scholar alternative) as agent tools.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to search and retrieve academic papers from China National Knowledge Infrastructure (CNKI), supporting various search types including subject, keyword, author, and DOI lookups.321-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search CNKI (China National Knowledge Infrastructure), download PDFs, and import them into Zotero with automatic PDF attachment.34MIT
- FlicenseAqualityDmaintenanceEnables AI agents to search, read, and cite Chinese academic papers from CNKI using HUST single sign-on, with support for full-text retrieval, BibTeX export, and PDF download.74-
- AlicenseAqualityBmaintenanceEnables AI to search, filter, and process CNKI academic literature through natural language, including structured search, metadata retrieval, full-text reading, citation export, and PDF/CAJ download.912GPL 3.0