{"_id":"@dhcckb/mcp-server-zdic","name":"@dhcckb/mcp-server-zdic","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dhcckb/mcp-server-zdic","version":"1.0.0","description":"MCP Server for querying zdic.net (汉典网) - Chinese character, word, and idiom dictionary","type":"module","main":"src/index.js","bin":{"mcp-server-zdic":"src/index.js"},"mcp":{"tools":[{"name":"zdic_lookup","description":"查询汉典网（zdic.net）的字、词、成语。支持单个汉字、词语、成语的查询，返回结构化的解释和元数据。当查询未命中时返回搜索建议列表。","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"要查询的汉字、词语或成语。支持中文简体和繁体。"},"tabs":{"type":"array","items":{"type":"string"},"description":"可选。指定要返回的选项卡内容。不指定则返回所有可用内容。汉字可选值：基本解释、详细解释、国语辞典、康熙字典、说文解字、音韵方言、字源字形。词语可选值：词语解释、国语辞典、近反义词、翻译。"}},"required":["query"]}}]},"scripts":{"start":"node src/index.js","test":"node --test src/*.test.js"},"keywords":["mcp","zdic","chinese-dictionary","hanzi","汉典","字典","词典"],"author":"","license":"MIT","repository":{"type":"git","url":"git+https://github.com/user/mcp-server-zdic.git"},"engines":{"node":">=18.0.0"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.0","cheerio":"^1.0.0"},"_id":"@dhcckb/mcp-server-zdic@1.0.0","bugs":{"url":"https://github.com/user/mcp-server-zdic/issues"},"homepage":"https://github.com/user/mcp-server-zdic#readme","_integrity":"sha512-rKnKtQLDrj4a1IABLEYIPNivooAjxyJUVX0nlcDd/sLfwrEiyj3Op3U6I4nkCIuKE/scJSMEViCCDWnifpA3jg==","_resolved":"/tmp/dhp-agent-npm-JPcdlB/package.tgz","_from":"file:/tmp/dhp-agent-npm-JPcdlB/package.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.1","dist":{"integrity":"sha512-rKnKtQLDrj4a1IABLEYIPNivooAjxyJUVX0nlcDd/sLfwrEiyj3Op3U6I4nkCIuKE/scJSMEViCCDWnifpA3jg==","shasum":"a944fced94841a1ba857e8eab14fa37850aa8ab4","tarball":"https://registry.npmjs.org/@dhcckb/mcp-server-zdic/-/mcp-server-zdic-1.0.0.tgz","fileCount":5,"unpackedSize":27379,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAGiafTtu0zOdJ45HarH9JmIS2tnMECZdfjMfSkT1YW8AiEA/j+pH9/zM7w2NxUiJYvL7jFCbtlgE55HerUwwu+ojxY="}]},"_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-zdic_1.0.0_1784111333184_0.08810521031386065"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T10:28:53.089Z","1.0.0":"2026-07-15T10:28:53.324Z","modified":"2026-07-15T10:28:53.488Z"},"maintainers":[{"name":"thudh","email":"tangchen@mail.tsinghua.edu.cn"}],"description":"MCP Server for querying zdic.net (汉典网) - Chinese character, word, and idiom dictionary","homepage":"https://github.com/user/mcp-server-zdic#readme","keywords":["mcp","zdic","chinese-dictionary","hanzi","汉典","字典","词典"],"repository":{"type":"git","url":"git+https://github.com/user/mcp-server-zdic.git"},"bugs":{"url":"https://github.com/user/mcp-server-zdic/issues"},"license":"MIT","readme":"# mcp-server-zdic\n\nMCP Server for querying [zdic.net](https://zdic.net) (汉典网) - Chinese character, word, and idiom dictionary.\n\n## Features\n\n- Look up Chinese characters, words, and idioms from zdic.net\n- Returns structured JSON with pinyin, zhuyin, radicals, strokes, unicode, and more\n- Provides dictionary definitions from multiple sources (基本解释, 详细解释, 国语辞典, 康熙字典, 说文解字, etc.)\n- Falls back to search suggestions when no exact match is found\n\n## Installation\n\n```bash\nnpm install -g mcp-server-zdic\n```\n\nOr run directly with npx:\n\n```bash\nnpx mcp-server-zdic\n```\n\n## Usage with MCP Clients\n\n### Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"zdic\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-server-zdic\"]\n    }\n  }\n}\n```\n\n### Manual Start\n\n```bash\nnode src/index.js\n```\n\n## Tool: zdic_lookup\n\nQuery zdic.net for Chinese character, word, or idiom information.\n\n### Parameters\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `query` | string | Yes | Chinese character, word, or idiom to look up |\n| `tabs` | string[] | No | Specific tab sections to return |\n\n### Response Structure\n\n```json\n{\n  \"type\": \"character | word | idiom | search_results\",\n  \"query\": \"墨\",\n  \"url\": \"https://zdic.net/hans/%E5%A2%A8\",\n  \"metadata\": {\n    \"pinyin\": \"mò\",\n    \"zhuyin\": \"ㄇㄛˋ\",\n    \"radical\": \"土\",\n    \"extraStrokes\": \"3\",\n    \"totalStrokes\": \"15\",\n    \"unicode\": \"CJK 58A8\",\n    \"strokeOrder\": \"254312114444121\",\n    \"structure\": \"上下结构\",\n    \"structureAnalysis\": \"会意兼形声\",\n    \"variants\": [...]\n  },\n  \"tabs\": {\n    \"基本解释\": [...],\n    \"详细解释\": [...],\n    \"国语辞典\": [...],\n    \"康熙字典\": [...],\n    \"说文解字\": [...],\n    \"音韵方言\": {...},\n    \"字源字形\": {...}\n  }\n}\n```\n\n## Requirements\n\n- Node.js >= 18\n\n## License\n\nMIT","readmeFilename":"README.md","_rev":"1-a2b8f33e6107b7ad882db417466c4cbf"}