Zennotes 标志

Zennotes

组织热门
ZenNotes

Keyboard-first local Markdown notes with Vim motions, diagrams, and MCP integration.

发布者ZenNotes
代码仓库zennotes
语言TypeScript
复刻数
146
星标数
2.5K
可用工具
0
传输类型stdio
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Zennotes 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 2.5K 个 Star 和 146 个 Fork。

ZenNotes

[!NOTE] I build ZenNotes with a lot of help from AI tools like Claude and Codex. They let me move much faster, but I still go through some of the code before I ship it. The architecture, the technical decisions, and the trade-offs are things I still spend a lot of time thinking about. AI helps me write code faster, but it doesn't replace understanding how the system works.

ZenNotes is a keyboard-first Markdown notes app with a shared product core and multiple runtimes:

  • a desktop app built with Electron
  • a self-hosted web app backed by a Go server
  • a future hosted deployment mode built on the same web/server stack

ZenNotes keeps your notes as ordinary Markdown files on disk. It adds Vim-friendly editing, split and preview workflows, tasks, tags, archive/trash, diagrams, search, daily notes, CSV databases (Notion-style Table + Board views over plain .csv files), and MCP integration on top of the files you already own. On macOS, the first-party zen CLI also powers launcher workflows such as the Raycast extension.

Grab the latest build from GitHub Releases — see Install below.
Website: zennotes.org Support development: GitHub Sponsors

Detailed in-repo documentation lives under docs/README.md.

Install

All desktop installers are attached to each GitHub Release. The app auto-updates, so you only download once. (Replace <version> with the current release, e.g. 2.2.0.)

macOS

Homebrew (recommended):

sh
brew install --cask zennotes/tap/zennotes

Or download the .dmg for your chip, open it, and drag ZenNotes to Applications. Builds are signed and notarized.

  • Apple Silicon: ZenNotes-<version>-mac-arm64.dmg
  • Intel: ZenNotes-<version>-mac-x64.dmg

Windows

Download and run ZenNotes-<version>-win-x64.exe.

Linux

Pick whatever suits your distro:

  • Arch / CachyOS / Manjaro — AUR (recommended):
    sh
    yay -S zennotes-bin     # or: paru -S zennotes-bin
    Installs cleanly without libfuse2.
  • Arch — native package:
    sh
    sudo pacman -U ZenNotes-<version>-linux-x86_64.pacman
  • Debian / Ubuntu:
    sh
    sudo apt install ./ZenNotes-<version>-linux-amd64.deb
  • Nix / NixOS: Read packaging/nix/README.md for installation instructions
  • Any distro — AppImage:
    sh
    chmod +x ZenNotes-<version>-linux-x86_64.AppImage
    ./ZenNotes-<version>-linux-x86_64.AppImage
    AppImages need FUSE 2. On distros that ship only FUSE 3 (Arch, CachyOS, Fedora), either install it (sudo pacman -S fuse2, sudo dnf install fuse) or run without FUSE:
    sh
    ./ZenNotes-<version>-linux-x86_64.AppImage --appimage-extract-and-run
    (Or just use the AUR / .pacman / .deb package, which sidestep this entirely.)

zen CLI

The desktop app installs a zen command-line companion from Settings → CLI — list, read, search, capture, edit, archive/trash notes, plus tasks, folders, and MCP. On macOS it can also install the Raycast extension locally.

Self-hosted web app

ZenNotes also runs as a self-hosted web app backed by a Go server. See Local development to run the web client and server.

What ZenNotes is for

  • writing and organizing plain-file Markdown notes without a database
  • moving quickly with keyboard-first navigation and Vim motions
  • working across edit, split, and preview modes without losing context
  • keeping tasks, tags, search, archive, trash, and quick capture inside the same vault
  • rendering math and diagrams directly from Markdown
  • exposing the vault to MCP-capable tools through a first-party server
  • searching and opening notes from terminal scripts or Raycast on macOS
  • self-hosting the app on your own machine or home server

Product modes

ZenNotes now ships from one monorepo with one shared app core.

  • desktop: Electron shell, native menus, updater, floating windows, desktop packaging
  • self-hosted: browser frontend plus Go server, suitable for home servers and LAN use
  • hosted: planned as the same web/server stack with auth and multi-user storage added later

The source of truth for user-facing features is the shared UI in packages/app-core.

Core ideas

Plain files first

Every note is a normal .md file inside a chosen vault. ZenNotes does not store note content in a hidden database.

Keyboard-first by default

ZenNotes assumes you want to move fast:

  • first-class Vim mode
  • leader-key flows
  • command palette
  • pane and tab motion
  • local ex commands
  • built-in help

Preview is part of the workflow

ZenNotes supports:

  • edit mode
  • preview mode
  • split mode
  • pinned reference panes
  • detached note windows on desktop

Shared vault, shared tooling

ZenNotes includes a first-party MCP server and desktop install flows for compatible clients, so tools can work on the same vault you do instead of a copy.

Feature overview

Notes, folders, and lifecycle

ZenNotes can:

  • create, rename, duplicate, move, archive, unarchive, trash, restore, and reveal notes and folders
  • watch the vault for external changes
  • reopen your workspace layout with tabs and panes

System folders still exist, but the vault model is more flexible now:

  • quick, archive, and trash remain built-in lifecycle areas
  • the main notes area can be either:
    • inbox/
    • the vault root directly, for Obsidian-style flat vaults

The built-in folder labels are also customizable in the UI without changing the underlying internal ids.

Daily and weekly notes

Daily and weekly notes are optional and can be enabled from Settings.

  • when enabled, ZenNotes can open or create today's daily note and this week's weekly note automatically
  • the default daily title is a simple ISO date like 2026-04-21
  • the default weekly title is an ISO week title like 2026-W24
  • date notes live in dedicated directories under your primary notes area
  • the default directories are Daily Notes and Weekly Notes
  • the directory and title can use date patterns such as yyyy/MM-MMM and yyyy-MM-dd-EEE
  • weekly title patterns can use ISO week tokens such as yyyy-'W'ww
  • localized month and weekday names can follow system, en-US, pt-BR, or another BCP 47 locale

Supported date note pattern tokens:

  • yyyy / yy for 2026 / 26
  • M / MM / MMM / MMMM for 6 / 06 / Jun / June
  • d / dd for 9 / 09
  • EEE / EEEE for Tue / Tuesday
  • w / ww for ISO week numbers like 24
  • single-quoted literals, such as 'Daily Notes'/yyyy/MM-MMM

Weekly notes render date tokens from the ISO week's Monday, and yyyy is the ISO week-year for weekly patterns.

Editor and preview

The editor stack is CodeMirror 6 with a Markdown-oriented workflow:

  • live preview behavior in the editor
  • heading folding
  • outline extraction and jumps
  • configurable line numbers
  • configurable line-height and typography controls
  • syntax highlighting for fenced code blocks
  • desktop-installed TextMate grammars for custom fenced-code languages
  • wiki links, callouts, tables, footnotes, and local embeds
  • Vim block cursor and keyboard navigation

Preview and split mode support:

  • GitHub-flavored Markdown
  • KaTeX math
  • Mermaid
  • TikZ
  • JSXGraph
  • function-plot
  • callouts
  • footnotes
  • wiki links and backlinks

Search, tasks, tags, and built-in views

ZenNotes includes:

  • note search by title and path
  • vault-wide text search
  • tags view
  • tasks view
  • archive view
  • trash view
  • quick notes view
  • built-in help/manual

Vault text search can use the built-in engine, ripgrep, or fzf, with auto-detection and optional custom binary paths.

The desktop app also ships a zen command-line companion for list, read, search, capture, edit, archive/trash, task, folder, and MCP workflows. On macOS, ZenNotes can install its Raycast extension locally from Settings -> CLI, avoiding the Raycast Store review path. The integration uses the CLI plus zennotes:// deep links to search notes, open them in the main app, open them in floating windows, archive/unarchive, move notes to Trash, reveal files in Finder, and copy note paths or wikilinks.

Obsidian-friendly vault support

ZenNotes now works better with existing Obsidian-style vaults.

  • primary notes can live at the vault root instead of requiring inbox/
  • loose files anywhere in the vault are surfaced as files/assets
  • embedded files like ![[image.png]] resolve more like Obsidian
  • new referenced files default to the vault root instead of a required attachments folder
  • legacy attachements/ and _assets/ folders are still recognized

This means imported vaults with top-level notes, folders, and loose images/files behave much more naturally.

Files and local assets

ZenNotes supports local files in notes and in the sidebar/list views.

  • local images and files can appear directly in the vault tree
  • images, SVGs, videos, audio, PDFs, and other media open inside ZenNotes tabs or reference panes instead of being handed off to the OS by default
  • desktop context menus include reveal-in-file-manager actions
  • desktop uses Finder on macOS and the platform file manager on Windows/Linux
  • watcher updates now include non-Markdown file changes, so deleting files externally updates the UI without a manual refresh

Sidebar multi-select supports platform modifiers: use Cmd/Ctrl-click to toggle individual notes or folders, Shift-click to select a visible range, then use the context menu to apply actions such as open in tabs, move, archive, trash, restore, delete folders, copy paths, or drag the selected group to a folder.

Themes, fonts, and customization

The settings surface includes:

  • theme families and light/dark/auto modes
  • interface, text, and monospace font selection
  • editor font size and line-height controls
  • preview and editor width controls
  • content alignment
  • keymap overrides
  • Vim toggles and leader hint behavior
  • search backend selection
  • vault layout settings
  • daily notes settings
  • system-folder display labels

Desktop vs web

Both runtimes share the same core app, but they do not expose identical platform features.

Desktop-only features include:

  • native menus
  • app updater
  • floating note windows
  • zen CLI install/uninstall flow
  • local Raycast extension installation on macOS
  • MCP install/uninstall flows for supported clients
  • reveal in Finder / platform file manager
  • packaging and signed releases

Web/self-hosted mode includes:

  • the same shared note UI and workflows
  • a Go backend for vault access and file watching
  • a server-side vault picker/browser
  • browser access on a LAN or home server

Monorepo layout

ZenNotes now uses a single monorepo.

text
apps/
  desktop/   Electron shell, preload, updater, packaging
  web/       Vite/PWA shell and HTTP bridge
packages/
  app-core/        Shared React application and renderer logic
  bridge-contract/ Typed runtime contract between UI and host
  shared-domain/   Shared types and note/task/view models
  shared-ui/       Reusable UI primitives
tooling/
  scripts/         Shared tooling hooks and migration scripts
docs/

Read docs/monorepo-architecture.md for the architectural boundary between the shared app core and the platform-specific shells.

Quick start

Requirements

  • Node.js 22+
  • npm
  • Go 1.22+ for the server build path
  • Docker optional, for self-hosting

Install dependencies

bash
npm ci

Local development

Desktop app

bash
npm run dev:desktop

or:

bash
make desktop

Web client

bash
npm run dev:web

or:

bash
make web-dev

Go server

The server lives in its own repository, ZenNotes/znserver. For browser work you do not need it checked out: npm run dev:server downloads the release pinned in tooling/server-release.json, verifies its checksum, and runs it. To work on the server itself, point ZENNOTES_SERVER_DIR at a znserver checkout and the same command runs it with go run.

bash
npm run dev:server

or:

bash
make server-dev

Web + server together

bash
npm run dev:web-stack

or:

bash
make web-stack

Important dev note:

  • the browser app and the Go server are separate processes in dev mode
  • frontend-only changes usually need only the web dev server
  • backend changes happen in ZenNotes/znserver and need that server restarted
  • if the web client is newer than the running server, ZenNotes now shows a clearer error instead of raw 404 noise for newer API flows like the vault picker

Root scripts

From the repository root:

ScriptPurpose
npm run devAlias for npm run dev:desktop
npm run dev:desktopRun the Electron desktop app in development
npm run dev:webRun the Vite web client
npm run dev:serverRun the Go server
npm run dev:web-stackRun web + server development together
npm run startStart the built desktop app
npm run typecheckRun monorepo typechecks
npm run testRun monorepo tests
npm run test:runRun the full test suite
npm run buildBuild the monorepo and then build the Go server
npm run build:prodTypecheck + test + build
npm run packDesktop packaged output
npm run dist:macBuild macOS desktop distributables
npm run dist:winBuild Windows desktop distributables
npm run dist:linuxBuild Linux desktop distributables

Makefile commands

The root Makefile provides a simpler interface:

CommandPurpose
make installInstall workspace dependencies
make desktopRun the Electron app in dev mode
make web-devRun the web client
make server-devRun the pinned Go server release (or a checkout)
make web-stackRun web + server together
make buildBuild the full monorepo
make desktop-buildBuild the Electron app
make web-buildBuild apps/web
make upStart the self-hosted Docker stack from the published image
make downStop the Docker stack
make restartRestart the Docker stack
make logsFollow Docker logs
make statusShow Docker status
make openOpen the self-hosted app in a browser
make rebuildPull the newest image and restart
make nukeRemove the Docker image, data, and build output
make cleanRemove web build output and downloaded server binaries

Run make help to print the same summary.

Self-hosting with Docker

The image, adibhanna/zennotes, is built and published from the server's own repository, ZenNotes/znserver. This repository only ships the Compose file and Makefile that run it.

Start the self-hosted app

bash
make up

Then open:

Default Docker mounts

When you start Docker with make up, ZenNotes mounts:

  • host ./vault -> container ./vault's absolute host path
  • host ./data -> container /data

In practice, that means the container sees the vault at the same absolute path you chose on the host, instead of rewriting it to /workspace.

The server stores its config under /data/server.json by default.

Default Docker security behavior

The self-hosted Docker flow is now secure by default:

  • the published port binds to 127.0.0.1 unless you override it
  • ZenNotes generates a bootstrap auth token on first make up and stores it in ./data/auth-token
  • the browser version signs in with that token once, then uses an HttpOnly session cookie
  • the container runs as your local UID/GID by default, with a read-only root filesystem, no-new-privileges, and dropped Linux capabilities

Useful env vars:

  • ALLOW_INSECURE_NOAUTH=1: only use this if you intentionally want to disable auth
  • ZENNOTES_ALLOWED_ORIGINS: explicit browser origin allowlist
  • ZENNOTES_BROWSE_ROOTS: restricts which server-side directories the picker can browse

Recommended deployment model:

  • keep ZenNotes behind a reverse proxy, VPN, or private network gate
  • do not expose the raw Go server directly to the public internet unless you understand the tradeoffs

Choosing a different host folder

You can mount a different host content root:

bash
CONTENT_ROOT="$HOME/Library/Mobile Documents/com~apple~CloudDocs" make up

That works for paths with spaces too.

Useful variables:

  • CONTENT_ROOT: host folder used as the live vault root
  • DATA: host directory used for persisted server config
  • PORT: published host port
  • IMAGE: Docker image to run (default adibhanna/zennotes:latest; pin with IMAGE=adibhanna/zennotes:2.50.5)
  • ALLOW_INSECURE_NOAUTH: disable the default auth requirement

Docker browse model

Important limitation:

  • the Docker container can only browse folders that are mounted into it
  • it cannot browse your entire host filesystem
  • by default, the picker is scoped to the mounted content root unless you explicitly relax it

So if you want to browse an Obsidian vault, iCloud Drive, or another directory from the web picker, that directory needs to be mounted into the container first.

Relevant container env vars

The current compose/runtime flow supports:

  • ZENNOTES_BIND
  • ZENNOTES_CONFIG_PATH
  • ZENNOTES_DEFAULT_VAULT_PATH
  • ZENNOTES_BROWSE_ROOTS
  • ZENNOTES_VAULT_PATH

Behavior notes:

  • ZENNOTES_VAULT_PATH hard-locks the server to a specific vault path
  • ZENNOTES_DEFAULT_VAULT_PATH sets the starting vault when no saved selection exists
  • ZENNOTES_BROWSE_ROOTS limits what the web picker can browse
  • ZENNOTES_ALLOWED_ORIGINS restricts which browser origins can connect
  • ZENNOTES_ALLOW_UNSCOPED_BROWSE=1 removes browse-root enforcement
  • ZENNOTES_ALLOW_INSECURE_NOAUTH=1 disables the default auth guardrail

Web vault picker

The self-hosted web build now includes a server-backed vault chooser.

  • it browses folders on the server, not the browser machine
  • it only browses configured allowed roots by default
  • it starts from sensible locations instead of requiring blind path typing
  • it supports a simpler folder-picker flow for choosing the active vault
  • on macOS-hosted servers, common shortcuts like iCloud Drive are supported when available

If you start the server with ZENNOTES_VAULT_PATH, manual vault switching is intentionally disabled.

If auth is enabled, the browser asks for the bootstrap token once and then switches to a secure session cookie. ZenNotes no longer relies on auth tokens in browser URLs or local storage.

MCP integration

ZenNotes ships a dedicated MCP server and desktop install flows for:

  • Claude Code
  • Claude Desktop
  • Codex

The desktop app can:

  • detect whether the ZenNotes MCP entry is installed
  • install or uninstall it for each supported client
  • show the exact runtime used to launch the server
  • edit the server's default instructions from Settings

The MCP server exposes vault operations such as:

  • reading notes
  • creating notes
  • moving notes
  • appending to notes
  • listing notes
  • searching vault text
  • listing files/assets
  • toggling tasks

Building and packaging desktop releases

Build everything

bash
npm run build:prod

Desktop package scripts

bash
npm run pack
npm run dist:mac
npm run dist:win
npm run dist:linux

Signed macOS releases

Public macOS releases are wired for hardened runtime signing and notarization.

The GitHub Actions release workflow expects:

  • MACOS_CERTIFICATE_P12
  • MACOS_CERTIFICATE_PASSWORD
  • APPLE_ID
  • APPLE_APP_SPECIFIC_PASSWORD
  • APPLE_TEAM_ID

Optional Windows signing can be supplied with:

  • WINDOWS_CERTIFICATE_P12
  • WINDOWS_CERTIFICATE_PASSWORD

Tagged releases fail the macOS release job if the required Apple signing or notarization secrets are missing. That prevents accidentally shipping an unsigned public mac build.

Current status

ZenNotes is actively evolving. The desktop app is the more mature runtime today, while the self-hosted web/server path is being brought into parity through the shared monorepo core.

That means:

  • many features are shared already
  • some platform-specific behavior still lives in the shell layers
  • the README will keep evolving as desktop, web, and self-hosted flows converge further

License

MIT

将 Zennotes MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Zennotes 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Zennotes 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Zennotes MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "zennotes": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Zennotes MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Zennotes MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Zennotes 帮我完成这项任务吗?
Zennotes
当然。我已阅读。
以下是我使用 Zennotes 得到的结果。

常见问题

Zennotes MCP 服务器有什么用途?

Zennotes 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Zennotes MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Zennotes,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Zennotes MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Zennotes 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Zennotes MCP 连接到 TypingMind?

Zennotes 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Zennotes MCP 在 TypingMind 中提供哪些工具?

Zennotes 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Zennotes MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Zennotes 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇