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 获取白话译文

自检

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.2.tar.gz (8.8 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.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: judian_poetry_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 8.8 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.2.tar.gz
Algorithm Hash digest
SHA256 53af7291437e02f1796bd3f5d1fc6a9d5c74682a45608e21be2302ad910364c9
MD5 d22edc420bd3fef931d17f1354ca9a80
BLAKE2b-256 599d44d88f9dab543fd0e3b7be81311894d1ea326dbb36954a4acd0d2d6dddca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for judian_poetry_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6335b9d64db5cf820d4ba925043ffed10266377842923a3d87cb86a6315e8ac0
MD5 f88d29ecddcbc4132458cfa0f65e319b
BLAKE2b-256 54e1881582ca1392629dfaf9d2d43a6e6039dad4a90e8cbf0004afe176e4d778

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