SuperAPIAI Directory

openzim-mcp

github.com · AI developer platforms

Search and navigate Wikipedia and other ZIM-format knowledge archives offline, with smart retrieval and caching.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

OpenZIM MCP is a modern, secure, high-performance MCP (Model Context Protocol) server that enables AI models to access and search ZIM-format knowledge bases offline. It transforms static ZIM archives into a dynamic knowledge engine for AI models, suitable for scenarios such as research assistants, knowledge chatbots, and content analysis systems that require intelligent access to massive knowledge repositories, rather than just raw text dumps.

Key capabilities

  • Dual mode: Simple mode (default) exposes a single natural language tool zim_query, suitable for small models; Advanced mode exposes all 8 specialized tools zim_query, zim_search, zim_get, zim_get_section, zim_browse, zim_metadata, zim_links, zim_health, and provides 3 MCP prompts (/research, /summarize, /explore) and per-entry resources. The advanced mode schema is reduced from about 36KB to about 24.1KB.
  • Archive type presets: automatically detects archive types (Wikipedia, Stack Exchange, etc.) and automatically adjusts retrieval and summarization methods, for example, Stack Exchange dumps are presented as clear question-and-answer rather than vote score noise; operators can override with a TOML file (OPENZIM_MCP_PRESETS_OVERRIDE_PATH).
  • Native libzim introspection: zim_health can verify archive integrity, and zim_metadata reports archive identity, full-text/title indexing capabilities, and MIME type distribution.
  • Inbound link discovery: zim_links(direction="inbound") returns pages that link to a given entry, sorted by linker importance; requires a pre-built sidecar: openzim-mcp build link-graph <archive>.zim.
  • Streaming HTTP transport: supports bearer token authentication, CORS, health endpoints, and multi-architecture Docker images.
  • Per-entry MCP resources and subscriptions: zim://{name}/entry/{path}, supports native MIME types; clients can open a subscriptions/listen stream, receive resources/list_changed when a ZIM appears or disappears, and receive resources/updated when it is replaced.
  • Intelligent navigation: navigate by namespace (articles, metadata, media), structure-aware retrieval (sections, table of contents, related articles), full-text search with suggestions and multi-archive search, link graph extraction.
  • Caching and paginated operations to ensure responsiveness with large archives; comprehensive input validation and path traversal protection.

Usage

  • The container uses stdio transport by default; docker run -i speaks MCP via stdin/stdout; a long-running HTTP service requires enabling at runtime -e OPENZIM_MCP_TRANSPORT=http -e OPENZIM_MCP_HOST=0.0.0.0 -e OPENZIM_MCP_AUTH_TOKEN=… -p 8000:8000.
  • The server requires at least one ZIM archive to work. The example uses the ~/zim-files directory (the server expands ~ itself). An English Wikipedia climate change excerpt (13.6 MB) can be obtained from the openZIM project test suite; full archives can be downloaded from browse.library.kiwix.org and saved as .zim to the same directory.
  • Can be added via the Smithery registry and the official MCP Registry (io.github.cameronrye/openzim-mcp). The Smithery CLI can install it; the one-click Claude Desktop extension can download the openzim-mcp-<version>.mcpb asset and install it by double-clicking; the package launches the version-locked uvx openzim-mcp@<version> (the host must have uv) and prompts for the ZIM directory.
  • Can be connected to any MCP client that supports stdio, such as Claude Desktop's claude_desktop_config.json. After connecting, you can ask the LLM questions such as "summarize the article on Photosynthesis", and zim_query will automatically dispatch to the correct underlying tool.
  • Simple mode is enabled by default; for full control, you can run advanced mode to expose all 8 specializedTool.

Applicable scenarios and limitations

  • Applicable: research assistants, knowledge chatbots, content analysis systems, and other applications that need intelligent offline access to ZIM archives such as Wikipedia, Wiktionary, Stack Exchange, etc.; small models (≤13B parameters) are suitable for Simple mode, while larger models (Claude Sonnet/Opus, GPT-4o level, Llama 70B+) can directly dispatch Advanced mode.
  • Limitations: without a ZIM archive, the server has no effect; inbound link discovery requires a pre-built link-graph sidecar; v3.0.0 is a breaking version and no longer serves resources/subscribe / unsubscribe, switching to subscriptions/listen (2026-07-28 protocol revision), and link-graph sidecars built for 2.x must be rebuilt; the v1.x maintenance window was closed when v2.5.0 was released, and all active development is on the current mainline.
  • License: MIT. See SECURITY.md for the security policy; no known CVEs. Current version v3.3.4 (2026-09-18), v2.0.0 GA was released on 2026-05-27.
  • Full documentation is available at https://cameronrye.github.io/openzim-mcp/docs/。部分具体安装命令、配置示例与价格信息在资料中未完整提供,暂未提供。
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools