Skip to content

[Feature] Package zn CLI and MCP server separately from desktop application #345

Closed

Description

@goweiwen

User Story

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

Activity

  1. mrsaynothing commented on Jul 10, 2026

    @mrsaynothing

    +1

  2. ntrkd commented on Jul 19, 2026

    @ntrkd

    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

  3. wedgen commented on Aug 7, 2026

    @wedgen

    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.

  4. added
    enhancement
    cli-mcp
    packaging
    on Aug 25, 2026
  5. lawtj commented on Oct 18, 2026

    @lawtj

    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.

  6. adibhanna commented on Oct 19, 2026

    @adibhanna
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cli-mcpenhancementpackaging

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions