You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Package zn CLI and MCP server separately from desktop application #345
As a user, I want to use the zn CLI and MCP server from a headless server running the backend only, without needing to install the desktop application.
Problem
Currently, the zn CLI is tightly coupled with the desktop application packaging, making it necessary to install the entire desktop app to use the CLI tools on a headless server.
Solution
Separate the zn CLI and MCP server into an independent package that can be installed and run separately from the desktop application. This would enable:
Running zn CLI on headless servers (backend-only deployments)
Deploying the MCP server independently
Acceptance Criteria
zn CLI can be installed separately without requiring desktop app dependencies
MCP server can be deployed and run independently
CI/CD pipeline publishes CLI package to appropriate registries
Reacted by Mr Say Nothing, ntrkd, Dustin Sanders and Peter Szarvas
I think a use case for this would be a agent memory store that's also human readable. Let a model spin up zennotes and keep track of progress within a repo or other documentation
The MCP server also belongs on the Self-Host server such that agent services can be used to query notes, monitor changes in the vault and take actions all without requiring an unreliable client to be running. I have already run into issues with plugins on Obsidian running a task and my laptop goes to sleep while its running and the work fails. However, this will require better change management on the server side (#448#336)
When the desktop client is connected to a remote vault, it disables the MCP server on the desktop client with the option to force it on for certain workflows.
Agree - the self-host server is my agent memory across machines. I currently manage this with the zn cli on each machine, but a central mcp server would be more manageable and fill this purpose exactly.
This is covered by the standalone zn (github.com/ZenNotes/tui): one static binary with the CLI, the terminal app, and zn mcp, with no desktop app needed. It has shipped since zn 0.1.0 as release archives for Linux, macOS and Windows, through Homebrew (brew install zennotes/tap/zn), and through go install github.com/ZenNotes/tui/cmd/zn@latest. It works against a local vault (zn --vault /path) or a self-hosted server (zn connect https://your-server), and claude mcp add zennotes -- zn mcp registers it with an agent.
For the server-side MCP endpoint raised in the comments (@wedgen, @lawtj): that is a different shape, an MCP server running inside the self-host server over the network instead of a stdio process on each machine. #948 tracks a hosted endpoint for ZenNotes Cloud; please open a new issue for the self-host version so it gets its own discussion. Closing this one as shipped.
Activity
mrsaynothing commentedon Jul 10, 2026
+1
ntrkd commentedon Jul 19, 2026
I think a use case for this would be a agent memory store that's also human readable. Let a model spin up zennotes and keep track of progress within a repo or other documentation
wedgen commentedon Aug 7, 2026
The MCP server also belongs on the Self-Host server such that agent services can be used to query notes, monitor changes in the vault and take actions all without requiring an unreliable client to be running. I have already run into issues with plugins on Obsidian running a task and my laptop goes to sleep while its running and the work fails. However, this will require better change management on the server side (#448 #336)
When the desktop client is connected to a remote vault, it disables the MCP server on the desktop client with the option to force it on for certain workflows.
lawtj commentedon Oct 18, 2026
Agree - the self-host server is my agent memory across machines. I currently manage this with the
zncli on each machine, but a central mcp server would be more manageable and fill this purpose exactly.adibhanna commentedon Oct 19, 2026
This is covered by the standalone
zn(github.com/ZenNotes/tui): one static binary with the CLI, the terminal app, andzn mcp, with no desktop app needed. It has shipped since zn 0.1.0 as release archives for Linux, macOS and Windows, through Homebrew (brew install zennotes/tap/zn), and throughgo install github.com/ZenNotes/tui/cmd/zn@latest. It works against a local vault (zn --vault /path) or a self-hosted server (zn connect https://your-server), andclaude mcp add zennotes -- zn mcpregisters it with an agent.For the server-side MCP endpoint raised in the comments (@wedgen, @lawtj): that is a different shape, an MCP server running inside the self-host server over the network instead of a stdio process on each machine. #948 tracks a hosted endpoint for ZenNotes Cloud; please open a new issue for the self-host version so it gets its own discussion. Closing this one as shipped.