Zimi MCP Server
Allows managing and searching offline ZIM archives from Kiwix, including downloading from the Kiwix catalog, full-text search, and reading articles.
Provides tools to search and read Wikipedia articles from offline ZIM files, with support for language switching, cross-article navigation, and autocomplete.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zimi MCP Serversearch for astrophysics articles"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Zimi
A modern experience for your ZIM files.
Kiwix packages the world's knowledge into ZIM files. Zimi makes them feel like the real internet with a rich web UI, fast JSON API, and an MCP server for AI agents. Everything works offline, in your language.
What is Zimi?
The offline internet. Entire websites, cross-ZIM linking, search engine and native browser experience.
Search that hits everything. One query, every source, 100M+ articles, the right answer on top. Fast.
Multilingual. Switch any article into any language it has. Ten UI languages built in.
A real library. 1,000+ archives one click away, auto-updates, collections, batch downloads, bookmarks and history.
Yours or everyone's. Serve the whole library openly, limit anonymous visitors to a chosen set of ZIMs, or require sign-in — with named accounts and per-ZIM access lists on top.
Your own network. Your machines find each other and pass ZIMs around at LAN speed, no internet needed.
A good citizen. Downloads arrive over BitTorrent and seed back to the Kiwix network. One switch makes you a full mirror.
Fresh daily. Picture of the Day, On This Day, a word, a quote, a comic, a live almanac sky. All computed locally, forever.
Accessible. If you browse by keyboard, listen by screen reader, or need high contrast, accessibility is built-in.
Anywhere. Docker, pip, a native macOS app, or your phone as a PWA.
Improving. Regular updates with ideas from the community, GitHub and creator keep Zimi fresh. Just ask!
For humans and machines. Web UI, JSON API, MCP server for AI agents.
Related MCP server: ZIM RAG MCP Server
Screenshots
Homepage | Search Results |
|
|
Language Switching | Catalog |
|
|
Sharing |
|
Languages
Not an afterthought. Language is deeply integrated into every aspect of Zimi so you can focus on your content and feel at home. Enjoy filtered lists, labeled sources, RTL support and no rock left unturned.
10 languages. English, French, German, Spanish, Portuguese, Russian, Chinese, Arabic, Hindi, Hebrew.
Something not right? Open an issue. Found a security problem? See SECURITY.md — report it privately.
Sharing
Three switches in Server Settings control all of it:
BitTorrent (on by default). Downloads arrive via the Kiwix swarm and seed back, capped at a ratio you choose.
0means never seed. The engine is in-process libtorrent: the desktop apps and Docker image bundle it, andpip install zimipulls it automatically wherever a prebuilt wheel exists (CPython 3.9–3.13 on Linux, macOS, and Windows). If there's no wheel for your interpreter — Python 3.14+ has none yet — Zimi quietly falls back to plain HTTP and prints the one-line fix;pip install zimi[bt]forces the attempt. UPnP asks your router to open the port, and the settings panel shows whether it worked. Concurrent downloads and the peer-connection limit are tunable in the same panel.Nearby (off by default). Flip it on and Zimi devices on your network find each other; a green pill on a catalog card means a neighbor already has that ZIM. Transfers stay on your LAN, never the internet.
Mirror (off). Lifts the seeding cap, for people who want to run a long-term Kiwix mirror.
Seeding needs no router setup: Zimi opens the BitTorrent port automatically (UPnP) and the settings show whether peers can reach you, with a retry when they can't. DHT is on too, so magnet links and trackerless swarms just work.
Install
macOS
brew tap epheterson/zimi && brew install --cask zimiOr download from GitHub Releases.
Linux
sudo snap install zimiOr grab the AppImage.
Docker
docker run --network host -v ./zims:/zims -v ./zimi-config:/config epheterson/zimi/zims is where ZIM files live. /config persists cache, indexes, and settings. Open http://localhost:8899.
--network host is recommended so LAN peer discovery (mDNS) and BitTorrent seeding work out of the box. If you can't use host networking, see "Bridge mode" below.
services:
zimi:
image: epheterson/zimi
container_name: zimi
restart: unless-stopped
network_mode: host # mDNS + BT seeding work without port plumbing
volumes:
- ./zims:/zims # ZIM files go here
- ./zimi-config:/config # cache, indexes, settingsservices:
zimi:
image: epheterson/zimi
container_name: zimi
restart: unless-stopped
ports:
- "8899:8899"
- "6881:6881/tcp" # BitTorrent (TCP)
- "6881:6881/udp" # BitTorrent (UDP / DHT)
volumes:
- ./zims:/zims
- ./zimi-config:/configLAN peer discovery (_zimi._tcp) won't reach the LAN in bridge mode — multicast doesn't cross the docker bridge, and Zimi warns in the Nearby settings when it detects this. Use host networking, or set ip=<your host's LAN address> in ZIMI_NEARBY. BT seeding still works because libtorrent binds the mapped port. See docs/deployment-networking.md for the full discussion.
Python
pip install zimi
ZIM_DIR=./zims zimi serve --port 8899Environment Variables
Most people set nothing: every setting below has a sensible default or lives in the UI.
Variable | Default | Description |
|
| Path to ZIM files (scanned for |
|
| Cache, indexes, and settings. Mount separately in Docker. |
| (none) | Protect library management |
|
| What an anonymous visitor sees: |
|
| BitTorrent: |
|
| LAN sharing: |
Variable | Default | Description |
|
| Library manager. |
|
| Auto-update ZIMs ( |
|
|
|
|
| Requests/min/IP for anonymous clients. |
|
| Budget for logged-in clients (and private-network clients on passwordless instances). |
| (none) | Pin the API token instead of generating in the UI |
| (none) | Comma-separated ZIM names to pre-warm at startup |
API
Endpoint | Description |
| Full-text search. |
| Read article as plain text |
| Deterministic, embedding-free article chunking for RAG clients |
| Title autocomplete |
| List all sources with metadata |
| All languages an article is available in |
| PDF catalog for zimgit ZIMs |
| Short text snippet |
| Random article |
| List collections |
| Create/update a collection |
| Delete a collection |
| Resolve external URL to ZIM path |
| Batch resolve: |
| Health check with version |
| Serve raw ZIM content |
| OpenAPI 3.1 description of the stable read API |
Examples
# Search across all sources
curl "http://localhost:8899/search?q=python+asyncio&limit=5"
# Search in French only
curl "http://localhost:8899/search?q=eau&lang=fr&limit=5"
# Find all languages for an article
curl "http://localhost:8899/article-languages?zim=wikipedia&path=A/Water"
# Read an article
curl "http://localhost:8899/read?zim=wikipedia&path=A/Water_purification"MCP Server
Zimi includes an MCP server for AI agents.
{
"mcpServers": {
"zimi": {
"command": "python3",
"args": ["-m", "zimi.mcp_server"],
"env": { "ZIM_DIR": "/path/to/zims" }
}
}
}For Docker on a remote host:
{
"mcpServers": {
"zimi": {
"command": "ssh",
"args": ["your-server", "docker", "exec", "-i", "zimi", "python3", "-m", "zimi.mcp_server"]
}
}
}Tools: search (with lang filter), read, get_chunks, suggest, list_sources, random, article_languages, read_with_links, deep_search, list_collections, manage_collection, manage_favorites
Integrations
SearXNG — route queries through Zimi from a self-hosted SearXNG metasearch instance.
OpenWebUI / generic AI — wire the MCP server into any AI client for offline research.
Long-requested, shipped here
Every issue filed against Zimi has been answered — #33 country holiday colors, #34 new-ZIM badges and recency filters, #36 Tailscale-friendly management, #37 library organization, #38 fragment links and stray-torrent confusion. And features the wider ZIM ecosystem has been asking for, available today:
Spelling suggestions — "did you mean?" on weak searches, fully offline (libzim #731)
Read-aloud — text-to-speech in the reader via the offline Web Speech API (kiwix-js #166)
Reader View — a clean, adjustable reading mode (themes, fonts, text size) for any article
Word lookup — tap a word in any article, get the dictionary entry from your own library
Resumable downloads — an interrupted ZIM download picks up where it left off, and updates reuse the unchanged pieces of the old file instead of re-downloading everything
User accounts — named logins with per-ZIM access lists, so one server can serve the whole house (or classroom)
A native Windows app — with the same auto-update channel as macOS
Give back — seed your downloads to the Kiwix swarm at a ratio you choose, or flip one switch and be a full mirror
Grab the file — a download button for any ZIM you're sharing on your network
Real article counts — articles, not raw entry counts, on library cards
Contributing
See CONTRIBUTING.md.
License
MIT. Desktop and Docker builds bundle libtorrent-rasterbar (BSD-3-Clause) for BitTorrent transfers — see THIRD_PARTY_NOTICES.md.
Built with ❤️ in California by @epheterson and Claude Code.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI models to access and search offline Wikipedia and other knowledge bases stored in ZIM format files. Provides intelligent content retrieval, structured browsing, advanced search capabilities, and metadata extraction for comprehensive offline knowledge access.Last updated1100MIT
- Alicense-qualityDmaintenanceEnables interaction with .zim archives by providing tools for article search, content retrieval, and metadata discovery. It features a TF-IDF based RAG engine for semantic retrieval over extracted article chunks from compressed ZIM files.Last updatedGPL 3.0
- Alicense-qualityDmaintenanceEnables large language models to directly access and search content in ZIM files, allowing offline question answering and information retrieval from resources like Wikipedia.Last updated19MIT
- Flicense-qualityDmaintenanceProvides access to offline Wikipedia and other content through Kiwix, enabling search and retrieval of articles from local ZIM files.Last updated16
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
15 media & data tools for AI agents: search, transcribe, subtitles, voiceover, translate & more.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/epheterson/Zimi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server




