OpenZIM MCP
Lets your AI agent search and read offline knowledge archives such as Wikipedia, Wiktionary and Stack Exchange.
149 stars on GitHubby Cameron RyeLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add openzim -- uvx openzim-mcp zim_directory
What to fill in
| Name | What it is | Required |
|---|---|---|
OPENZIM_MCP_TOOL_MODE | Tool surface: 'advanced' (the default here) registers all 8 tools (zim_query, zim_search, zim_get, zim_get_section, zim_browse, zim_metadata, zim_links, zim_health); 'simple' registers only the zim_query natural-language entry point. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Summarize the article on photosynthesis.
Search the archive for climate change and list the top matches.
What it is
OpenZIM MCP gives your agent offline access to ZIM files, the format used by Kiwix for Wikipedia and other archives. The agent can search, read articles and sections, browse, check links and validate archives without internet. It has a simple mode with one natural-language tool and an advanced mode with eight tools.
What it can do
zim_query: natural-language request that picks the right actionzim_search: full-text searchzim_get: get an articlezim_get_section: get one sectionzim_browse: browse entrieszim_metadata: archive detailszim_links: outbound and inbound linkszim_health: check an archive
When to use
- βΊWhen you want your agent to look things up offline in Wikipedia
- βΊWhen you need answers from a Stack Exchange or Wiktionary archive
- βΊWhen you are building a research assistant on a fixed knowledge set
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
siyuanLets your agent search, read, create, edit and delete notes in your self-hosted SiYuan knowledge base using its API.archive-crawlerHelps your agent search your personal file archives for your own writing and ideas, but only in folders you explicitly allow.web-debug-searchLets your agent search GitHub, Stack Exchange, developer forums, and official docs for software errors and workarounds, for debugging only.Frequently asked questions
Is it free and open source?
Yes. The readme says it is MIT licensed.
Does it need internet?
No. It reads local ZIM files, so it works offline once you have an archive.
Where do I get archives?
From the Kiwix library at browse.library.kiwix.org. Sizes range from a few hundred MB to tens of GB.
Which mode should I use?
Simple mode is the default and suits smaller models. Advanced mode exposes all 8 tools and suits larger models.
Does it have an HTTP option?
Yes. Streamable HTTP with bearer token auth, CORS and health endpoints, plus a Docker image.
How do I find inbound links?
Build a link graph first with openzim-mcp build link-graph on the archive.
If it does not work
- βΊCheck that the path you pass contains at least one .zim file.
- βΊWith Docker, mount your folder with -v ~/zim-files:/data and run with -i.
- βΊRun openzim-mcp --help to check the install worked.
5 new skills a week. 1 minute to read.