{"_id":"@dhcckb/mcp-server-kegong","name":"@dhcckb/mcp-server-kegong","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dhcckb/mcp-server-kegong","version":"0.1.0","description":"MCP Server for querying Shanghai Library's Ancient Book Engraver Directory (古籍刻工名录)","type":"module","main":"./dist/index.mjs","bin":{"mcp-server-kegong":"dist/index.mjs"},"scripts":{"build":"tsc","start":"node dist/index.mjs"},"keywords":["mcp","mcp-server","shanghai-library","kegong","engraver","ancient-books","digital-humanities"],"repository":{"type":"git","url":"git+https://github.com/dhcckb/mcp-server-kegong.git"},"license":"MIT","publishConfig":{"access":"public"},"engines":{"node":">=20"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.0","zod":"^3.23.0"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.6.0"},"mcp":{"tools":[{"name":"search_kegong_by_person","description":"按刻工人名搜索上海图书馆古籍刻工名录。输入中文姓名（或部分姓名），返回该刻工参与的所有作品记录列表，每项包含刻工名、类型（刻工/写工/绘工等）、作品名称、相关 RDF 简述、刻工实体详情 URL、作品实体详情 URL。","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"刻工中文姓名，如「张玉」"},"limit":{"type":"integer","description":"最大返回条数，默认 20","default":20}},"required":["name"]}},{"name":"search_kegong_by_work","description":"按古籍书名搜索上海图书馆刻工名录。输入完整或部分书名，返回该作品涉及的所有刻工记录列表，每项包含刻工名、类型、作品名称、RDF 简述、刻工详情 URL、作品详情 URL。","inputSchema":{"type":"object","properties":{"title":{"type":"string","description":"古籍书名，如「资治通鉴」"},"limit":{"type":"integer","description":"最大返回条数，默认 20","default":20}},"required":["title"]}},{"name":"get_person_detail","description":"获取刻工人物实体详情。输入 person ID 或完整 URL，返回结构化详情：姓名、类型、来源说明、原始 RDF 属性集合。可通过搜索人名获取关联作品列表。","inputSchema":{"type":"object","properties":{"idOrUrl":{"type":"string","description":"Person ID（如 oulj1ue0tii843i4）或完整 URL（http://data.library.sh.cn/entity/person/oulj1ue0tii843i4）"}},"required":["idOrUrl"]}},{"name":"get_work_detail","description":"获取古籍作品实体详情。输入 annotation/work ID 或完整 URL，返回结构化详情：题名、年代版本、责任者、刻工列表、写工列表、画工列表、说明、相关刻工人物信息。","inputSchema":{"type":"object","properties":{"idOrUrl":{"type":"string","description":"Work/Annotation ID（如 f8jmjqwpiyt6v3cn）或完整 URL（http://data.library.sh.cn/gj/resource/annotation/f8jmjqwpiyt6v3cn）"}},"required":["idOrUrl"]}}]},"_id":"@dhcckb/mcp-server-kegong@0.1.0","bugs":{"url":"https://github.com/dhcckb/mcp-server-kegong/issues"},"homepage":"https://github.com/dhcckb/mcp-server-kegong#readme","_integrity":"sha512-myjNeQyhC7EkxxLIj0I1ax1bv/8VBxpgQRepqEnM2jeSmBZQ3mFTozbRIIN80w5mPdEuKpM/scvuWGdSK5xsIA==","_resolved":"/tmp/dhp-agent-npm-DFPgeC/package.tgz","_from":"file:/tmp/dhp-agent-npm-DFPgeC/package.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.1","dist":{"integrity":"sha512-myjNeQyhC7EkxxLIj0I1ax1bv/8VBxpgQRepqEnM2jeSmBZQ3mFTozbRIIN80w5mPdEuKpM/scvuWGdSK5xsIA==","shasum":"c2c2999422dc800bc2460692dfb815147db1a7da","tarball":"https://registry.npmjs.org/@dhcckb/mcp-server-kegong/-/mcp-server-kegong-0.1.0.tgz","fileCount":15,"unpackedSize":58021,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDtMptw6cNF69VRSzQ/M6m3yif/MMc/8oxzYOSitkvyQAiEAnG5VuOfxn1gzvKskOEfkujXag84u/nCE9jxbBDocjAo="}]},"_npmUser":{"name":"thudh","email":"tangchen@mail.tsinghua.edu.cn"},"directories":{},"maintainers":[{"name":"thudh","email":"tangchen@mail.tsinghua.edu.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-kegong_0.1.0_1784192024594_0.7663042451653124"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-16T08:53:44.427Z","0.1.0":"2026-07-16T08:53:44.717Z","modified":"2026-07-16T08:53:44.927Z"},"maintainers":[{"name":"thudh","email":"tangchen@mail.tsinghua.edu.cn"}],"description":"MCP Server for querying Shanghai Library's Ancient Book Engraver Directory (古籍刻工名录)","homepage":"https://github.com/dhcckb/mcp-server-kegong#readme","keywords":["mcp","mcp-server","shanghai-library","kegong","engraver","ancient-books","digital-humanities"],"repository":{"type":"git","url":"git+https://github.com/dhcckb/mcp-server-kegong.git"},"bugs":{"url":"https://github.com/dhcckb/mcp-server-kegong/issues"},"license":"MIT","readme":"# @dhcckb/mcp-server-kegong\n\nMCP Server for querying Shanghai Library's **Ancient Book Engraver Directory (古籍刻工名录)**.\n\nThis server wraps the open data API from [data.library.sh.cn/kegong](https://data.library.sh.cn/kegong) and exposes 4 MCP tools that can be used with any MCP-compatible client (Claude Desktop, claude-code, etc.).\n\n## Features\n\n- Search engravers by person name (Chinese characters)\n- Search engravers by ancient book title\n- Retrieve structured person entity details with RDF properties\n- Retrieve work/annotation details with associated engraver lists\n- All results include clickable entity detail URLs\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `search_kegong_by_person` | Search the engraver directory by person name. Returns matched persons with their associated works. |\n| `search_kegong_by_work` | Search by ancient book title. Returns works with their associated engravers. |\n| `get_person_detail` | Get structured details for a person entity (names, type, source, full RDF properties, associated works). |\n| `get_work_detail` | Get structured details for a work/annotation (title, classification, contributor, engraver/writer/painter lists, description). |\n\n## Installation\n\n```bash\n# Run directly via npx (recommended)\nnpx @dhcckb/mcp-server-kegong\n\n# Or install globally\nnpm install -g @dhcckb/mcp-server-kegong\nmcp-server-kegong\n```\n\n## Requirements\n\n- Node.js >= 20\n\n## Claude Desktop Configuration\n\nAdd the following to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"kegong\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@dhcckb/mcp-server-kegong\"]\n    }\n  }\n}\n```\n\n## Environment Variables\n\nNo environment variables are required. The server connects directly to the public Shanghai Library open data API.\n\n## Example Usage\n\nIn an MCP client, you can ask:\n\n- \"Search for engravers named 张玉\"\n- \"Find engravers who worked on 资治通鉴\"\n- \"Get details about the person entity oulj1ue0tii843i4\"\n- \"Get details about the work f8jmjqwpiyt6v3cn\"\n\n## Data Source\n\nAll data comes from the Shanghai Library Open Data Platform:\n- Search page: https://data.library.sh.cn/kegong\n- Entity pages use Linked Data principles with RDF support\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-89fc7c041a70c31fdced11483bf0156d"}