Skip to main content

诗人关系网络 MCP 工具 (dhcckb-poet-network-mcp)

基于 CNK Graph 古典文献知识图谱 开放 API 构建的 MCP Server, 让 LLM 客户端可通过标准 MCP 协议查询诗人交游关系网络,并以结构化 CSV 文本输出结果。

安装

uvx dhcckb-poet-network-mcp
# 或
pip install dhcckb-poet-network-mcp

MCP 客户端配置

在 Claude Desktop、Cursor 等 MCP 宿主中添加:

{
  "mcpServers": {
    "poet-network": {
      "command": "uvx",
      "args": ["dhcckb-poet-network-mcp"]
    }
  }
}

工具列表

query_poet_relationships

查询诗人交游关系网络。输入 Author 和/或 Friend,返回含作者、交游对象、作品题目、作品正文、创作时间、创作地址的 CSV 文本, 并同时写入本地 .csv 文件。

参数 类型 必填 说明
author string 否* 作者姓名,如 李白、杜甫
friend string 否* 交游对象姓名
begin_year integer 起始年份(公元纪年)
end_year integer 截止年份(公元纪年)
scope string 查询范围限定
begin_place string 起始地点
end_place string 截止地点
marked_poem_ids string 指定诗作 ID,逗号分隔
labels string 标签筛选
details_in_raw boolean 是否返回原始详情
dynasty string 朝代筛选,如 唐、宋

*author 与 friend 至少填写一个。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dhcckb_poet_network_mcp-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file dhcckb_poet_network_mcp-0.1.0.tar.gz.

File metadata

File hashes

Hashes for dhcckb_poet_network_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 41ad8466a25cc2370193ff9bd88e1778d46de75d3cfd392092ccf4b9241eb552
MD5 0ac3e5a1d623fd3edc115528dc0d1fe6
BLAKE2b-256 138d745484429a6c975c048bbc131816ed0892d08fe6a3cb13bbd7297dd57635

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page