⚠️ 实验警告
这是一个仅在WSL2上进行过测试的实验版本。以下安装和使用说明专门针对WSL2环境。
这是一个用于读取和搜索ZIM文件的模型上下文协议服务器。ZIM是由Kiwix开发的一种文件格式,用于离线存储维基百科和其他参考内容。
pnpm install
pnpm run build
/path/to/zim在你的claude_desktop_config.json中添加以下内容:
{
"mcpServers": {
"zim-mcp-server": {
"command": "wsl.exe",
"args": [
"bash",
"-c",
"node /path/to/zim-mcp-server/build/index.js /path/to/zim"
]
}
}
}
示例:
{
"mcpServers": {
"zim-mcp-server": {
"command": "wsl.exe",
"args": [
"bash",
"-c",
"node /home/username/Code/zim-mcp-server/build/index.js /home/username/Code/zim"
]
}
}
}
将/path/to/zim-mcp-server替换为你的项目路径,将/path/to/zim替换为你的ZIM文件目录路径。
list-zim-files:列出允许目录中的所有ZIM文件search-zim-file:在ZIM文件内容中搜索
zimFilePath,querylimit(默认值:10),offset(默认值:0)get-zim-entry:获取特定条目的详细内容
zimFilePath,entryPathmaxContentLength(默认值:10000)MIT