CNKI MCP Server
Enables searching and retrieving academic papers from CNKI (China National Knowledge Infrastructure), including support for DOI-based searches and retrieval of paper metadata such as titles, abstracts, authors, institutions, and DOI identifiers.
Click on "Install 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搜索关于人工智能伦理的最新论文"
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
基于 FastMCP 框架的中国知网 (CNKI) 论文检索 MCP 服务器,使 Cursor、Claude Desktop 等 AI Agent 可以直接搜索和获取 CNKI 论文信息。
功能特性
search_cnki: 搜索 CNKI 论文,支持多种搜索类型(主题、关键词、作者等)
get_paper_detail: 获取论文详情(标题、摘要、作者、机构、DOI 等)
find_best_match: 快速匹配最相似的论文标题
快速使用 (无需手动安装)
本项目的代码已发布到 GitHub,你可以通过 uvx 直接运行,无需先把代码克隆到本地安装。
前置要求:
需安装 uv
系统需安装 Chrome 浏览器(Selenium 依赖)
1. Cursor 配置
在 Cursor 设置中添加 MCP 服务器。编辑 ~/.cursor/mcp.json (或通过 UI 添加):
{
"mcpServers": {
"cnki": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/h-lu/cnki-mcp",
"cnki-mcp"
]
}
}
}2. Claude Desktop 配置
编辑配置文件 (通常位于 ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"cnki": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/h-lu/cnki-mcp",
"cnki-mcp"
]
}
}
}配置保存后,重启 Cursor 或 Claude Desktop 即可看到 cnki 服务器已连接。
使用示例
在 Cursor / Claude 中直接提问:
帮我搜索关于"大语言模型"的 CNKI 论文
获取这篇论文的详细信息: https://kns.cnki.net/kcms2/article/abstract?v=...
查找这篇论文: "Transformer: Attention Is All You Need" 在知网上的情况
支持的搜索类型
中文 | 英文别名 |
主题 | subject, theme |
关键词 | keyword, keywords |
篇名 | title |
作者 | author |
作者单位 | affiliation, institution |
DOI | doi |
注意事项
建议每次搜索 1-3 页,避免频繁请求
搜索间隔建议 2-3 秒
CNKI 可能有反爬限制,如遇问题请适当降低请求频率
首次运行时会自动下载 ChromeDriver,可能会花费一点时间
License
MIT
Available Tools
3 toolsfind_best_matchA
快速查找与输入标题最匹配的 CNKI 论文。
使用字符匹配算法,适合用于验证论文标题或快速定位特定论文。
Args: query: 论文标题或关键词 ctx: MCP 上下文(自动注入)
Returns: 最匹配论文的标题和 URL
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 论文标题或关键词 |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses the algorithm type ('字符匹配算法' - character matching algorithm) and the tool's suitability for quick verification/location. However, it doesn't mention potential limitations (e.g., accuracy, speed, rate limits), authentication needs, or error handling. It adds some behavioral context but leaves gaps for a tool with no annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and concise. It starts with the core purpose, adds usage guidelines, and includes clear sections for Args and Returns. Every sentence adds value, though the 'ctx' parameter note could be more integrated. It's appropriately sized for a single-parameter tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (1 parameter, 100% schema coverage, output schema exists), the description is fairly complete. It covers purpose, usage, parameters, and return values. The output schema handles return details, so the description doesn't need to explain them. However, with no annotations, it could benefit from more behavioral context like limitations or prerequisites.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the baseline is 3. The description adds value by explaining the parameter 'query' as '论文标题或关键词' (paper title or keywords), which clarifies its semantic purpose beyond the schema's basic description. However, it doesn't provide additional details like format examples or constraints beyond what the schema already covers (minLength: 1).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: '快速查找与输入标题最匹配的 CNKI 论文' (quickly find the best matching CNKI paper for an input title). It specifies the verb (find), resource (CNKI papers), and scope (best match). However, it doesn't explicitly differentiate from sibling tools like 'search_cnki' beyond mentioning it uses a 'character matching algorithm'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides some usage context: '适合用于验证论文标题或快速定位特定论文' (suitable for verifying paper titles or quickly locating specific papers). This implies when to use it, but it doesn't explicitly state when NOT to use it or mention alternatives like 'search_cnki' or 'get_paper_detail'. The guidance is helpful but incomplete.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_paper_detailA
获取 CNKI 论文详情页的完整信息。
Args: url: CNKI 论文详情页 URL(通常从 search_cnki 结果中获取) ctx: MCP 上下文(自动注入)
Returns: 包含论文完整信息的字典:title, authors, institutions, abstract, keywords, source, year, volume, issue, pages, doi, cited_count, download_count, fund
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | CNKI 论文详情页 URL(通常从 search_cnki 结果中获取) |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a retrieval operation ('获取'), which implies read-only behavior, and describes the comprehensive return format. However, it doesn't mention potential limitations like rate limits, authentication requirements, error conditions, or whether the tool caches results. The description adds value by specifying the scope ('完整信息' - complete information) but lacks operational details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections (purpose, Args, Returns) and efficiently conveys essential information. The purpose statement is front-loaded, and every sentence serves a clear function. Minor improvement could be made by integrating the parameter guidance more seamlessly rather than as a separate Args section note.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's single parameter with full schema coverage, the existence of an output schema (implied by the Returns section detailing the dictionary structure), and clear differentiation from sibling tools, the description is complete enough. It covers purpose, parameter context, and return format without unnecessary detail. The output schema information in the Returns section compensates for any missing behavioral details.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the schema already fully documents the single 'url' parameter. The description adds meaningful context by specifying that URLs '通常从 search_cnki 结果中获取' (usually obtained from search_cnki results), which provides practical guidance on parameter sourcing. This goes beyond the schema's technical documentation to offer usage semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('获取' meaning 'get/retrieve'), the resource ('CNKI 论文详情页的完整信息' meaning 'complete information from CNKI paper detail page'), and distinguishes from siblings by focusing on detail extraction rather than searching (search_cnki) or matching (find_best_match). The verb+resource combination is precise and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context for when to use this tool: after obtaining a URL from search_cnki results. It implicitly distinguishes from search_cnki (which finds papers) and find_best_match (which likely matches queries to papers). However, it doesn't explicitly state when NOT to use this tool or mention alternatives beyond the implied workflow.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_cnkiB
搜索 CNKI 论文,返回论文列表。
Args: query: 搜索关键词 ctx: MCP 上下文(自动注入) search_type: 搜索类型,支持: - 中文:主题、关键词、作者、篇名、作者单位、全文、DOI、基金、摘要 - 英文:subject, keyword, author, title, affiliation, fulltext, doi pages: 搜索页数(1-10),每页约20条结果 sort: 排序方式,支持: - 中文:相关度、发表时间、被引、下载、综合 - 英文:relevance, date, cited, download, composite
Returns: 包含论文列表的字典,每篇论文包含:title, url, authors, source, date, cited_count
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 搜索关键词(必填) | |
| search_type | No | 搜索类型: 主题、关键词、作者、篇名、作者单位、全文、DOI、基金、摘要 | 主题 |
| pages | No | 搜索页数(每页约20条结果) | |
| sort | No | 排序方式: 相关度、发表时间、被引、下载、综合 (英文: relevance, date, cited, download, composite) | 相关度 |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that pages parameter has a range (1-10) and each page returns about 20 results, which adds some behavioral context. However, it doesn't cover important aspects like rate limits, authentication requirements, error conditions, or whether this is a read-only operation. For a search tool with no annotation coverage, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with clear sections (Args, Returns) and uses bullet points for enumerations. It's appropriately sized for a tool with 4 parameters. However, the first sentence could be more front-loaded with key information, and some parameter details are redundant with the schema.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that there's an output schema (the Returns section describes the response structure), the description doesn't need to explain return values in detail. It covers the basic purpose and parameters adequately. However, for a search tool with no annotations, it could provide more context about limitations, performance characteristics, or error handling.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description repeats some parameter information (search_type options, pages range, sort options) but doesn't add significant meaning beyond what's in the schema. The baseline of 3 is appropriate when the schema does the heavy lifting, though the description does provide some additional context about page size ('每页约20条结果').
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: '搜索 CNKI 论文,返回论文列表' (Search CNKI papers, return paper list). It specifies the verb ('搜索' - search) and resource ('CNKI 论文' - CNKI papers). However, it doesn't explicitly differentiate from sibling tools like 'find_best_match' or 'get_paper_detail', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus its siblings ('find_best_match' and 'get_paper_detail'). It doesn't mention any prerequisites, exclusions, or alternative scenarios. The only usage context is implied by the tool name and description, but no explicit guidelines are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The three tools have clearly distinct purposes: search_cnki performs broad searches with filtering options, find_best_match uses character matching for precise title verification, and get_paper_detail retrieves detailed metadata from a specific URL. There is no functional overlap between these tools, making selection unambiguous.
All tool names follow a consistent verb_noun pattern (search_cnki, find_best_match, get_paper_detail) with clear, descriptive naming. The conventions are uniform throughout the set, using snake_case and action-oriented verbs appropriate to each tool's function.
With only three tools, the server feels somewhat thin for a comprehensive CNKI (academic paper database) interface. While the tools cover core search and retrieval workflows, typical academic search servers would include more operations like citation analysis, author profiling, or filtering capabilities. The count is borderline minimal but functional.
The tools provide good coverage of essential CNKI operations: searching, precise matching, and detailed retrieval. Minor gaps include lack of update/delete operations (though these may not apply to read-only academic databases) and advanced filtering beyond the search parameters. The surface supports basic research workflows effectively.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Search peer-reviewed papers and research methodology guidance from your AI agent.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Open scientific and engineering knowledge for AI agents: search, evidence, document publishing.
Search and download academic papers from arXiv, PubMed, bioRxiv, medRxiv, Google Scholar, Semantic…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/h-lu/cnki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server