Openzim

Content and CMS

Offline MCP access to ZIM knowledge archives, Wikipedia, Wiktionary, Stack Exchange, Kiwix.

Your AI app calls the Openzim MCP server, which does the content and CMS work and sends the result back to the chat.

About Openzim

Openzim is a community MCP server from cameronrye, filed in our directory under content and cms. Offline MCP access to ZIM knowledge archives, Wikipedia, Wiktionary, Stack Exchange, Kiwix.

Openzim runs on your own machine: your AI app starts it with the command uvx openzim-mcp==3.5.2 and talks to it over standard input and output.

Openzim is listed in the official MCP registry as io.github.cameronrye/openzim-mcp, version 3.5.2.

At a glance

Publisher
cameronrye (community)
Runs
Locally on your machine
Install from
Python package on PyPI: openzim-mcp
Written in
Python
License
MIT
GitHub stars
159
Official MCP registry
io.github.cameronrye/openzim-mcp

How to set up Openzim

  1. Install uv on the machine that runs your AI app, because Openzim starts with uvx and fetches its Python package on first run.
  2. Check the Openzim README for keys or settings; the registry lists none that Openzim requires.
  3. Add Openzim to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Openzim tools to confirm the connection.
  5. Run one read-only task with Openzim first, and keep your app asking before each tool call until the results look right.

Openzim compared with similar servers

  • ReActMCP by mshojaei77 has fewer GitHub stars than Openzim (145 against 159); both are community servers, and both run locally.
  • Turbovault by Epistates has more GitHub stars than Openzim (161 against 159); both are community servers, and both run locally.
  • Wix by Wix has fewer GitHub stars than Openzim (0 against 159); Wix is official while Openzim is a community server, and Wix runs as a remote server and Openzim runs on your own machine.

Before you connect Openzim

  • Give Openzim its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Openzim tool call until you trust what it does with them.
  • Treat text that Openzim fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Openzim on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Openzim

How marketing and sales teams put Openzim to work, by company size. Pick the size closest to yours and start Openzim on one use case.

Small business

  • A small business can use Openzim to draft, update and publish site pages from a chat, keeping the site fresh without an agency.
  • Owners can ask Openzim which pages are outdated and get a list of updates in order of traffic.
  • Openzim runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Content teams can connect Openzim to move drafts into the CMS with fields, tags and metadata filled in, ready for an editor.
  • SEO and content teams can use Openzim to refresh old posts at scale, with each change reviewed before it goes live.
  • Start Openzim on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can give Openzim draft-only rights, so agents prepare content while publishing stays with approved editors.
  • Large content orgs can use Openzim to manage many sites and languages, keeping structure and governance consistent.
  • Openzim is a community server, so have security review the code and pin a version before Openzim touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Openzim README

From cameronrye/openzim-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

OpenZIM MCP Server

Transform static ZIM archives into dynamic knowledge engines for AI models

✨ Highlights. A lean 8-tool advanced surface (zim_query, zim_search, zim_get, zim_get_section, zim_browse, zim_metadata, zim_links, zim_health) with a schema small enough for small-model dispatch, or one-tool Simple mode for natural-language queries. Archive-type presets auto-tune retrieval per source (Wikipedia, Stack Exchange, …), inbound link discovery answers "what links here," and native libzim introspection validates and inspects any archive. Available on the official MCP Registry. Release notes → Docs (cameronrye.github.io/openzim-mcp/docs)

OpenZIM MCP is a modern, secure, high-performance Model Context Protocol server that gives AI models structured, offline access to ZIM format knowledge archives, Wikipedia, Wiktionary, Stack Exchange, and the rest of the Kiwix Library.

Built for research assistants, knowledge chatbots, and content-analysis systems that need intelligent access to vast knowledge repositories, not just a raw text dump. Smart navigation by namespace (articles, metadata, media), structure-aware retrieval (sections, tables of contents, related articles), full-text search with suggestions and multi-archive search, and link-graph extraction to map content relationships. Cached, paginated operations keep things responsive across massive archives; comprehensive input validation and path-traversal protection keep things safe.

Streamable HTTP transport, per-entry MCP resources (advanced mode) with live change notifications (HTTP transport), and dual Simple / Advanced modes are all built in.

Install

# uv (recommended, isolated CLI tool)
uv tool install openzim-mcp

# pip
pip install openzim-mcp

# Docker (multi-arch image, ghcr.io), runs as a local stdio MCP server
docker pull ghcr.io/cameronrye/openzim-mcp
docker run -i --rm -v ~/zim-files:/data ghcr.io/cameronrye/openzim-mcp

The container defaults to stdio transport, so docker run -i speaks MCP over stdin/stdout, wire it into an MCP client the same way as the binary (see Quick start). For the long-running HTTP service (bearer auth, CORS, health endpoints), opt in at runtime with -e OPENZIM_MCP_TRANSPORT=http -e OPENZIM_MCP_HOST=0.0.0.0 -e OPENZIM_MCP_AUTH_TOKEN=… -p 8000:8000; see HTTP & Docker deployment.

Verify the install:

openzim-mcp --help
Get your first ZIM archive

The server does nothing without an archive to read. Grab a real one, a 13.6 MB extract of English Wikipedia on climate change, from the openZIM project's own testing suite. No account, nothing to install:

mkdir -p ~/zim-files
curl -fsSL -o ~/zim-files/wikipedia_en_climate_change_mini_2024-06.zim \
  https://raw.githubusercontent.com/openzim/zim-testing-suite/main/data/withns/wikipedia_en_climate_change_mini_2024-06.zim

~/zim-files is the directory every example below points the server at, the server expands ~ itself, so it works from a shell and from a client config file alike. For full archives, Wikipedia, Wiktionary, Stack Exchange and the rest, ranging from a few hundred MB to tens of GB, browse browse.library.kiwix.org and save the .zim into the same directory. More detail, including checksums and a Windows PowerShell equivalent: Quick start.

Registry & one-click install

OpenZIM MCP is listed on the official MCP Registry as io.github.cameronrye/openzim-mcp, so any client that reads the registry can install it by name.

For a one-click Claude Desktop extension, download the openzim-mcp-<version>.mcpb asset (and its .sha256) from the latest release and double-click it. The bundle launches the version-pinned uvx openzim-mcp@<version> (so the host needs uv) and prompts for your ZIM directory. Maintainer runbook: docs/distribution.md.

Quick start

Run the server in Simple mode (the CLI default, exposes one natural-language tool, zim_query):

openzim-mcp ~/zim-files

Wire it into your MCP client. Example for Claude Desktop's claude_desktop_config.json (any MCP client that speaks stdio works the same way):

{
  "mcpServers": {
    "openzim-mcp": {
      "command": "uvx",
      "args": ["openzim-mcp", "~/zim-files"]
    }
  }
}

Once the client connects, ask your LLM a question the starter archive can answer, such as "what is the greenhouse effect?", zim_query dispatches to the right underlying tool automatically and returns the A/Greenhouse_effect article.

For full control, run in Advanced mode to expose all 8 specialized tools:

{
  "mcpServers": {
    "openzim-mcp-advanced": {
      "command": "uvx",
      "args": ["openzim-mcp", "--mode", "advanced", "~/zim-files"]
    }
  }
}

For HTTP transport (long-running service with bearer auth, CORS, and health endpoints) see HTTP & Docker deployment.

Highlights

  • 8-tool advanced surface, zim_query, zim_search, zim_get, zim_get_section, zim_browse, zim_metadata, zim_links, zim_health. Down from 22; advanced-mode schema drops from ~36KB to ~23.8KB, clearing the MCP Tax pain band. API reference →
  • Streamable HTTP transport, bearer-token auth, CORS, health endpoints, multi-arch Docker image. HTTP & Docker deployment →
  • Per-entry MCP resources + subscriptions, zim://{name}/entry/{path} with native MIME types, registered in advanced mode alongside the prompts. Over the HTTP transport only, clients open a subscriptions/listen stream and get resources/list_changed when a ZIM appears or disappears, resources/updated when one is replaced. Resources, prompts & subscriptions →
  • Simple-mode zim_query, one natural-language tool that dispatches to the right operation, tuned for small-model deployment targets. Quick start →
  • Operator-set server instructions (3.5+), replace the instructions every client receives with your own text, set inline with OPENZIM_MCP_INSTRUCTIONS or from a file with OPENZIM_MCP_INSTRUCTIONS_PATH. A {{default}} token in it expands to the built-in instructions for the running mode, so you can add context about your archives without copying them. Server instructions →
  • Archive-type presets, OpenZIM MCP detects the archive type (Wikipedia, Stack Exchange, and more) and auto-tunes retrieval and summarization for it, e.g. Stack Exchange dumps render as clean Q&A instead of vote-score noise. Operators can override the bundled defaults with a TOML file (OPENZIM_MCP_PRESETS_OVERRIDE_PATH).
  • Native libzim introspection, zim_health(zim_file_path=...) validates an archive's integrity (Archive.check() + checksum), and zim_metadata reports archive identity, full-text / title index capabilities, and an M/Counter mimetype breakdown. API reference →
  • Inbound link discovery ("what links here"), zim_links(direction="inbound") returns pages that link to an entry, ranked by linker importance. Requires a pre-built sidecar: openzim-mcp build link-graph <archive>.zim (writes <archive>.zim.linkgraph.sqlite next to the archive). API reference →

Modes

OpenZIM MCP ships two modes; pick one per client.

Simple mode (the default when you run openzim-mcp yourself, from a uv or pip install) exposes a single intelligent tool, zim_query, that parses natural-language requests and dispatches to the right underlying operation. Built for small-model deployment targets, the wire footprint is minimal and the dispatch happens server-side, not in the LLM context. Start here unless you have a specific reason not to.

Advanced mode exposes all 8 specialized tools (zim_query, zim_search, zim_get, zim_get_section, zim_browse, zim_metadata, zim_links, zim_health) plus 3 MCP prompts (/research, /summarize, /explore) and per-entry resources. Built for larger models that can reliably dispatch over the full schema, and for clients that want fine-grained control over pagination, namespace browsing, and link-graph extraction.

The Docker image, the Claude Desktop .mcpb bundle and the MCP Registry entry start in Advanced mode instead: the image and the bundle set OPENZIM_MCP_TOOL_MODE=advanced, and the registry entry (server.json) gives that variable a default of advanced. Run the container with -e OPENZIM_MCP_TOOL_MODE=simple for Simple mode.

Rule of thumb: models ≤ 13B parameters benefit from Simple mode; larger models (Claude Sonnet/Opus, GPT-4o-class, Llama 70B+) can dispatch Advanced mode directly. See LLM integration patterns for guidance on choosing.

Documentation

Full documentation lives at https://cameronrye.github.io/openzim-mcp/docs/.

Group Pages
Get started Introduction · Installation · Quick start · ZIM concepts · LLM integration patterns · Worked examples
Concepts Smart retrieval · Search reranking · Architecture overview
Reference API reference · Configuration · Resources, prompts & subscriptions · CLI reference
Operate HTTP and Docker deployment · Performance optimization · Security best practices · Troubleshooting · FAQ · Upgrading

Project status

v3.5.2 is the current release (2026-11-25). v2.0.0 GA shipped 2026-05-27. Per SECURITY.md, the v1.x maintenance window closed when v2.5.0 shipped (2026-06-18); all active development is on the current major line. v3.0.0 is a breaking release for HTTP subscription clients: resources/subscribe/unsubscribe are no longer served, live updates ride subscriptions/listen on the 2026-07-28 protocol revision, and link-graph sidecars built by 2.x must be rebuilt. Tools, resources, and prompts are unchanged, and legacy-handshake clients keep working. The sse transport (--transport sse) is deprecated and is removed in 4.0.0 (#366): move the server to --transport http, and move the client to streamable HTTP too, because http serves /mcp and not the SSE endpoints. Details in CHANGELOG.md, and step-by-step instructions in the upgrade guide.

Contributing

See CONTRIBUTING.md for development setup, test commands, code style, and the release process.

Security

See SECURITY.md for the vulnerability disclosure policy. No known CVEs.

License

MIT. See LICENSE.

Acknowledgments

Made with ❤️ by Cameron Rye

Questions about Openzim

What is the Openzim MCP server?

Offline MCP access to ZIM knowledge archives, Wikipedia, Wiktionary, Stack Exchange, Kiwix. Openzim is maintained by cameronrye on GitHub at cameronrye/openzim-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Openzim MCP server?

Add Openzim to your AI app's MCP config with the command uvx openzim-mcp==3.5.2. In Claude Code, run claude mcp add --transport stdio openzim -- uvx openzim-mcp==3.5.2. To run Openzim this way you need uv installed.

Does Openzim need an API key?

The registry lists no required keys for Openzim. Check the Openzim README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Openzim an official MCP server?

No. Openzim is a community server maintained by cameronrye. Community servers can be excellent; read the code and the open issues before you give Openzim access to company data.

What license is Openzim under?

Openzim is released under the MIT license, according to its GitHub repository. The license covers the code of Openzim; the service it connects to has its own terms.