PoetryDB MCP Server

io.github.lacausecrypto由 GitHub 账号 lacausecrypto 发布v1.0.1更新于 Oct 24, 2026

Classic poetry search and discovery via PoetryDB.

概览

AI 生成的概览

一个非官方的本地 MCP 服务器,让助手按作者、标题、诗句文本和体裁检索并浏览 PoetryDB 上的经典诗歌。

可以做什么
按作者、标题、诗句中的文字、精确行数或组合多个字段搜索诗歌,并列出全部作者或标题。按体裁发现诗歌,例如十四行诗和三行俳句,或随机获取诗歌。查看服务器自身的分类与工具目录。
适用场景
适合让助手查找、引用或探索公版经典诗歌,而无需自行对接 PoetryDB,例如按标题找诗或浏览诗人列表。
运行要求
通过 stdio 在本机运行,通常用 npx 配合 npm 包 mcp-poetry,或用 Node.js 运行本地构建。无需 API 密钥或账号。需要访问 PoetryDB API 的网络;可通过 POETRYDB_BASE_URL、POETRYDB_REQUEST_TIMEOUT_MS 和 POETRYDB_REQUEST_RETRIES 设置基础地址、请求超时和重试次数。
安装前请注意
对第三方公共 API 的只读查询,诗歌查询内容会发送到 PoetryDB。该项目为非官方项目,与 PoetryDB 无关联。覆盖 POETRYDB_BASE_URL 会把请求指向其他主机。

安装

在 SourceWeft 中

  1. 打开 控制台中的 PoetryDB MCP Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

PoetryDB MCP Server

[npm version] [CI] [npm total downloads] [Node.js] [License: MIT]

Unofficial MCP server for exploring classic poetry through PoetryDB.

At a glance

MetricValue
Tools12
Categories3
Transportstdio
Authnone
MCP Registry nameio.github.lacausecrypto/poetrydb
npm packagemcp-poetry
Source APIhttps://poetrydb.org
Contentclassic poetry by author, title, line text, and form

Install

bash
npm install -g mcp-poetry

Or from source:

bash
npm installnpm run build

MCP Registry

This server is published to the MCP Registry under:

text
io.github.lacausecrypto/poetrydb

Claude Desktop

json
{  "mcpServers": {    "poetrydb": {      "command": "npx",      "args": ["-y", "mcp-poetry"]    }  }}

For a local checkout, replace the command with:

json
{  "mcpServers": {    "poetrydb": {      "command": "node",      "args": ["/absolute/path/to/mcp-poetrydb/dist/index.js"]    }  }}

Tools

Catalog

  • catalog_overview: list categories and available tools
  • catalog_category: show tools for a specific category

Search

  • search_by_author: find poems by author name
  • search_by_title: find a poem by title
  • search_by_lines: search text inside poem lines
  • search_by_linecount: find poems by exact line count
  • search_combined: query multiple PoetryDB fields in one request
  • list_authors: list all available authors

Discovery

  • random_poem: fetch one or more random poems
  • get_sonnets: fetch 14-line poems
  • get_haikus: fetch 3-line poems
  • list_titles: list poem titles

Example requests

Simple

text
Random poem please.

Expected tool:

text
random_poem({ "count": 1 })

Browse

text
Show me the available poets.

Expected tool:

text
list_authors({})

Targeted search

text
Find Ozymandias.

Expected tool:

text
search_by_title({ "title": "Ozymandias" })

Text search

text
Show me poems containing the word "love".

Expected tool:

text
search_by_lines({ "text": "love" })

Form-based discovery

text
Give me 14-line poems by Shakespeare.

Expected tool:

text
search_combined({ "fields": "author,linecount", "values": "Shakespeare;14" })

More advanced

text
List Shakespeare results, but only return title and linecount.

Expected tool:

text
search_by_author({ "author": "Shakespeare", "fields": "title,linecount" })

Multi-step exploration

text
Start with the catalog, then show me the discovery tools, then give me a sonnet.

Typical tool sequence:

text
catalog_overview({})catalog_category({ "category_id": "discovery" })get_sonnets({})

Development

bash
npm run buildnpm run test:cinpm testnpm pack --dry-run

Environment variables:

  • POETRYDB_BASE_URL
  • POETRYDB_REQUEST_TIMEOUT_MS
  • POETRYDB_REQUEST_RETRIES

Notes

  • No API key is required.
  • This package is not affiliated with PoetryDB.
  • Built for MCP clients that prefer a compact stdio server over a custom PoetryDB integration.
  • MCP Registry identity: io.github.lacausecrypto/poetrydb

Attribution

Additional implementation notes are in documentation.md.

来源:README.md,提交 726b0fe

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分