TH

thinkinai-hackathon/zim-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 6 forks 质量 49 趋势 0MIT

一个MCP服务器,使AI模型能够离线访问和搜索ZIM格式知识库

概览

ZIM)(Zeno IMproved)是一种由非营利组织Kiwix开发的文件格式,专为离线存储和访问维基百科及其他大型参考内容而设计。ZIM格式支持高压缩率和快速搜索,使整个维基百科内容能够压缩成相对较小的文件,方便存储和使用,尤其是在没有互联网连接的环境中。 ZIM MCP 服务器提供大型语言模型,能够直接访问和搜索 ZIM 文件中的内容,使人们即使在没有网络访问的情况下,也能利用本地 AI 模型进行问答和从这些离线知识资源中获取信息。 Kiwix是一家致力于让在线知识内容(尤其是维基百科、TED演讲等)能够离线访问的非营利组织。

概述(AI 翻译)

英文 |中文

ZIM MCP 服务器

ZIM)(Zeno IMproved)是一种由非营利组织Kiwix开发的文件格式,专为离线存储和访问维基百科及其他大型参考内容而设计。ZIM格式支持高压缩率和快速搜索,使整个维基百科内容能够压缩成相对较小的文件,方便存储和使用,尤其是在没有互联网连接的环境中。

ZIM MCP 服务器提供大型语言模型,能够直接访问和搜索 ZIM 文件中的内容,使人们即使在没有网络访问的情况下,也能利用本地 AI 模型进行问答和从这些离线知识资源中获取信息。

关于Kiwix

Kiwix 是一家非营利组织,致力于使在线知识内容(尤其是维基百科、TED 演讲等)能够离线访问。Kiwix 开发了创建、查看和搜索 ZIM 文件的工具,用户可以通过这些工具将大量在线知识资源打包成 ZIM 文件,供本地访问。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

English | 中文

ZIM MCP Server

ZIM (Zeno IMproved) is a file format developed by the nonprofit organization Kiwix, designed specifically for offline storage and access to Wikipedia and other large reference content. The ZIM format supports high compression rates and fast searching, enabling entire Wikipedia content to be compressed into relatively small files for convenient storage and use, especially in environments without internet connectivity.

ZIM MCP Server provides large language models with the ability to directly access and search content within ZIM files, allowing people to use local AI models for question answering and information retrieval from these offline knowledge resources, even without network access.

About Kiwix

Kiwix is a nonprofit organization dedicated to making online knowledge content (especially Wikipedia, TED talks, etc.) accessible offline. Kiwix has developed tools for creating, viewing, and searching ZIM files, through which people can package large amounts of online knowledge resources into ZIM files for local access. The Kiwix project is particularly important for developing countries and regions without internet connectivity, as it enables people in these areas to access rich knowledge resources, promoting the dissemination of knowledge and equal educational opportunities.

Installation

1. Clone the Repository

git clone https://github.com/ThinkInAI-Hackathon/zim-mcp-server.git

2. Install uv

  • On Windows:
    • If you have not set execution policy before, run:
      powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
      
    • Otherwise, you can run:
      irm https://astral.sh/uv/install.ps1 | iex
      
  • On MacOS:

3. Install Dependencies

cd path\to\zim-mcp-server   # (e.g., D:\zim-mcp-server)
uv sync

4. Prepare ZIM Files

Download ZIM files (e.g., Wikipedia, Wiktionary, etc.) from the Kiwix Library and place them in a directory, e.g.,

path\to\zim\files   # (e.g., D:\ZIM)

Configuration for Claude Desktop

The configuration for Claude Desktop requires the local path to your cloned repository.

Add the following to your claude_desktop_config.json (replace the paths with your actual local paths):

"zim-mcp-server": {
  "command": "uv",
  "args": [
    "--directory",
    "path\\to\\zim-mcp-server",   // e.g., D:\\zim-mcp-server
    "run",
    "server.py",
    "path\\to\\zim\\files"      // e.g., D:\\ZIM
  ]
}
  • "path\\to\\zim-mcp-server": Local path to your cloned zim-mcp-server repository (e.g., D:\zim-mcp-server).
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →