Cnki MCP logo

Cnki MCP

Community
SepineTam

An MCP server, CLI and Skills for reach CNKI.

PublisherSepineTam
Repositorycnki-mcp
LanguagePython
Forks
8
Stars
51
Available tools
0
Transport typestdio
LicenseGPL-3.0
Links
  • Connect tools to AI workflows

    Cnki MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    51 stars and 8 forks from the linked repository.

CNKI-MCP: An MCP server, CLI and Skills for reach CNKI.

PyPI version PyPI Downloads License

IMPORTANT:因该项目为个人学习项目且仅供学习与参考,故此不接受任何形式的 AI 提交的问题,代码和评论,仅接受人工编写的代码或真实的学习使用过程中发现的问题。同时,因个人能力与精力有限,没有很多的时间去审查代码,所以针对且仅针对于本人的该项目禁止任何形式地通过 AI 扫描代码库来生成 Issue 与 PR。 (没有说 AI 写的代码不好,他写的比我好多了,但考虑多方因素这个 repo 就是禁止使用 AI 扫库发现问题或提交代码,感谢理解。)

免责声明:该项目仅为个人学习项目,且仅供学习参考。 该项目不隶属任何公司、机构,与中国知网(下简称为知网或CNKI)无任何所属关系。 该项目不应用于非法手段,包括但不限于:批量访问知网进行搜索,以非正规途径获取知网论文,利用该项目进行违法违规的行为。 如有上述行为,本项目不构成任何因果利害关系,由使用者自行负责。最终解释权归本项目所有。

商标及非关联声明:项目所提及的“中国知网”“知网”“CNKI”等名称、商标及相关标识,其相关权利均归各自合法权利人所有。 本项目仅在客观说明所涉及的平台、适用对象或技术功能所必需的范围内引用相关名称,不将其作为本项目自身的品牌或来源标识,亦不表示或暗示本项目获得相关权利人的授权、认可、赞助或支持。 本项目为独立的非官方项目,与中国知网及其运营主体不存在隶属、代理或官方合作关系。 本项目的发布、分发及使用,不构成对上述第三方商标或标识的任何使用授权。 如相关权利人认为本项目存在侵犯其合法权益的情形,可向项目提交 Issue 并通过邮箱联系维护者,维护者将及时核实并依法处理。

快速开始

本项目提供了配套的 Skill,且同时支持 MCP,CLI,Python API 等多种使用方式,以便为研究者的 Agent 助理快速稳定地使用中国知网搜索论文查找论文。

如果你是人类研究者,将下面这句话发送给你的 Agent 即可:

plain
帮我从 GitHub 上安装 SepineTam/cnki-mcp 这个项目的 skill,subagents 等,并通过命令行的形式初始化这个项目。
成功初始化后,去查看《世界经济》这本期刊的 ISSN 号,并告诉我这个期刊在 2025 年是否发表过任何和人才引进相关的文章。

如果你是 Agent,参考 CNKI-MCP 的 Agent 安装文档

首次初始化

首次使用时运行:

bash
uv run cnki-mcp init

命令会询问 Profile 名称,直接回车使用 default。也可以直接指定名称:

bash
uv run cnki-mcp init --profile school

请在打开的浏览器中完成学校或机构认证。初始化成功后,该 Profile 会成为默认 Profile,后续启动和检索无需重复指定。

推荐启动方式

推荐使用 HTTP。下面两条命令效果相同,默认监听 127.0.0.1:7788:

bash
uv run cnki-mcp
uv run cnki-mcp serve --transport http --host 127.0.0.1 --port 7788

服务启动时会打开一个持久浏览器,并在服务进程退出时关闭。项目只提供知网检索和 文章信息读取,不提供全文下载。

按 ISSN 获取某一期的全部文章 metadata:

bash
uv run cnki-mcp tool journal --issn 1002-9621 --year 2026 --vol 1

这里的 --vol 表示知网页面上的期号。返回结果会把真正的卷号 volume 和期号 issue 分开提供。尚未发行的年份或期号会返回 IssueNotAvailable。

通过期刊名称搜索 ISSN:

bash
uv run cnki-mcp tool issn --journal "世界经济"

搜索会忽略期刊名中的空格和标点,并返回知网搜索到的全部候选期刊。期刊目录来自 知网期刊导航页。工具每次都会通过 ISSN 重新定位期刊并获取当次有效的页面地址, 不会保存其中会失效的 p 参数。

通过 Python 使用

该项目提供了 Python API 供学习参考:

python
# pip install cnki-mcp

from cnki_mcp import CnkiClient

with CnkiClient(profile="profile1") as client:
    results = client.search(
        "TI='生态' and KY='生态文明'",
        sort_by="date",
    )

文档

Use Cnki MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Cnki MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Cnki MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Cnki MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cnki-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Cnki MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Cnki MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Cnki MCP to help me with this task?
Cnki MCP
Sure. I read it.
Here is what I found using Cnki MCP.

Frequently asked questions

What is the Cnki MCP MCP server used for?

Cnki MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Cnki MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Cnki MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Cnki MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Cnki MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Cnki MCP MCP to TypingMind?

Cnki MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Cnki MCP MCP provide in TypingMind?

Cnki MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Cnki MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Cnki MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇