Skip to main content

Local Stdio MCP server for Judian poetry OpenAPI.

Project description

judian-poetry-mcp

聚典诗文数据库本地 Stdio MCP 服务。它把 Kimi Code CLI、Claude Code 等 MCP 客户端与聚典诗文 OpenAPI 连接起来,所有 HTTPS 请求都从用户本机发出,用于满足聚典授权阶段的 IP 白名单校验要求。

当前版本:1.0.4

特性

  • 本地 Stdio MCP,不走云端中转。
  • clientSecret 保存到系统钥匙串,不写入 Kimi、Claude 或 MCP 配置文件。
  • 支持诗词搜索、诗词详情、诗词译文、标签、诗人搜索、诗人详情 6 个工具。
  • 不注册赏析工具,因为聚典赏析接口当前返回加密文本。

安装

推荐使用隔离环境,避免影响系统 Python 里的其它包:

python -m venv C:\Users\%USERNAME%\.judian-mcp
C:\Users\%USERNAME%\.judian-mcp\Scripts\python.exe -m pip install --upgrade pip
C:\Users\%USERNAME%\.judian-mcp\Scripts\python.exe -m pip install judian-poetry-mcp

也可以直接安装到当前 Python:

python -m pip install judian-poetry-mcp

一次性配置

C:\Users\%USERNAME%\.judian-mcp\Scripts\python.exe -m judian_mcp_server setup

按提示输入:

聚典 clientId:
聚典 clientSecret:
用户标识 userId [local_mcp_user]:

Kimi 注册

隔离环境安装时:

kimi mcp add --transport stdio judian-poetry-db -- C:\Users\%USERNAME%\.judian-mcp\Scripts\python.exe -m judian_mcp_server
kimi mcp test judian-poetry-db

全局安装时:

kimi mcp add --transport stdio judian-poetry-db -- python -m judian_mcp_server
kimi mcp test judian-poetry-db

Claude Code 注册

隔离环境安装时:

claude mcp add --transport stdio --scope user judian-poetry-db -- C:\Users\%USERNAME%\.judian-mcp\Scripts\python.exe -m judian_mcp_server
claude mcp get judian-poetry-db

全局安装时:

claude mcp add --transport stdio --scope user judian-poetry-db -- python -m judian_mcp_server
claude mcp get judian-poetry-db

可用工具

工具 说明
search_poetry 检索诗文作品,返回 ID、题名、作者、朝代
get_poetry_details 获取作品详情和正文
get_poetry_translation 调用 /{id}/explain 获取译文
get_poetry_tags 获取诗词和诗人相关标签
search_poetry_authors 检索诗人
get_poetry_author_details 获取诗人详情

自检

python -m judian_mcp_server doctor
python -m judian_mcp_server config-path

升级

隔离环境:

C:\Users\%USERNAME%\.judian-mcp\Scripts\python.exe -m pip install --upgrade judian-poetry-mcp

全局安装:

python -m pip install --upgrade judian-poetry-mcp

升级后不需要重新运行 setup,原有系统钥匙串和用户配置会继续使用。

Project details


Download files

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

Source Distribution

judian_poetry_mcp-1.0.4.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

judian_poetry_mcp-1.0.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file judian_poetry_mcp-1.0.4.tar.gz.

File metadata

  • Download URL: judian_poetry_mcp-1.0.4.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for judian_poetry_mcp-1.0.4.tar.gz
Algorithm Hash digest
SHA256 06867fa866a7646c97369645e835f4366dcc310dd8475f0408903a4b792a7742
MD5 662ea1a451bb161da3d39c0c40f7c325
BLAKE2b-256 470568f0d2c156e929a20767be21ea2742d4d5b7a478b0f7faa8eed68f349d17

See more details on using hashes here.

File details

Details for the file judian_poetry_mcp-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for judian_poetry_mcp-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68c06b7ed2babcfb984f49cc2f7c72a8f269e7d4f9e3c76b9b1354f9c6b27470
MD5 51582d2840d19dca60e80f4a1e1d7b4b
BLAKE2b-256 a33e41ad993055415e44ff60ba43ecbe85c16ba77c3ec05ca97718ae7fca0a6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page