海棠诗社
Search and browse classical Chinese poetry on haitang.app. Read-only and public.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"haitang": {
"url": "https://haitang.app/mcp"
}
}
}远程端点
https://haitang.app/mcpstreamable-http它能做什么
工具清单
工具(16)
🟢search_poetry(query, authorLimit, workLimit)
Search public classical Chinese poetry by keyword across authors and works. Returns public URLs and short excerpts. Use get_work or get_author for details.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 60,
"description": "Keyword matching public authors and poetry, 1–60 characters."
},
"authorLimit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 20
},
"workLimit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_dynasties(collection, category, tag)
List all public dynasties as name/slug pairs. Use the dynasty name as category when browsing works or authors. Optional browse filters also return live facets for collections, dynasties and types; the static list stays complete.
输入模式
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_collections(collection, category, tag)
List all public collections as name/slug pairs. Use the collection slug as the collection ID string when browsing works. Optional browse filters also return live facets for collections, dynasties and types; the static list stays complete.
输入模式
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_types(collection, category, tag)
List all public work kinds as name/slug pairs. Use the kind slug as tag when browsing works. Optional browse filters also return live facets for collections, dynasties and types; the static list stays complete.
输入模式
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_sorts
List public work sort labels and slugs. A null slug means omit sort for the site default order.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_themes
List the public 主题 taxonomy group with its name, slug and categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_festivals
List the public 节日 taxonomy group with its name, slug and categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_solar_terms
List the public 节气 taxonomy group with its name, slug and categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_cipai
List the public 词牌 taxonomy group with its name, slug and categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_seasons
List the public 时令 taxonomy group with its name, slug and categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_geography
List the public 地理 taxonomy group with its name, slug and categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_groups
List the remaining public taxonomy groups: 选集, 写景, 时间, 花卉, 课本, 城市, 名山, 用典 and 书籍, with their categories.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_works(collection, category, tag, sort, page)
Browse public works with optional collection ID, dynasty name (category), kind slug (tag), sort and page. Returns public work URLs and page metadata.
输入模式
{
"type": "object",
"properties": {
"collection": {
"description": "Collection ID string from list_collections, for example \"1\".",
"type": "string",
"pattern": "^[1-9]\\d{0,9}$"
},
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"tag": {
"description": "Work kind slug from list_types: shi (诗), ci (词), qu (曲), wen (文).",
"type": "string",
"enum": [
"shi",
"ci",
"qu",
"wen"
]
},
"sort": {
"description": "Omit for the site default descending order; views_count_asc reverses it. Collections follow curated show order.",
"type": "string",
"enum": [
"views_count_asc"
]
},
"page": {
"default": 1,
"description": "Page number, from 1 to 1000.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢list_authors(category, page)
Browse public authors, optionally filtered by dynasty name (category). Returns public author URLs and page metadata.
输入模式
{
"type": "object",
"properties": {
"category": {
"description": "Dynasty name from list_dynasties, for example 唐. Not a group name.",
"type": "string",
"minLength": 1,
"maxLength": 60
},
"page": {
"default": 1,
"description": "Page number, from 1 to 1000.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_work(id)
Read a public work by numeric ID, including poem text, introduction, annotations, translation, collections and quotes. A missing work returns work: null.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Positive numeric ID from a search or list result."
}
},
"required": [
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_author(id, page)
Read a public author by numeric ID and a page of their works. A missing author returns author: null.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Positive numeric ID from a search or list result."
},
"page": {
"default": 1,
"description": "Page number, from 1 to 1000.",
"type": "integer",
"minimum": 1,
"maximum": 1000
}
},
"required": [
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社区
证据