Логотип Zimi

Zimi

Сообщество
epheterson

The offline internet — searchable, browsable, and self-updating. A modern server for ZIM files with cross-source search, built-in library management, JSON API and MCP server.

Издательepheterson
РепозиторийZimi
ЯзыкJavaScript
Форки
5
Звёзды
69
Доступные инструменты
0
Тип транспортаstdio, streamable-http
Категории
ЛицензияMIT
Ссылки
  • Подключайте инструменты к рабочим процессам с ИИ

    Zimi предоставляет возможности MCP, доступные совместимым ИИ-клиентам и агентам.

  • Доступные инструменты: 0

    Ниже представлены доступные для вызова действия с названиями и описаниями, если сервер их предоставляет.

  • Готовая конфигурация для копирования

    Используйте примеры конфигурации, чтобы настроить этот сервер в предпочитаемом MCP-клиенте.

  • Показатели интереса к открытому проекту

    Звёзды: 69, форки: 5 — в связанном репозитории.

Zimi

CI Tests Lighthouse Accessibility WCAG 2.1 AA i18n Docker Pulls PyPI License: MIT

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. Whole sites, cross-ZIM links, real search, a browser that feels like one.
  • Search that hits everything. One query, every source, 100M+ articles, the right answer on top.
  • A real library. 1,000+ archives one click away, auto-updating, with collections and bookmarks.
  • Multilingual. Any article in any language it has. Ten UI languages built in.
  • Fresh daily. Picture of the Day, On This Day, a word, a quote, a comic, a live sky. Computed locally, forever.
  • Your own network. Your machines find each other and pass ZIMs around at LAN speed.
  • A good citizen. Downloads come over BitTorrent and seed back. One switch makes you a mirror.
  • Manageable. Accounts and per-ZIM access, wide open or sign-in only. A health endpoint and an activity log when you need them.
  • Accessible. Keyboard, screen reader, high contrast. Built in, not bolted on.
  • A ZIM creator (beta). A page, a site, a video or playlist, your bookmarks or a folder becomes a ZIM.
  • For humans and machines. Web UI, JSON API, MCP server for agents.
  • Anywhere. Docker, pip, a native macOS app, or your phone as a PWA.
  • Improving. Regular updates, shaped by what people ask for. Just ask.

Screenshots

HomepageSearch Results
HomepageSearch
Language SwitchingCatalog
LanguagesCatalog
SharingMake a ZIM
SharingCreate

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 and 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. 0 means never seed. The engine is in-process libtorrent: the desktop apps and Docker image bundle it, and pip install zimi pulls 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.

Make your own ZIMs

The library isn't only what you download. Zimi packages new ZIMs from the + button in the web app or zimi create on the command line. Every mode previews what you'll get before anything runs, streams a live log while it works, and the result joins your library the moment it finishes.

  • A folder: HTML, Markdown (rendered by a built-in converter), and PDFs become a browsable ZIM, cross-file links intact. Command line only (zimi create ./folder), the web app deliberately doesn't read the server's filesystem.
  • A web page: one URL, or a list of up to twenty, captured with its images, styles, and fonts.
  • A whole site: a bounded, polite, same-origin crawl: page, depth, and byte budgets, robots.txt honored, and Ctrl-C still writes a valid ZIM of everything captured so far.
  • Videos: a playlist or channel becomes an offline video ZIM with subtitles, powered by yt-dlp.
  • A web archive: zimi import converts WARC and WACZ files from ArchiveBox, Webrecorder, browsertrix, or HTTrack. Powered by a managed warc2zim sidecar (needs Python 3.14 and libmagic on the machine, the Docker image ships both).

Three capture engines trade speed for fidelity: Fast (no browser required), Rendered (a real headless Chromium draws pages that build themselves in JavaScript), and Alive (records the browser session so the page's own JavaScript still runs offline, menus, galleries, videos). Rendered and Alive can block ads and trackers at capture time from a published blocklist.

Every created ZIM carries honest provenance (which Zimi, which tools, how many pages and bytes, what was blocked) as openZIM-spec metadata validated with zimcheck. Right-click any library card → About this ZIM to see it.

Install

macOS

bash
brew tap epheterson/zimi && brew install --cask zimi

Or download from GitHub Releases.

Linux

bash
sudo snap install zimi

Or grab the AppImage.

Docker

bash
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.

yaml
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, settings
yaml
services:
  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:/config

LAN 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

bash
pip install zimi
ZIM_DIR=./zims zimi serve --port 8899

Environment Variables

Most people set nothing: every setting below has a sensible default or lives in the UI.

VariableDefaultDescription
ZIM_DIR/zimsPath to ZIM files (scanned for *.zim on startup)
ZIMI_DATA_DIR/config (Docker) or $ZIM_DIR/.zimiCache, indexes, and settings. Mount separately in Docker.
ZIMI_MANAGE_PASSWORD(none)Protect library management
ZIMI_MANAGE_OPEN01 turns management authentication off entirely: no password, no setup key, no question about the address. Only for a network you control; it warns at every boot.
ZIMI_LAN_ADMIN01 makes any direct private-network client the admin while no password is set, as before 1.9.0. Not through a proxy.
ZIMI_PUBLIC_ACCESSopenWhat an anonymous visitor sees: open (whole library), limited (an admin-chosen allowlist), or private (sign-in required). Also a UI setting; the env var wins when set.
ZIMI_BTonBitTorrent: off, or on,port=6881,ratio=2,up=2048,seed=on,mirror=off,upnp=on,dht=on,active=4,conns=200. seed, upnp, and dht default on. active caps concurrent downloads (the rest queue; governs HTTP too, legacy ZIMI_MAX_CONCURRENT_DOWNLOADS still works), conns is the global peer-connection limit. Fields you set are locked in the UI; fields you leave out stay UI-controlled. ratio=0 means never seed.
ZIMI_NEARBYoffLAN sharing: off, or on,name=my-zimi,public=off,ip=192.168.1.20. Controls serving and fetching between your Zimi devices. Set ip= to your host's LAN address when running Docker in bridge mode.
VariableDefaultDescription
ZIMI_MANAGE1Library manager. 0 to disable entirely.
ZIMI_AUTO_UPDATE0Auto-update ZIMs (1 to enable; also a UI setting)
ZIMI_UPDATE_FREQweeklydaily, weekly, or monthly
ZIMI_RATE_LIMIT60Requests/min/IP for anonymous clients. 0 to disable.
ZIMI_RATE_LIMIT_TRUSTED600Budget for logged-in clients (and private-network clients on passwordless instances).
ZIMI_API_TOKEN(none)Pin the API token instead of generating in the UI
ZIMI_HOT_ZIMS(none)Comma-separated ZIM names to pre-warm at startup
ZIMI_OFFLINE01 guarantees zero outbound traffic: no update checks, no catalog fetches, no torrent stack. For air-gapped machines.
ZIMI_CREATE_ROOT(none)The one directory tree the web UI may package a server path from (the import mode's server-path field). Unset, server-path packaging from the web stays off entirely. The CLI is unaffected.
ZIMI_UPDATE_CHANNELlatestApp release channel: latest (finished releases) or beta (prereleases too). Locks the UI choice when set.
ZIMI_UPDATE_DELAY_DAYS0Hold a release back until it has been public this many days (0–365).

Self-hosting & operations

Zimi runs seriously with zero ceremony: zimi serve in or beside a folder of ZIMs discovers it and keeps its state in a .zimi folder next to the content. A USB stick is a valid deployment. When you want more control:

  • One config file. zimi.json holds paths, auth, sharing, and serving settings; zimi config prints every effective value and exactly where it came from, flag, environment, file, discovery, or default.

  • Backup and restore. zimi backup writes settings, bookmarks, collections, and user data to one file; zimi restore brings a fresh install back from it.

  • Provable offline. ZIMI_OFFLINE=1 is a real air-gap switch, verified by a test that records every outbound socket.

  • Monitoring. GET /health for liveness, GET /metrics in Prometheus exposition format for the rest.

  • Reference manifests. deploy/ carries docker-compose and Kubernetes examples, and scripts/make-airgap-bundle.sh builds a wheels-only installer for machines that will never see the internet.

  • Update awareness. Manage shows the current version and checks for releases on demand, Latest or Beta channel, with an optional hold-back delay.

  • Secure first-run. Until an admin password is set, the machine running Zimi can set one directly; any other device needs a one-time setup key Zimi prints to its log on first start. So a LAN, container, or tailnet neighbor can never claim the admin account before you do. Set ZIMI_MANAGE_PASSWORD to skip the bootstrap entirely.

Single sign-on through Cloudflare Access is available for tunnel deployments (experimental), see docs/deployment-networking.md.

Documentation

Each guide is structured as How it works / Configure / Troubleshoot. Start at the feature guide index.

  • Reading, search and ranking, the reader and Reader View, bookmarks and history, word lookup, cross-language articles, PDFs, offline/PWA, accessibility, the almanac.
  • Making ZIMs, zimi create for a folder, page, --site crawl or video; the four engines and what each trades; bookmarks as a standalone ZIM; zimi import for WARC/WACZ.
  • Getting & sharing, catalog and downloads, folders as categories, same-flavor auto-update, BitTorrent seeding, Nearby (mDNS LAN), the /dl/ peer transport.
  • Access, public-access modes, named accounts, per-ZIM allowlists, the creator role, the first-run bootstrap, Cloudflare Access SSO.
  • Operations, zimi config + config file, backup/restore, air-gap, /metrics, /health, update channels, deploy manifests.
  • API & MCP, the MCP server and tools, the stable JSON API, /openapi.json, /chunks.

API

EndpointDescription
GET /search?q=...&limit=5&zim=...&fast=1&lang=...Full-text search. fast=1 for title matches only. lang filters by language.
GET /read?zim=...&path=...&max_length=8000Read article as plain text
GET /chunks?zim=...&path=...&size=1200&overlap=120Deterministic, embedding-free article chunking for RAG clients
GET /suggest?q=...&limit=10&zim=...Title autocomplete
GET /listList all sources with metadata
GET /article-languages?zim=...&path=...All languages an article is available in
GET /catalog?zim=...PDF catalog for zimgit ZIMs
GET /snippet?zim=...&path=...Short text snippet
GET /random?zim=...Random article
GET /collectionsList collections
POST /collectionsCreate/update a collection
DELETE /collections?name=...Delete a collection
GET /resolve?url=...Resolve external URL to ZIM path
POST /resolveBatch resolve: {"urls": [...]}
GET /healthHealth check with version
GET /w/<zim>/<path>Serve raw ZIM content
GET /openapi.jsonOpenAPI 3.1 description of the stable read API

Examples

bash
# 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.

json
{
  "mcpServers": {
    "zimi": {
      "command": "python3",
      "args": ["-m", "zimi.mcp_server"],
      "env": { "ZIM_DIR": "/path/to/zims" }
    }
  }
}

For Docker on a remote host:

json
{
  "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, #44–46 access modes and per-user data, #48–51 almanac, anchor, flavor, and Raspberry Pi fixes, #65 in-article bookmarks, #76 update awareness. 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.

Установка

TypingMind
Требования:

Node.js 18+

{
  "mcpServers": {
    "epheterson-zimi": {
      "command": "npx",
      "args": [
        "-y",
        "zimi"
      ]
    }
  }
}

Используйте MCP Zimi с разными ИИ-моделями

TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому после подключения Zimi вы можете использовать их с разными моделями ИИ в TypingMind, не настраивая подключение отдельно для каждой модели. Вы можете запустить MCP локально на своём устройстве или подключиться к удалённому серверу MCP по URL.

Вариант 1: используйте локальный коннектор

Выберите этот способ, если серверу MCP нужен доступ к локальным файлам, приложениям или закрытым ресурсам на вашем компьютере.

1

Откройте настройки MCP

В TypingMind откройте «Настройки», затем «Расширенные настройки», перейдите в раздел «Протокол контекста модели» и выберите «Настроить коннектор».

  1. Откройте TypingMind в браузере.
  2. Нажмите значок настроек.
  3. Перейдите в «Расширенные настройки».
  4. Откройте раздел «Протокол контекста модели».
  5. Нажмите «Настроить коннектор» и выберите «Это устройство».
Экран настройки коннектора MCP в TypingMind с выбранным вариантом «Это устройство»
2

Выполните команду коннектора

Выберите «Это устройство», скопируйте команду из TypingMind и выполните её в терминале. Не останавливайте процесс, пока используете MCP.

  1. Скопируйте команду настройки, показанную в TypingMind.
  2. Откройте «Терминал» в macOS или Windows Terminal в Windows.
  3. Вставьте и выполните команду.
  4. Подтвердите установку пакета, если терминал запросит разрешение продолжить.
  5. Не закрывайте окно терминала и не останавливайте процесс, пока используете инструменты MCP.
3

Добавьте Zimi как сервер

Когда статус коннектора сменится на «Готов», нажмите «Изменить серверы» и вставьте конфигурацию сервера MCP.

  1. Дождитесь, пока статус коннектора сменится на «Готов».
  2. Нажмите «Изменить серверы».
  3. Вставьте конфигурацию сервера MCP для Zimi.
  4. Сохраните список серверов.
  5. Обновите статус, если хотите убедиться, что коннектор по-прежнему готов к работе.
Настройки MCP в TypingMind с активным сервером и кнопкой «Изменить серверы»
{
  "mcpServers": {
    "epheterson-zimi": {
      "command": "npx",
      "args": [
        "-y",
        "zimi"
      ]
    }
  }
}
4

Используйте подключение с разными моделями

Сохраните список серверов, откройте раздел «Плагины», включите инструменты MCP для Zimi, затем выберите любую поддерживаемую модель ИИ в TypingMind и используйте инструменты в чате или назначьте их ИИ-агенту.

  1. Откройте страницу «Плагины» в TypingMind.
  2. Включите инструменты MCP для Zimi.
  3. Начните чат и выберите модель ИИ, которую хотите использовать.
  4. Используйте инструменты MCP в чате или назначьте их ИИ-агенту.
  5. При необходимости переключайтесь на другую модель ИИ без повторного подключения MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью Zimi?
Zimi
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Zimi.

Вариант 2: добавьте URL сервера MCP

Выберите этот способ, если Zimi уже размещён на удалённом сервере или вашей команде нужен общий коннектор для нескольких пользователей.

1

Откройте коннекторы MCP

В TypingMind перейдите в раздел «Плагины», откройте «Коннекторы MCP» и выберите «Добавить URL».

  1. Откройте TypingMind в браузере.
  2. Перейдите в раздел «Плагины».
  3. Откройте раздел «Коннекторы MCP».
  4. Нажмите «Добавить URL».
Форма «Добавить URL своего сервера MCP» в TypingMind
2

Вставьте URL сервера

Введите URL вашего сервера в поле «URL сервера». Добавьте название подключения, описание, значок, пользовательские HTTP-заголовки или настройки клиента OAuth, если они требуются серверу.

  1. Вставьте URL вашего сервера в поле «URL сервера».
  2. Введите название подключения для Zimi.
  3. Добавьте описание и значок, чтобы подключение было проще узнать.
  4. Добавьте пользовательские HTTP-заголовки или данные клиента OAuth, если сервер требует аутентификации.
3

Создайте подключение

Нажмите «Создать подключение», затем вернитесь к списку плагинов и убедитесь, что новое подключение MCP активно.

  1. Нажмите «Создать подключение».
  2. Вернитесь к списку коннекторов MCP.
  3. Убедитесь, что подключение Zimi отображается как активное.
  4. Обновите список плагинов, если подключение не появится сразу.
4

Переключайте модели без повторного подключения

Начните чат с предпочитаемой моделью, включите инструменты Zimi в разделе «Плагины» и при необходимости переключитесь на другую модель. Подключение MCP останется доступным в рабочем пространстве TypingMind.

  1. Начните новый чат в TypingMind.
  2. Выберите модель ИИ, которую хотите использовать.
  3. Включите инструменты Zimi в разделе «Плагины».
  4. При необходимости попросите модель использовать инструмент.
  5. Переключитесь на другую модель ИИ и используйте то же подключение MCP.
Чат TypingMind с включёнными инструментами MCP и выбранной ИИ-моделью
Можете помочь мне с этой задачей с помощью Zimi?
Zimi
Конечно. Я всё прочитал.
Вот что я нашёл с помощью Zimi.

Часто задаваемые вопросы

Для чего используется сервер MCP Zimi?

Zimi — это сервер MCP, который позволяет совместимым ИИ-клиентам подключаться к внешним инструментам и получать контекст. В TypingMind достаточно один раз добавить этот сервер MCP, чтобы его инструменты стали доступны в вашем рабочем пространстве с ИИ.

Можно ли использовать сервер MCP Zimi с несколькими ИИ-моделями в TypingMind?

Да. TypingMind подключает инструменты MCP на уровне рабочего пространства, поэтому вы можете использовать Zimi с разными ИИ-моделями, например Claude, ChatGPT, Gemini или другими моделями, настроенными в TypingMind, без отдельной настройки сервера MCP для каждой модели.

Зачем использовать MCP Zimi с TypingMind?

TypingMind — один из лучших интерфейсов для чата с LLM: он объединяет разные ИИ-модели, промпты, плагины, ИИ-агентов, ключи API и инструменты MCP в одном рабочем пространстве. Подключив Zimi, вы сможете использовать его инструменты MCP с предпочитаемыми моделями, сохраняя удобную организацию работы с чатами в TypingMind.

Как подключить сервер MCP Zimi к TypingMind?

Zimi можно подключить к TypingMind через локальный коннектор MCP или добавив URL удалённого сервера MCP. Используйте локальный коннектор, если серверу нужен доступ к файлам, приложениям или закрытым ресурсам на вашем устройстве, и URL сервера, если сервер MCP размещён удалённо.

Какие инструменты предоставляет сервер MCP Zimi в TypingMind?

Zimi предоставляет возможности MCP, которые можно включить на странице «Плагины» в TypingMind и использовать в чате или назначить ИИ-агентам.

Нужно ли передавать TypingMind свои ключи API для использования сервера MCP Zimi?

Нет. TypingMind ориентирован прежде всего на локальную работу и позволяет вам контролировать выбор провайдеров моделей, ключи API, промпты и конфигурацию MCP. Если Zimi требует аутентификации, при создании подключения добавьте необходимые заголовки, настройки OAuth или локальную конфигурацию для этого сервера MCP.

Похожие серверы MCP

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇