Skip to main content

Local Stdio MCP server for Judian poetry OpenAPI.

Project description

judian-poetry-mcp

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

本地源码安装

如果你当前拿到的是源码目录,而不是已经发布到 PyPI 的包,请在项目根目录执行:

cd C:\home\聚典mcp
python -m pip install -e .
python -m judian_mcp_server setup

如果 judian-poetry-mcp 命令已在 PATH 中,也可以执行:

judian-poetry-mcp setup

Kimi 本地源码注册建议使用绝对路径,避免 PATH 问题:

kimi mcp add --transport stdio judian-poetry-db -- python C:\home\聚典mcp\judian_mcp_server.py

发布后安装

以下命令只适用于 judian-poetry-mcp 已发布到 PyPI 或企业内部包仓库之后:

pipx install judian-poetry-mcp

如果没有 pipx

python -m pip install judian-poetry-mcp

一次性配置

judian-poetry-mcp setup

该命令会把 clientSecret 保存到系统钥匙串,把非敏感配置保存到本机用户配置目录。Kimi MCP 配置中不需要保存密钥。

Kimi 注册

kimi mcp add --transport stdio judian-poetry-db -- judian-poetry-mcp
kimi mcp test judian-poetry-db

可用工具

工具 说明
search_poetry 检索诗文作品,返回 ID、题名、作者、朝代
get_poetry_details 获取作品详情和正文
get_poetry_translation 获取白话译文
get_poetry_appreciation 获取赏析、背景和文学评价

自检

judian-poetry-mcp doctor
judian-poetry-mcp config-path

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.0.tar.gz (8.3 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.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: judian_poetry_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 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.0.tar.gz
Algorithm Hash digest
SHA256 cd9fd402c974d7367e51821cd248658e28f2babfa2889151a59ad1359d9f186a
MD5 05254f9d08fe9e460b5295d14f9d8329
BLAKE2b-256 d4872df83e70e722b73fbca5b2cbb36e19cb8aa546199917bb749b834d23a17f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for judian_poetry_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 402aa2123e9347d747e29439348e46b2859ed601927d4949c9cf12619338f944
MD5 ae0ae6940a9d32661a7879e798795b2e
BLAKE2b-256 cd32da548bb0ffb36f36c660295e5e25429301fa51a8edb1b7e277f3f25f0689

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