Skip to content
MCP server
Registry

PKV Sync MCP Server

Self-hosted, Git-native Obsidian vault sync with a built-in MCP server, search, and wiki lint.

PKV Sync scores 67 (Good), licensed AGPL-3.0 and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Version control, Productivity. GitHub shows 11 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cyberkurryAGPL-3.0Rust11 stars
Trust score
67Good
Trust score 67 of 100, Good

Good trust

67 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: agpl-3.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 67 comes from

22 + 20 + 4 + 10 + 4 + 7 = 67. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyberkurry-pkv-sync": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/cyberkurry/pkv-sync:1.10.2"      ],      "env": {        "PKV_TOKEN": "YOUR_PKV_TOKEN",        "PKV_VAULT_ID": ""      }    }  }}

Environment variables

NameRequiredNotes
PKV_TOKENSecretRequiredA PKV Sync device token with access to the vault this session should expose
PKV_VAULT_IDRequiredVault id the MCP session exposes (the vault is listed in the admin panel)

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

PKV Sync

PKV Sync is a self-hosted, Git-native sync server for Obsidian vaults.

The name is PKV Sync: PKV is the initialism of Personal Knowledge Vault, and Sync is spelled out in full.

CI License: AGPL-3.0-only

Document version: v1.10.2.

English · 简体中文 · 繁體中文 · 日本語 · 한국어

Status

PKV Sync 1.10.2 ships its MCP Registry metadata under the canonical GitHub namespace case (io.github.CyberKurry/pkv-sync), which is the name the registry's OCI ownership check compares against. The product content matches 1.10.1: an edit made while a pull is downloading a file becomes a visible conflict instead of being pushed over the other device's committed version; a file the server refuses is reported on every pass instead of turning the status bar green, and one per-file rejection no longer wedges the rest of the vault; moving a note with a non-ASCII name keeps its Markdown links intact; and an interrupted self-update restores the previous plugin build. Upgrade the server and plugin together.

Features

Sync

  • Multi-user, multi-vault sync over authenticated devices, with per-vault push locks and idempotent retries.
  • Real-time push. Small edits land sub-second over Server-Sent Events; polling stays as a safety net.
  • Git is the source of truth. Every vault is a bare git repo, so per-file history, unified diff, and single-file restore work out of the box — in the plugin and in the admin panel.
  • Conflict-safe. The plugin never silently overwrites local edits; conflicts surface as .conflict-* files with a one-click resolver.

Operate

  • Admin panel in five languages (English, 简中, 繁中, 日本語, 한국어) for users, device tokens, vaults, invites, activity, and blob GC, with confirmation dialogs for destructive vault and user actions.
  • AI-readable vaults. MCP exposes read/write tools over stdio or the embedded /mcp route on pkvsyncd serve (default on), and a ready-to-use MCP Registry entry ships with every release (io.github.CyberKurry/pkv-sync).
  • Built for LLM-maintained wikis. Beyond reading and writing, an agent can search by frontmatter, page through results exactly, lint a layer's links, find the pages whose sources went stale, and write behind a dry run plus content-hash guards — see the LLM Wiki workflow.
  • Bounded by default. Admin-created passwords follow the setup-grade strong policy, token secrets are shown exactly once, uploads and MCP responses are size-capped, and live SSE streams revalidate revoked tokens.

Design

  • Mature technology, on purpose. Single binary, single SQLite metadata DB, one bare git repo per vault, one content-addressed blob per attachment.

Quick start with Docker Compose

The recommended path. Caddy in deploy/caddy/ fronts HTTPS via Let's Encrypt; PKV Sync sits on 127.0.0.1:6710 inside the compose network and never sees plain HTTP from the public internet.

You need a domain name (e.g. sync.example.com) with A/AAAA records pointing at the server, and ports 80 and 443 reachable from the internet (port 80 is needed for ACME HTTP-01 validation).

Set up the stack

  1. Generate a deployment key:

    docker run --rm ghcr.io/cyberkurry/pkv-sync:latest genkey
    
  2. Drop config.toml next to docker-compose.yml:

    [server]
    bind_addr      = "0.0.0.0:6710"
    deployment_key = "k_0123456789abcdef0123456789abcdef"  # replace with genkey output
    public_host    = "sync.example.com"   # required, makes admin POSTs work
    
    [storage]
    data_dir = "/var/lib/pkv-sync"
    db_path  = "/var/lib/pkv-sync/metadata.db"
    
    [network]
    trusted_proxies = ["172.16.0.0/12"]   # Docker bridge network
    
    [mcp]
    embed_in_serve = true                 # default; set false to disable
    
  3. Edit deploy/caddy/Caddyfile and replace sync.example.com with your real domain.

  4. Bring the stack up:

    # The server runs as uid 65532. Docker would create ./data as
    # root:root and the first start would fail to create the database.
    mkdir -p data && sudo chown 65532:65532 data
    docker compose up -d
    

    Open https://sync.example.com/setup in your browser and create the first administrator account.

  5. Install pkv-sync-plugin.zip in Obsidian (<vault>/.obsidian/plugins/pkv-sync/), enable it, paste the share URL from the admin panel, then log in or register and pick a vault.

Update

docker compose pull && docker compose up -d

Where to go next

Native installs, reverse-proxy tuning (Caddy / Nginx / Traefik), public_host semantics, backup and restore, and disk encryption are covered in the deployment hardening guide.

MCP deployment modes

MCP HTTP is embedded-only: [mcp].embed_in_serve defaults to true, so pkvsyncd serve mounts /mcp on the main server port, sharing the same TLS termination, reverse proxy, deployment key, and bearer token enforcement. Set embed_in_serve = false to disable it. The standalone pkvsyncd mcp --transport http --bind process was removed in this version — point existing standalone deployments at the main server's /mcp. Local AI tools can also use the stdio transport: pkvsyncd mcp --vault <id>.

Obsidian plugin

Local files are the source of truth — the plugin reads and writes your normal Obsidian vault on disk, no proxy filesystem. Non-sensitive plugin settings and sync indexes live in <vault>/.obsidian/plugins/pkv-sync/data.json; login state, the active bearer device token, deployment key, and stable device identity live in Obsidian's device-local storage instead. Treat Obsidian device-local storage, plaintext backups, and legacy plugin data.json copies as sensitive. Device tokens renew on use, expire after 90 idle days, and have a 365-day absolute lifetime; logging in again on the same device rotates the active token.

Day-to-day features — command palette, file history, side-by-side diff, conflict resolution, selective .obsidian sync, device management, and self-update — are covered in the user manual.

Encryption today

PKV Sync 1.0 does not yet ship native end-to-end encryption — the server can read vault contents. Native per-vault E2EE is planned for the 1.x roadmap as an opt-in mode, because encryption trades away the server-side features (history diff, three-way auto-merge, inline SSE payload, MCP read/write) that make Git-native PKV useful.

If you need E2EE before it lands, layer git-crypt on your vault: marked paths reach the server as ciphertext blobs it cannot decrypt. Filenames stay plaintext on the server (acceptable for most threat models). Standard git clone and pkvsyncd materialize still work for clients that hold the key.

For real deployments, also run behind HTTPS, restrict trusted_proxies, encrypt the data disk, and encrypt backups — see the deployment hardening guide.

Documentation

TopicDoc
Day-to-day plugin usageuser manual
Server admin and runtime settingsadmin manual
Every CLI command and flagCLI reference
Upgrading from 0.x to 1.01.0 upgrade notes
Reverse proxy, TLS, backups, hardeningdeployment hardening
HTTP API contractOpenAPI spec
MCP setup and tool listMCP how-to
LLM-maintained wiki workflowLLM Wiki how-to
Migrating from Obsidian Syncmigration guide
Security disclosuresSECURITY.md
Release historyCHANGELOG.md

Development

cargo fmt --all -- --check
cargo clippy --workspace -- -D warnings
cargo test --workspace

cd plugin
npm run typecheck
npm exec vitest run
npm run build

CI runs the full Rust matrix on Linux and Windows, plus plugin tests/typecheck/build/package, a Docker build, and release-binary smoke tests.

Contributing

Bug reports, feature requests, and pull requests are welcome. Open an issue first for anything larger than a bug fix. See CONTRIBUTING.md for build and test commands, the commit and release flow, and the docs rules that CI enforces.

License

AGPL-3.0-only. See LICENSE.

Frequently asked questions

What is PKV Sync MCP Server?

Self-hosted, Git-native Obsidian vault sync with a built-in MCP server, search, and wiki lint.

How do I install PKV Sync MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. PKV Sync MCP Server runs locally from the Docker image ghcr.io/cyberkurry/pkv-sync:1.10.2 with the command docker run -i --rm ghcr.io/cyberkurry/pkv-sync:1.10.2.

Is PKV Sync MCP Server free and open source?

Yes. PKV Sync MCP Server is released under the AGPL-3.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does PKV Sync MCP Server support remote (HTTP) connections?

No remote endpoint is listed for PKV Sync MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is PKV Sync MCP Server's trust score calculated?

PKV Sync MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server