{"_id":"@dhcckb/tgaz-mcp-server","name":"@dhcckb/tgaz-mcp-server","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dhcckb/tgaz-mcp-server","version":"1.0.0","description":"CHGIS 时空地名辞典查询 MCP Server — 通过复旦 TGaz 只读接口查询中国历史地名时空信息","main":"dist/index.js","type":"module","bin":{"tgaz-mcp-server":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js"},"mcp":{"tools":[{"name":"tgaz_search","description":"查询 CHGIS 时空地名辞典（TGaz）。接收地名和年份参数，向复旦 CHGIS TGaz 查询接口提交查询，返回所有匹配的时空地名记录。","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"地名，如「苏州」「长安」「汴梁」"},"year":{"type":"integer","description":"目标年份，如 1820。留空则不限年份"}},"required":["name"]}}]},"keywords":["mcp","chgis","tgaz","gazetteer","chinese-historical-geography","temporal-gazetteer"],"author":{"name":"DHCCKB"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dhcckb/tgaz-mcp-server.git"},"engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.0","axios":"^1.7.0"},"devDependencies":{"@types/node":"^20.0.0","typescript":"^5.4.0"},"_id":"@dhcckb/tgaz-mcp-server@1.0.0","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/dhcckb/tgaz-mcp-server/issues"},"homepage":"https://github.com/dhcckb/tgaz-mcp-server#readme","_integrity":"sha512-j7XFVfT/FjTw1adzIW5vErvI5QVwTXT7LGZF8Uhs0aNLkugPB0SSmyzSIzgYJVDyVRMPcmaFcN1lzEoyJYpkwQ==","_resolved":"/tmp/dhp-agent-npm-lnMano/package.tgz","_from":"file:/tmp/dhp-agent-npm-lnMano/package.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.1","dist":{"integrity":"sha512-j7XFVfT/FjTw1adzIW5vErvI5QVwTXT7LGZF8Uhs0aNLkugPB0SSmyzSIzgYJVDyVRMPcmaFcN1lzEoyJYpkwQ==","shasum":"a97f4ce5c9ecd3a34b380b7d065c8ab7328d7e5e","tarball":"https://registry.npmjs.org/@dhcckb/tgaz-mcp-server/-/tgaz-mcp-server-1.0.0.tgz","fileCount":5,"unpackedSize":13559,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4P3vNwHOUsFiAUzpaaVAu/PDtpEm+uRmdn/HmpeezfAIgZtmOcrobMonvK8pMMdlXNL02hDvAz+8QyZfdlV1YZVw="}]},"_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/tgaz-mcp-server_1.0.0_1785313410876_0.6396961520823183"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-29T08:23:30.764Z","1.0.0":"2026-07-29T08:23:31.025Z","modified":"2026-07-29T08:23:31.259Z"},"maintainers":[{"name":"thudh","email":"tangchen@mail.tsinghua.edu.cn"}],"description":"CHGIS 时空地名辞典查询 MCP Server — 通过复旦 TGaz 只读接口查询中国历史地名时空信息","homepage":"https://github.com/dhcckb/tgaz-mcp-server#readme","keywords":["mcp","chgis","tgaz","gazetteer","chinese-historical-geography","temporal-gazetteer"],"repository":{"type":"git","url":"git+https://github.com/dhcckb/tgaz-mcp-server.git"},"author":{"name":"DHCCKB"},"bugs":{"url":"https://github.com/dhcckb/tgaz-mcp-server/issues"},"license":"MIT","readme":"# @dhcckb/tgaz-mcp-server\n\nCHGIS 时空地名辞典查询 MCP Server —— 通过复旦 TGaz 只读接口查询中国历史地名时空信息。\n\n## 安装\n\n```bash\nnpx -y @dhcckb/tgaz-mcp-server\n```\n\n## 环境变量\n\n- `TGZ_BASE_URL` — TGaz 服务基础 URL（默认 `https://tgaz.fudan.edu.cn`）\n\n## 工具\n\n### tgaz_search\n\n查询 CHGIS 时空地名辞典（TGaz）。接收地名和年份参数，返回所有匹配的时空地名记录。\n\n**参数:**\n- `name` (string, 必填) — 地名，如「苏州」「长安」「汴梁」\n- `year` (number, 可选) — 目标年份，如 1820。留空则不限年份\n\n**返回:**\n```json\n{\n  \"results\": [\n    {\n      \"sys_id\": \"hvd_32432\",\n      \"uri\": \"http://tgaz.fudan.edu.cn/tgaz/placename/hvd_32432\",\n      \"name\": \"苏州府\",\n      \"transcription\": \"Suzhou Fu\",\n      \"years\": \"1367 ~ 1911\",\n      \"parent_sys_id\": \"hvd_30040\",\n      \"parent_name\": \"江南行省 (Jiangnan Xings)\",\n      \"feature_type\": \"府 (fu)\",\n      \"object_type\": \"POINT\",\n      \"lon\": 120.61862,\n      \"lat\": 31.31271,\n      \"data_source\": \"CHGIS\"\n    }\n  ],\n  \"total\": 3,\n  \"query\": { \"name\": \"苏州\", \"year\": 1820 }\n}\n```\n\n## 数据来源\n\n数据来源于复旦大学与哈佛大学合作的 [CHGIS](https://sites.fas.harvard.edu/~chgis/) 项目。\n\n## 许可证\n\nMIT","readmeFilename":"README.md","_rev":"1-38fbde3e6f89eadf0b181bbc8b5cb428"}