@dhcckb/mcp-server-kegong
v0.1.0
Published
MCP Server for querying Shanghai Library's Ancient Book Engraver Directory (古籍刻工名录)
Maintainers
Readme
@dhcckb/mcp-server-kegong
MCP Server for querying Shanghai Library's Ancient Book Engraver Directory (古籍刻工名录).
This server wraps the open data API from data.library.sh.cn/kegong and exposes 4 MCP tools that can be used with any MCP-compatible client (Claude Desktop, claude-code, etc.).
Features
- Search engravers by person name (Chinese characters)
- Search engravers by ancient book title
- Retrieve structured person entity details with RDF properties
- Retrieve work/annotation details with associated engraver lists
- All results include clickable entity detail URLs
Tools
| Tool | Description |
|------|-------------|
| search_kegong_by_person | Search the engraver directory by person name. Returns matched persons with their associated works. |
| search_kegong_by_work | Search by ancient book title. Returns works with their associated engravers. |
| get_person_detail | Get structured details for a person entity (names, type, source, full RDF properties, associated works). |
| get_work_detail | Get structured details for a work/annotation (title, classification, contributor, engraver/writer/painter lists, description). |
Installation
# Run directly via npx (recommended)
npx @dhcckb/mcp-server-kegong
# Or install globally
npm install -g @dhcckb/mcp-server-kegong
mcp-server-kegongRequirements
- Node.js >= 20
Claude Desktop Configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"kegong": {
"command": "npx",
"args": ["-y", "@dhcckb/mcp-server-kegong"]
}
}
}Environment Variables
No environment variables are required. The server connects directly to the public Shanghai Library open data API.
Example Usage
In an MCP client, you can ask:
- "Search for engravers named 张玉"
- "Find engravers who worked on 资治通鉴"
- "Get details about the person entity oulj1ue0tii843i4"
- "Get details about the work f8jmjqwpiyt6v3cn"
Data Source
All data comes from the Shanghai Library Open Data Platform:
- Search page: https://data.library.sh.cn/kegong
- Entity pages use Linked Data principles with RDF support
License
MIT
