home / mcp / openzim mcp server
Transforms ZIM archives into structured, offline knowledge engines for AI models with mode options, smart retrieval, and high-performance access.
Configuration
View docs{
"mcpServers": {
"cameronrye-openzim-mcp": {
"command": "openzim-mcp",
"args": [
"/path/to/zim/files"
],
"env": {
"OPENZIM_MCP_SERVER_NAME": "openzim-mcp",
"OPENZIM_MCP_CACHE__ENABLED": "true",
"OPENZIM_MCP_LOGGING__LEVEL": "INFO",
"OPENZIM_MCP_CACHE__MAX_SIZE": "100",
"OPENZIM_MCP_CACHE__TTL_SECONDS": "3600",
"OPENZIM_MCP_CONTENT__MAX_CONTENT_LENGTH": "100000"
}
}
}
}OpenZIM MCP Server transforms static ZIM archives into a dynamic knowledge engine for AI models. By exposing structured access to offline content, it enables efficient querying, navigation, and extraction of articles, metadata, and embedded media for multi-agent AI workflows without requiring internet access.
You can run the OpenZIM MCP Server with a local ZIM archive directory and then connect your MCP client to it to perform smart queries, article lookups, metadata retrieval, and content extraction. Start in simple mode for a single intelligent tool or switch to advanced mode to enable all 18 specialized tools. Use the server to power research assistants, knowledge chatbots, and content analysis systems that operate offline.
Prerequisites: you need Python and/or Node.js tooling available on your system, plus access to ZIM files you want to index. Choose your preferred installation path from the options below.
# Install from PyPI (recommended)
pip install openzim-mcp
# Development installation (from source)
# Clone the repository
git clone https://github.com/cameronrye/openzim-mcp.git
cd openzim-mcp
# Install dependencies (example commands shown; adapt to your environment)
uv sync
uv sync --dev
# Optional: install with make targets
``````},{Configuration, security, and usage notes help you run and maintain your MCP server effectively.
Configuration and server management details are provided to help you tune caching, content limits, logging, and health monitoring. You can run integrity checks, diagnose server state, and resolve conflicts when multiple server instances operate on shared directories.
List all ZIM files in allowed directories with basic metadata.
Search within ZIM file content for a query, with optional limit and offset for pagination.
Get detailed content of a specific ZIM entry by its path, with optional maximum content length and smart retrieval fallback.
Retrieve ZIM file metadata including counts and archive information.
Fetch the main page entry from the W namespace of a ZIM file.
List available namespaces with entry counts and sample entries.
Browse entries within a specific namespace with pagination support.
Search content with optional namespace and content-type filters.
Return search term suggestions based on partial queries.
Extract article structure, headings, and metadata for a given article.
Extract internal, external, and media links from an article.
Get a concise summary of an article with metadata.
Extract a hierarchical table of contents for an article.
Retrieve binary content like images, PDFs, or videos from a ZIM entry with optional base64 encoding.
Return server health status and basic metrics.
Return detailed server configuration and diagnostics.
Provide comprehensive diagnostics about server state and environment.
Identify and resolve conflicts between multiple MCP server instances.