Livesync Workers logo

Livesync Workers

Self-hosted Obsidian LiveSync backend on Cloudflare Workers with full-text, semantic search, and MCP note access.

Install Livesync Workers

Run the project’s own setup commands, in order.

Setup steps from the project

livesync-workers installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/odiak/livesync-workers.git
    
  2. 2. Run
    cd livesync-workers
    
  3. 3. Install
    npm install
    
  4. 4. Configure
    npm run setup            # creates the Vectorize index and R2 bucket
    
  5. 5. Configure
    npx wrangler secret put LIVESYNC_PASSWORD
    
  6. 6. Configure
    npx wrangler secret put ADMIN_PASSWORD
    

Overview

livesync-workers provides an Obsidian-compatible LiveSync endpoint and an MCP endpoint backed by Cloudflare Workers. It stores vault data in a SQLite-backed Durable Object, maintains full-text indexes in R2, and optionally creates semantic indexes with Workers AI and Vectorize. MCP clients can browse, read, search, append to, and write notes, with OAuth scopes controlling write access. Reach for it when you want a self-hosted Obsidian vault backend without operating CouchDB.

Use cases

  • Sync an Obsidian vault through a self-hosted Cloudflare backend
  • Search Japanese, Chinese, and Korean notes by substring
  • Let MCP assistants read vault structure and note contents
  • Append generated text to daily notes with scoped permissions
  • Write notes while detecting revision conflicts

Key features

  • CouchDB-compatible LiveSync endpoint
  • Full-text search with CJK substring matching
  • Optional semantic search with Workers AI and Vectorize
  • MCP tools for browsing, reading, searching, and writing notes
  • OAuth scopes and optional static-token authentication
  • Cloudflare Durable Objects, R2, KV, and Workers integration

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 34d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars20Stargazers on the source repository.
Last commit13d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Livesync Workers works

What livesync-workers does

livesync-workers combines two interfaces for one Obsidian vault. Its /livesync route implements the subset of the CouchDB API used by the Self-hosted LiveSync plugin, while /mcp exposes the vault to AI assistants through Streamable HTTP. Vault data is held in a SQLite-backed Cloudflare Durable Object, so a separate CouchDB deployment is not required.

As notes synchronize, the Worker updates search data. Full-text search is stored in R2, and semantic search uses embeddings from Workers AI with a Vectorize index. Notes created or changed through MCP become ordinary LiveSync revisions and appear in Obsidian during the next synchronization cycle.

How it works

Configure the LiveSync plugin to use the Worker URL with /livesync as its CouchDB-compatible endpoint. The default database name is vault, and the default LiveSync username is obsidian. End-to-end encryption must remain disabled because the Worker needs readable note contents for indexing and MCP responses.

MCP clients connect to /mcp. OAuth authorization uses the admin password and lets you grant read, append, and write scopes. Read access covers browsing, reading, searching, and status inspection. Append and write permissions are separate and disabled by default. Clients without OAuth support can use a static bearer token; its default permission is read-only, with additional scopes configured separately.

The Worker also sends MCP instructions asking assistants to inspect AGENTS.md at the vault root before working with notes. That file can describe vault layout and conventions for generated content.

Setup and configuration

Deploy through the Cloudflare deployment button or with Wrangler. A Wrangler deployment uses npm install, npm run setup, three secret commands, then npm run build and npm run deploy. The setup process provisions the Vectorize index and R2 bucket; the OAuth KV namespace is created on the first deployment.

Required secrets are LIVESYNC_PASSWORD, ADMIN_PASSWORD, and SESSION_SECRET. An optional MCP_STATIC_TOKEN supports clients that cannot complete OAuth. Runtime variables include LIVESYNC_DATABASE, LIVESYNC_USERNAME, VAULT_EXCLUDED_FOLDERS, SEMANTIC_SEARCH, and MCP_STATIC_TOKEN_SCOPES. Excluded folders remain readable but are omitted from search indexes. Setting SEMANTIC_SEARCH to off disables embedding and Vectorize use while preserving full-text search.

The deployment uses Durable Objects with SQLite, R2, KV, Workers AI, and Vectorize. Cloudflare requires a Workers-enabled account; R2 requires a payment method, and usage beyond free tiers is billed by Cloudflare.

Tools and capabilities

The MCP endpoint provides these read tools:

  • listDirectory and listNotes for vault navigation
  • listRecentNotes for recent-note discovery
  • readNote and readDailyNote for retrieving note contents
  • searchNotes for semantic or search-oriented retrieval
  • grepNotes for indexed full-text matching
  • vaultStatus for synchronization and indexing status

Writing is separated into appendToDailyNote, appendToNote, and writeNote. The write operation includes conflict detection. appendToDailyNote uses a client-supplied date when available and otherwise uses the current UTC date.

Limitations and notes

The implementation targets the CouchDB behavior required by Self-hosted LiveSync, not CouchDB as a general-purpose database. Vaults around 100 MB of Markdown, or roughly 12,000 notes, are supported and tested. Full-text indexing stops after 50 million characters and reports the condition through vaultStatus; attachments are excluded from that total.

Only the first million characters of each note enter the full-text index, so later content cannot be found with grepNotes. Semantic indexing processes the complete note in sections. Full-text matching uses character bigrams for Japanese, Chinese, and Korean, and whole-word matching for ASCII text with case- and width-insensitive behavior. A grepNotes query can contain up to 32 indexed terms.

The project is independent of the Self-hosted LiveSync plugin and its author. MCP access and the LiveSync endpoint use separate authentication controls, and repeated failed logins are throttled.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Livesync Workers

livesync-workers is an MCP server that connects AI assistants to an Obsidian vault synchronized through the Self-hosted LiveSync plugin. Its main tools list directories and notes, read daily or regular notes, search and grep note content, report vault status, append text, and write notes with conflict detection.

Deploy it with Cloudflare's deployment button or with Wrangler. The Wrangler path is to clone the repository, run `npm install`, run `npm run setup`, create the three required secrets, then run `npm run build && npm run deploy`.

Configure Self-hosted LiveSync with the Worker URL followed by `/livesync`, the configured database name, and the LiveSync username and password. Keep end-to-end encryption disabled, because the Worker must read note contents for indexing and MCP access.

Yes. Cursor is named as a supported AI assistant, and it can connect to the Streamable HTTP MCP endpoint at `/mcp`. OAuth opens a browser for administrator authorization; clients without OAuth can use a configured static bearer token.

Grant the `vault:append` and `vault:write` scopes through OAuth, or add those scopes to `MCP_STATIC_TOKEN_SCOPES` when using a static token. Read access is granted separately, while append and write permissions are off by default.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLivesync Workers AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/livesync-workers?style=directory)](https://allmcps.com/mcp/livesync-workers)
HTML Embed
<a href="https://allmcps.com/mcp/livesync-workers"><img src="https://allmcps.com/api/badge/livesync-workers?style=directory" alt="Livesync Workers on AllMCPs" /></a>