Skip to main content
Glama
io.github.lacausecrypto/poetrydb

io.github.lacausecrypto/poetrydb

PoetryDB MCP Server

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

PoetryDBを通じて古典詩を探索するための非公式MCPサーバーです。

概要

項目

値

ツール

12

カテゴリ

3

トランスポート

stdio

認証

なし

MCPレジストリ名

io.github.lacausecrypto/poetrydb

npmパッケージ

mcp-poetry

ソースAPI

https://poetrydb.org

コンテンツ

著者、タイトル、行テキスト、形式による古典詩

Related MCP server: io.github.FreyaBit/shanghai-library-open-data-mcp

インストール

npm install -g mcp-poetry

またはソースから:

npm install
npm run build

MCPレジストリ

このサーバーはMCPレジストリに以下の名前で公開されています:

io.github.lacausecrypto/poetrydb

Claude Desktop

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

ローカルチェックアウトの場合は、コマンドを次のように置き換えてください:

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

ツール

カタログ

  • catalog_overview: カテゴリと利用可能なツールを一覧表示します

  • catalog_category: 特定のカテゴリのツールを表示します

検索

  • search_by_author: 著者名で詩を検索します

  • search_by_title: タイトルで詩を検索します

  • search_by_lines: 詩の行内のテキストを検索します

  • search_by_linecount: 正確な行数で詩を検索します

  • search_combined: 1つのリクエストで複数のPoetryDBフィールドをクエリします

  • list_authors: 利用可能なすべての著者を一覧表示します

発見

  • random_poem: 1つ以上のランダムな詩を取得します

  • get_sonnets: 14行の詩を取得します

  • get_haikus: 3行の詩を取得します

  • list_titles: 詩のタイトルを一覧表示します

リクエスト例

シンプル

Random poem please.

期待されるツール:

random_poem({ "count": 1 })

ブラウズ

Show me the available poets.

期待されるツール:

list_authors({})

ターゲット検索

Find Ozymandias.

期待されるツール:

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

テキスト検索

Show me poems containing the word "love".

期待されるツール:

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

形式ベースの探索

Give me 14-line poems by Shakespeare.

期待されるツール:

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

より高度な例

List Shakespeare results, but only return title and linecount.

期待されるツール:

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

複数ステップの探索

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

典型的なツールの順序:

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

開発

npm run build
npm run test:ci
npm test
npm pack --dry-run

環境変数:

  • POETRYDB_BASE_URL

  • POETRYDB_REQUEST_TIMEOUT_MS

  • POETRYDB_REQUEST_RETRIES

注意事項

  • APIキーは不要です。

  • このパッケージはPoetryDBとは提携していません。

  • カスタムPoetryDB統合よりもコンパクトなstdioサーバーを好むMCPクライアント向けに構築されています。

  • MCPレジストリID: io.github.lacausecrypto/poetrydb

帰属

追加の実装ノートはdocumentation.mdにあります。

Available Tools

12 tools
catalog_categorycatalog_categoryB

Show the tools and description for a specific category.

Inputs: category_id (required).

catalog_overviewcatalog_overviewA

Overview of all PoetryDB MCP tools. Start here to discover categories.

Inputs: no named parameters.

get_haikusget_haikusC

Find 3-line poems, optionally filtered by author.

Inputs: author.

get_sonnetsget_sonnetsA

Find 14-line sonnets, optionally filtered by author.

Inputs: author.

list_authorslist_authorsA

List all available authors in PoetryDB.

Inputs: no named parameters.

list_titleslist_titlesA

List all poem titles in PoetryDB.

Inputs: no named parameters.

random_poemrandom_poemA

Get one or more random poems.

Inputs: count.

search_by_authorsearch_by_authorA

Find poems by author name. Supports exact or partial author matches.

Inputs: author (required), fields.

search_by_linecountsearch_by_linecountB

Find poems with a specific number of lines.

Inputs: linecount (required).

search_by_linessearch_by_linesA

Search for poems containing specific text in their lines.

Inputs: text (required).

search_by_titlesearch_by_titleC

Find a poem by title. Supports exact or partial title matches.

Inputs: title (required).

search_combinedsearch_combinedB

Run a combined PoetryDB search across multiple fields.

Inputs: fields (required), values (required), output.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, but get_sonnets and get_haikus overlap with search_by_linecount since 14-line and 3-line poems are special cases. An agent might be unsure whether to use the specialized get_* tools or the more general search_by_linecount.

    Naming Consistency3/5

    Tool naming mixes several patterns: catalog_* (catalog_overview, catalog_category), search_by_* (search_by_author, search_by_title, etc.), list_* (list_authors, list_titles), get_* (get_sonnets, get_haikus), and random_poem (no prefix). This inconsistency can make tool selection less predictable.

    Tool Count5/5

    With 12 tools, the count is well within the expected range for a domain-specific server. Each tool serves a distinct function and none feels superfluous or excessive for a poetry database.

    Completeness4/5

    The toolset covers searching, listing, and random access, along with helpful meta-tools for discovery. Minor gaps include the lack of a direct 'get poem by ID' or 'get full poem content' endpoint, which forces reliance on search results. Overall, the surface is reasonably complete for common poetry browsing workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables searching and retrieving poems from the PoetryDB API by title, keyword, or author, and also provides random poems for inspiration.
      9 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Exposes 97 official Shanghai Library open data APIs and the Sou-Yun poetry database (1.99 million poems) as 12 MCP tools, covering genealogy, ancient books, calligraphy, historical buildings, and more. Enables MCP clients to query these datasets using natural language.
      12
      31 PyPI
      4
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI agents to explore a public-domain poetry collection by searching poems by title, finding poems whose lines contain a given phrase, pulling one or more random poems, and listing available authors. It returns full poem text with author and line-count details, and works either through a hosted gateway or as a local stdio server without an account.
      81 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to search Chinese poems by title, content, author, dynasty, or category; check recitations and dictation; generate appreciation text; create TTS recitations with subtitles; and produce calligraphy practice sheets.
      MIT