🚀 Built for LLM Intelligence

Transform Static ZIM Archives into Dynamic Knowledge Engines

OpenZIM MCP is a modern, secure MCP server that enables AI models to access and search ZIM format knowledge bases offline with intelligent, structured access patterns.

90%+
Test Coverage
🔒
Security First
High Performance
MCP Configuration
{
  "openzim-mcp": {
    "command": "uv",
    "args": [
      "--directory", "/path/to/openzim-mcp",
      "run", "python", "-m", "openzim_mcp",
      "/path/to/zim/files"
    ]
  }
}

Why LLMs Love OpenZIM MCP

Unlike basic file readers, OpenZIM MCP provides intelligent, structured access that LLMs need to effectively navigate and understand vast knowledge repositories.

🧭

Smart Navigation

Browse by namespace (articles, metadata, media) instead of blind searching. Get structured access to content organization.

🔍

Context-Aware Discovery

Get article structure, relationships, and metadata for deeper understanding. Extract links and content connections.

🎯

Intelligent Search

Advanced filtering, auto-complete suggestions, and relevance-ranked results with namespace and content type filters.

Performance Optimized

Cached operations and pagination prevent timeouts on massive archives. Intelligent caching with TTL management.

🔗

Relationship Mapping

Extract internal/external links to understand content connections. Build knowledge graphs from ZIM content.

🔒

Security First

Comprehensive input validation, path traversal protection, and secure resource management with type safety.

Quick Installation

Get up and running with OpenZIM MCP in just a few minutes.

1

Clone & Install

# Clone the repository
git clone https://github.com/cameronrye/openzim-mcp.git
cd openzim-mcp

# Install dependencies
uv sync
2

Prepare ZIM Files

# Create directory for ZIM files
mkdir ~/zim-files

# Download ZIM files from Kiwix Library
# https://browse.library.kiwix.org/
3

Run the Server

# Start the MCP server
uv run python -m openzim_mcp /path/to/zim/files

# Or using make
make run ZIM_DIR=/path/to/zim/files

Usage Examples

See OpenZIM MCP in action with real-world examples and API calls.

Documentation & Resources

Comprehensive guides, API references, and community resources to help you get the most out of OpenZIM MCP.

📚

API Reference

Complete documentation of all available MCP tools, parameters, and response formats.

View API Docs →
🚀

Quick Start Guide

Step-by-step tutorial to get OpenZIM MCP running in your environment quickly.

Start Tutorial →
⚙️

Configuration Guide

Advanced configuration options, environment variables, and performance tuning.

Configure →
🔧

Troubleshooting

Common issues, solutions, and debugging tips for OpenZIM MCP deployment.

Get Help →
🏗️

Architecture Overview

Deep dive into the system architecture, components, and design decisions.

Learn More →
🤝

Contributing

Guidelines for contributing code, reporting issues, and joining the community.

Contribute →