Obsidian Sync MCP
Provides tools for AI agents to access and manage an Obsidian vault, including capabilities to read, write, edit, delete, and move notes, list folders and tags, and retrieve note metadata.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Obsidian Sync MCP
Give any AI agent access to your Obsidian vault over MCP. Run it locally against your vault files, or pair it with Self-hosted LiveSync and deploy to the cloud so it works even when your machine is off.
Example: From your phone, ask your AI: "What's in my daily note for today?" — and get the full content back, with a link to open it in Obsidian.
How it works
The server connects to your vault in two ways:
Filesystem mode — reads
.mdfiles directly from your vault folder. No database needed.CouchDB mode — reads from a CouchDB database, locally or in the cloud. Your vault syncs to CouchDB via Self-hosted LiveSync, the community Obsidian plugin (600k+ downloads). The MCP server reads from CouchDB directly using livesync-commonlib — the same library that powers the plugin — for proper chunk handling and E2E encryption support.
Both modes expose the same MCP tools over HTTP, so any MCP-compatible agent can connect: Claude, Copilot, custom agents, anything that speaks the Model Context Protocol.
Related MCP server: Connect MCP
Choose your setup
Need it always available? | Have LiveSync? | Go to |
Yes | Yes | Setup A — add MCP alongside your existing CouchDB |
Yes | No | Setup B — CouchDB + MCP + LiveSync from scratch |
No | — | Setup C — filesystem or CouchDB, npx or Docker |
A. Deploy MCP to the cloud
You already have LiveSync and CouchDB on an always-on server. You just need the MCP server deployed alongside it.
Using Fly.io setup script (macOS/Linux, or WSL on Windows):
git clone https://github.com/es617/obsidian-sync-mcp.git
cd obsidian-sync-mcp
./deploy/setup.sh # choose option 2 (MCP only)The script asks for your CouchDB connection details, vault name, and encryption passphrase.
Or run the Docker image on any always-on server:
docker run -p 8787:8787 \
-v mcp-data:/data -e DATA_DIR=/data \
-e COUCHDB_URL=https://your-couchdb:5984 \
-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=yourpassword \
-e COUCHDB_DATABASE=obsidian -e VAULT_NAME=MyVault \
-e COUCHDB_PASSPHRASE=your-encryption-passphrase \
-e COUCHDB_OBFUSCATE_PROPERTIES=false \
-e MCP_AUTH_TOKEN=yourpassword \
-e BASE_URL=https://your-server-url \
ghcr.io/es617/obsidian-sync-mcp:latestSet COUCHDB_PASSPHRASE if you use E2E encryption in LiveSync. Set COUCHDB_OBFUSCATE_PROPERTIES=true if "Obfuscate Properties" is also enabled in your LiveSync settings. For an existing vault the server detects the actual setting from the database at startup and corrects a mismatch with a warning; only for a brand-new empty database does the value need to match your LiveSync settings. If the vault was created with LiveSync 1.0.33+ and path obfuscation, also set COUCHDB_ID_DERIVATION_KEY to your LiveSync recovery code (sls-id-v1:..., from "Show current recovery code") so the server can resolve note paths. Unicode NFC path identity (the default for databases created with LiveSync 1.0.49+) is detected from the database automatically; a brand-new empty database gets NFC unless you set COUCHDB_PATH_NORMALIZATION=legacy. Set BASE_URL to your public URL (required for OAuth callbacks when agents connect over HTTPS).
Your MCP endpoint is https://your-app.fly.dev/mcp (Fly.io) or https://your-server:8787/mcp (Docker behind HTTPS).
See Cost for Fly.io pricing.
Requires flyctl for the Fly.io path:
curl -L https://fly.io/install.sh | sh
export PATH="$HOME/.fly/bin:$PATH" # add to ~/.zshrc or ~/.bashrc
fly auth loginB. Deploy everything to the cloud
Starting fresh — no LiveSync yet. Deploy CouchDB and MCP together, then set up LiveSync in Obsidian.
Using Fly.io setup script (macOS/Linux, or WSL on Windows):
git clone https://github.com/es617/obsidian-sync-mcp.git
cd obsidian-sync-mcp
./deploy/setup.sh # choose option 1 (CouchDB + MCP)The script generates credentials, creates the database, and deploys. Save the credentials it prints.
Or with Docker Compose on any always-on server:
git clone https://github.com/es617/obsidian-sync-mcp.git
cd obsidian-sync-mcp
cat > .env <<EOF
COUCHDB_PASSWORD=changeme
MCP_AUTH_TOKEN=changeme-too
VAULT_NAME=MyVault
EOF
docker compose up -dAfter deployment:
In Obsidian, install Self-hosted LiveSync and configure it with the credentials from the setup output
Your MCP endpoint is
https://your-app.fly.dev/mcp(Fly.io). With Docker Compose the MCP port is published onlocalhost:8787only; to reach it from other machines, put an HTTPS tunnel or reverse proxy in front (see remote access) and setBASE_URLto its public URLThe
MCP_AUTH_TOKENis the password you enter when an agent connects
Always-on server
├── CouchDB + persistent storage
└── MCP server
↑ ↑
Obsidian + LiveSync AI agentsRequires flyctl for the Fly.io path:
curl -L https://fly.io/install.sh | sh
export PATH="$HOME/.fly/bin:$PATH" # add to ~/.zshrc or ~/.bashrc
fly auth loginCost (Fly.io)
Applies to both Setup A and Setup B.
Component | Cost |
CouchDB + MCP VM (shared, 512MB) | ~$3-4/month (kept alive by LiveSync) |
MCP-only VM (shared, 256MB) | ~$0-2/month (suspends when idle) |
1GB persistent volume | ~$0.15/month |
As of March 2026, Fly.io may waive charges under $5/month, which could make this effectively free with a shared IPv4. Either way, cheaper than Obsidian Sync ($4/month) and you own the data.
C. Run on your machine
Run the MCP server locally. Works with filesystem mode (reads vault files directly) or CouchDB mode (if you have LiveSync). Machine must stay on for agents to reach it.
Filesystem mode (simplest):
VAULT_PATH=~/Documents/MyVault \
VAULT_NAME=MyVault \
npx obsidian-sync-mcpCouchDB mode (if you have LiveSync):
COUCHDB_URL=http://localhost:5984 \
COUCHDB_USER=admin \
COUCHDB_PASSWORD=yourpassword \
COUCHDB_DATABASE=obsidian \
COUCHDB_PASSPHRASE=your-encryption-passphrase \
COUCHDB_OBFUSCATE_PROPERTIES=false \
VAULT_NAME=MyVault \
npx obsidian-sync-mcpOmit COUCHDB_PASSPHRASE if you don't use E2E encryption in LiveSync. Set COUCHDB_OBFUSCATE_PROPERTIES=true if "Obfuscate Properties" is also enabled in your LiveSync settings. For an existing vault the server detects the actual setting from the database at startup and corrects a mismatch with a warning; only for a brand-new empty database does the value need to match your LiveSync settings. If the vault was created with LiveSync 1.0.33+ and path obfuscation, also set COUCHDB_ID_DERIVATION_KEY to your LiveSync recovery code (sls-id-v1:...) so the server can resolve note paths. Unicode NFC path identity (the default for databases created with LiveSync 1.0.49+) is detected from the database automatically; a brand-new empty database gets NFC unless you set COUCHDB_PATH_NORMALIZATION=legacy.
Or with Docker:
docker run -p 127.0.0.1:8787:8787 \
-v mcp-data:/data -e DATA_DIR=/data \
-e VAULT_PATH=/vault -v ~/Documents/MyVault:/vault \
-e VAULT_NAME=MyVault \
ghcr.io/es617/obsidian-sync-mcp:latestYour MCP endpoint is http://localhost:8787/mcp.
Want remote access? Add a tunnel (machine must stay on):
cloudflared tunnel --url http://localhost:8787 # free
tailscale funnel 8787 # or Tailscale
ngrok http 8787 # or ngrokSet BASE_URL to the tunnel URL when using authentication.
Tools
Tool | Description |
| Read a note's markdown content by path (CouchDB mode: with its revision) |
| Create or overwrite a note (replaces entire content); optional |
| Edit a note without rewriting it — append, prepend (after frontmatter), or replace exact text; optional |
| List all folders in the vault with note counts — use to discover folder names |
| List all tags in the vault with counts — use to discover tags before filtering |
| List notes with timestamps. Filter by folder, name, tag, or date. Sort by name or modified. |
| Search note text for terms (OR, case-insensitive substrings); paths and frontmatter titles are searched first. Filter by folder, tag, or date. Returns paths with one context line each, never the note body, after a status line that states which CouchDB sequence the index is caught up with. |
| Delete a note |
| Move or rename a note — works across folders, creates destination folders automatically |
| Get frontmatter, tags, outgoing links, backlinks, size, timestamps and (CouchDB mode) revision — navigate the knowledge graph |
Concurrent edits (CouchDB mode)
Several agents, or several server instances on one database, can edit the same note at once without losing each other's changes:
read_noteandget_note_metadatashow the note's revision (Revision: 12-3f9c…, CouchDB's_rev).edit_noteapplies its change to the text it read and writes only if the note is still at that revision. If another writer got there first, it reads the note again and re-applies the change: at least 10 rounds, then until 50 rounds or 3 seconds, whichever comes first (on a fast database the 50-round cap usually ends it in 1-2 seconds; time spent waiting behind this instance's other edits of the note is not counted); areplacechecksold_textagain each time, so two agents replacing the same text get one success and oneold_text not found. If the note keeps changing all that time (several writers hammering one note through different instances), nothing is written and the answer says so: such an edit is refused, never silently lost.write_notereplacing an existing note also writes only on the revision it just read, and if another writer got in between it retries on the same budget asedit_note(always safe: the new text doesn't depend on the old one). The last write still wins, as before, but it no longer leaves a hidden conflict revision next to a concurrent edit; if the note keeps changing for the whole budget, nothing is written and the answer says so. Creating a new note is not checked: two instances creating the same new note at the same moment can still leave one.write_noteandedit_noteaccept an optionalexpected_revision: the write only happens if the note is still at that revision; otherwise nothing is written and the answer names the current revision.edit_notewithexpected_revisiondoes not retry.edit_notecalls that wait on the same note through one instance are written together: applied in arrival order to one read of the note and stored in one write (at most 64 per write). Each one's answer carries that write's revision, so several edits can report the sameRevision:, and the group shares one retry budget: if the note keeps changing for the whole budget, every edit in the group is refused. An edit that can't apply (old_text not found) is answered on its own and the others still land; if CouchDB certainly stored nothing of the group's write (a body overmax_http_request_size, say), the edits are written one at a time so only the one that fails by itself is refused. Any other failure (a 5xx, a timeout, a lost response) is answered to every edit in the group, as it would be to a single edit: that write may still land, and writing the edits again could apply them twice. Edits withexpected_revisionare never grouped, and edits through different spellings of one path on a case-insensitive vault are grouped per spelling.A
delete_note,move_note,write_note, or anedit_notewithexpected_revision, that arrives whileedit_notecalls on the same note are still queued can run before them: queued edits don't hold a place in line. Both orders are valid for calls that overlap, and every answer is truthful (the edits then answerNote not found, or apply to the new text).
Local mode has no revisions: reads show none, and expected_revision is refused rather than ignored. delete_note and move_note do not check revisions yet (except a case-only rename on a case-insensitive vault, which rewrites the one note like write_note). Edits made in Obsidian reach CouchDB through LiveSync replication, which has no revision check; an Obsidian edit racing an agent edit is still left to LiveSync's conflict handling.
Plugins (opt-in)
Plugins add your own tools without forking. They are off by default: nothing loads unless PLUGINS is set.
PLUGINS=tasks,daily-noteloads only those plugins. A name with no plugin file stops startup. List names without the extension (tasks, nottasks.mjs).PLUGINS=allloads every plugin in the directory, including any added later. That's risky: whoever can put a file there can run code in the server. Prefer a list of names.
A plugin is a .mjs file (.js also works, see below) in plugins/ in DATA_DIR, or in PLUGIN_DIR when set, named by its file name without the extension; files starting with a dot are skipped. A symlink to a file counts, so a read-only Kubernetes ConfigMap can be mounted as the whole directory. Startup refuses a plugin directory inside VAULT_PATH, and a plugin whose symlink resolves into it: plugins never live where synced devices or agents can write. The check compares resolved paths, so it can't see a bind mount or a hard link of a vault folder, or a plugin that imports from a subfolder that is a symlink into the vault: never mount anything from inside the vault as PLUGIN_DIR. With DATA_DIR, HOME and USERPROFILE unset or empty the data directory falls back to /tmp, so plugins then need PLUGIN_DIR. Each plugin default-exports a function that receives a context:
// plugins/tasks.mjs, loaded with PLUGINS=tasks
export default function register(ctx) {
ctx.addTool({
name: "add_task",
description: "Append a task to a note.",
parameters: ctx.z.object({ path: ctx.z.string(), task: ctx.z.string() }),
execute: async ({ path, task }) => {
await ctx.vault.editNote(path, (text) => `${text}\n- [ ] ${task}`);
return `Added to ${path}`;
},
});
}The context has addTool (same shape as a built-in tool), z (the server's zod, for parameters), vault, vaultName, readOnly and log; it is frozen, and each plugin gets its own. ctx.vault offers readNote, getMetadata, listNotes, writeNote (with createOnly), editNote, deleteNote and moveNote. Its writes go through the built-in tools' own write path, so they pass the same checks (READ_ONLY, WRITE_FOLDERS with its create/update/delete permissions), give the same answers and keep the search index current; a refused write is returned to the agent as the tool's answer. Paths and content must be strings, and an editNote callback must return the new text as a string, or the write is refused. In CouchDB mode the callback runs again when another writer changed the note in between, so it must have no side effects: compute the new text from the text it is given, and nothing else. Edits of one note queued on the server are written together, plugin and edit_note alike, so the text the callback gets, and the text editNote returns, can already hold other callers' edits. listNotes with a backslash in the folder is refused with list_notes's answer.
addTool works only while the plugin's function runs (or until its promise resolves); a later call throws. Tool names of built-in tools are reserved even when the tool is switched off (READ_ONLY, attachments off), and a name that is already taken stops startup, as does a selected plugin that doesn't load or throws, or whose loading or setup hasn't finished after 30 seconds. Files not selected by PLUGINS are never read. Each plugin is logged with its file and the file it resolves to, which is the code that runs, before it is imported and once it is loaded. The 30 seconds can't interrupt a plugin stuck in a synchronous loop; a Plugin loading line with no Plugin loaded after it names that plugin:
Plugin loading: tasks (tasks.mjs -> /plugins/..2026_11_28_10_00_00.000000001/tasks.mjs)
Plugin loaded: tasks (tasks.mjs -> /plugins/..2026_11_28_10_00_00.000000001/tasks.mjs)Under READ_ONLY=true plugin tools stay listed and every write they try is refused with the READ_ONLY message. A plugin that only makes sense with writes can skip registering its write tools when ctx.readOnly is true.
Writing plugins:
A tool is a plain object literal with only
name,description,parameters,outputSchema,annotations,_meta,timeoutMsandexecute; any other field (canAccess, say) stops startup, and so does a_metaorannotationsthat JSON can't carry. Itsparametersis a schema such asctx.z.object({...}). MCP clients refuse the whole tool list when one tool's schema isn't an object, soaddToolconvertsparameters, andoutputSchemawhen given, to JSON Schema the waytools/listdoes and stops startup unless it istype: "object": a top-levelctx.z.string(),ctx.z.array(...), union orctx.z.any()is refused, and so are types JSON Schema can't carry (ctx.z.date(),ctx.z.bigint(); take a string and parse it), schemas not built withctx.z, and adescription,annotationsor_metaof the wrong type. A plain object of fields ({ path: ctx.z.string() }) stops startup, and so does a class instance:addToolcopies only the object's own fields, so a method such asexecuteis lost and the tool fails with "needs parameters (a schema such as ctx.z.object({...})) and execute".Prefer
.mjs. A.jsfile withexport defaultloads only on Node 22.7 or later (which detects the module syntax; 22.0 to 22.6 fail with "Unexpected token 'export'"), or when apackage.jsonwith"type": "module"sits in or above the plugin directory.A plugin can't
importthe server's packages by name (zod,fastmcpand so on): Node looks for them next to the plugin file, not in the server'snode_modules. Use whatctxgives you (ctx.zfor parameters). Node's built-in modules (node:fsand so on) work.
With Docker, mount your plugins read-only and point PLUGIN_DIR at them:
docker run ... \
-v ./plugins:/plugins:ro -e PLUGIN_DIR=/plugins -e PLUGINS=tasks \
ghcr.io/es617/obsidian-sync-mcp:latestOn Fly.io, build your own image from the published one with the plugins copied in (COPY plugins/ /plugins/) and set PLUGIN_DIR=/plugins and PLUGINS. With the default directory, deploy/mcp-with-db would look in /opt/couchdb/data/.mcp/plugins on the CouchDB volume.
A plugin runs inside the server process with the server's rights. The context gives no way around the checks above, but a plugin's own code can import Node's modules, read the server's environment (CouchDB credentials included) and reach the network. Enable only code you trust as much as the server itself, and keep the plugin directory writable only by whoever deploys the server.
Plugins load once, at startup: changing one means a restart. Agents can't write or reload plugins; that may come later as a separate opt-in.
Attachments (opt-in)
With ATTACHMENTS_ENABLED=true, agents can also store images, PDFs, audio and video in the vault. In CouchDB mode they are written through livesync-commonlib, chunked and encrypted the same way as a file added in Obsidian, so they sync to every device.
Tool | Description |
| Get a one-time upload URL for a vault path. The agent sends the raw bytes there with HTTP |
| Fallback for clients that cannot make HTTP requests: save a tiny file from base64 (default limit 32 KB). Every byte is a model output token, so a 32 KB file is already ~13k tokens and minutes of generation |
| Move or rename an attachment (embeds in notes are not rewritten; the response lists notes that still point at the old path) |
| Delete an attachment |
| Size, timestamps, and the notes that embed or link it |
| List attachments with size, date and how many notes use each. Filter by folder, name or extension, sort by name, date or size, or pass |
The agent then embeds the file in a note with edit_note, e.g. ![[Attachments/shot.png]].
Upload URLs are served by this server at BASE_URL/attachments/upload/<token>, so BASE_URL must be reachable by the agent. The token in the URL is the only credential for that request: 32 random bytes, valid for one upload, one path, and ATTACHMENT_UPLOAD_TTL_SECONDS. Path checks, WRITE_FOLDERS and the size limit are applied when the URL is created, and existing files are never replaced unless the agent passed overwrite=true (which also needs the update permission under WRITE_FOLDERS). That last rule is checked again when the file is written, in the same step as the write, so of two concurrent uploads to one new path only the first succeeds and the other gets 409.
Behind a reverse proxy that allowlists paths: match the exact upload URL, PUT with path ^/attachments/upload/[A-Za-z0-9_-]{43}$, not the /attachments/upload/ prefix. The server resolves .. and %2e%2e in the path after the proxy has matched it, so with a prefix rule /attachments/upload/../../mcp reaches /mcp.
Allowed extensions: avif, bmp, gif, jpeg, jpg, png, webp, flac, m4a, mp3, ogg, wav, 3gp, mkv, mov, mp4, ogv, webm, pdf. Text formats (.md, .svg, .html, .js, .json, .canvas, ...) and dot-folders such as .obsidian/ are always refused. Attachments never appear in list_notes or search_notes. For list_attachments the server keeps their path, size and modification time in its metadata index, learned from the CouchDB change feed (from the metadata alone, so file contents are never downloaded) or, in filesystem mode, from a scan at startup and the file watcher. References are matched by file name, the way Obsidian resolves ![[shot.png]], from [[wikilinks]], ![[embeds]] and markdown links such as . Two files with the same name in different folders therefore count as referenced if either one is, which errs on the safe side when cleaning up.
Every tool response includes an Obsidian deep link (obsidian://open?vault=...&file=...) that works on Mac and iOS.
"Add a bullet point to my daily note." "Find my notes about the MCP server and fix the typo in the second one."
Authentication
Set MCP_AUTH_TOKEN to a password to enable authentication:
MCP_AUTH_TOKEN=mysecretpassword npx obsidian-sync-mcpThe server includes a self-contained OAuth 2.1 provider. When an agent connects:
A browser window opens with a password page
Enter the
MCP_AUTH_TOKENpasswordThe agent gets an access token and refreshes it transparently
The session is shared across all your Claude interfaces (Desktop, Web, Mobile) and persists across server restarts. You'll need to re-enter the password after 14 days of inactivity (configurable via MCP_REFRESH_DAYS).
For non-OAuth clients (curl, MCP Inspector, custom agents), you can also pass the token directly as Authorization: Bearer <MCP_AUTH_TOKEN>.
Without MCP_AUTH_TOKEN, the server runs without authentication — suitable for local use or behind a private network.
Environment variables
Variable | Required | Default | Description |
| Filesystem mode | — | Path to your Obsidian vault directory |
| CouchDB mode | — | CouchDB server URL |
| CouchDB mode |
| CouchDB username |
| CouchDB mode | — | CouchDB password (required) |
| CouchDB mode |
| CouchDB database name. The server never creates it: if it doesn't exist, startup fails with an error |
| CouchDB mode | — | LiveSync E2E encryption passphrase (must match plugin setting) |
| CouchDB mode |
| Set to |
| CouchDB mode | — | LiveSync "independent ID derivation" recovery code ( |
| CouchDB mode |
| Set to |
| CouchDB mode |
| LiveSync path identity: how file names map to document IDs. |
| Both |
| Vault name (used for deep links and index storage) |
| Optional | — | Password for authentication |
| Optional |
| Public URL (for OAuth callbacks when using a tunnel) |
| Optional |
| HTTP port |
| Optional |
| Bind address ( |
| Optional | — | Comma-separated extra |
| Optional |
| Directory for persisted data (metadata index, auth tokens) |
| Optional | — | Set to |
| Optional | server's zone | IANA time zone for the human-readable half of the server time in |
| Optional |
| Days before auth session expires |
| Optional |
| Set to |
| Optional | — | Plugins to load: a comma-separated list of names, or |
| Optional |
| Directory the plugins are loaded from; must be outside |
| Optional | — | Comma-separated list of vault-relative folders where agents may write (e.g. |
| Optional |
| Set to |
| Optional |
| Largest file accepted by an upload URL. The whole file is held in memory while it is written |
| Optional |
| Largest decoded file accepted by |
| Optional |
| How long an upload URL stays valid |
| Optional | all supported | Comma-separated subset of the supported extensions to allow, e.g. |
| Optional | — | Extra text appended to the server's MCP |
| Optional | — | Path to a file (e.g. markdown) whose contents are appended to the MCP |
Set VAULT_PATH for filesystem mode or COUCHDB_URL for CouchDB mode.
Try without an agent
Test the server interactively using the MCP Inspector:
VAULT_PATH=~/Documents/MyVault npx obsidian-sync-mcp &
npx @modelcontextprotocol/inspectorSet transport to Streamable HTTP, enter http://localhost:8787/mcp, and connect.
How to update
How you run it | How to update |
| Automatic — npx pulls latest |
Fly.io | From the same directory where you ran setup: |
Docker |
|
Known limitations
Single vault per instance. Each server connects to one vault. For multiple vaults, run multiple instances on different ports.
Single machine on Fly.io. Auth state is in-memory, so multiple machines break the OAuth flow. The setup script enforces this automatically.
No conflict resolution. If an agent and Obsidian edit the same note simultaneously, last write wins. In CouchDB mode, concurrent
edit_notecalls through this server (one instance or several) don't overwrite each other, andwrite_notereplacing an existing note doesn't leave a hidden conflict revision; creating a note,delete_noteandmove_noteare not revision-checked. See Concurrent edits.Attachments are write-and-describe only. With
ATTACHMENTS_ENABLED=trueagents can store, move and delete media files, but the server does not return attachment contents to the model.Deep links depend on the client. Obsidian
obsidian://deep links are included in every tool response. They work on Claude Mobile and in browsers, but some clients (Claude Desktop) may not render them as clickable links.Node 22+ required.
Setup script requires bash. The
deploy/setup.shscript works on macOS and Linux. On Windows, use WSL or Git Bash.
Safety
This server gives an AI agent read/write access to your Obsidian vault.
Agents can modify and delete notes. Keep backups. Use tool approval deliberately.
Authentication is optional. Always set MCP_AUTH_TOKEN when exposing to the internet.
Use HTTPS in production. Use a tunnel or deploy behind a reverse proxy.
Don't leave LOG_LEVEL=debug on in production. Debug logging records every tool call's arguments, including note contents, and full error stacks. Credentials embedded in COUCHDB_URL are redacted from logs at every level.
This software is provided as-is under the MIT license. You are responsible for what agents do with your vault.
Development
git clone --recursive https://github.com/es617/obsidian-sync-mcp.git
cd obsidian-sync-mcp
npm install && npm run build
npm test # unit tests
npm run test:e2e # integration tests
npm run test:couchdb # CouchDB harness (needs a throwaway CouchDB on localhost:5985)
npm run test:smoke # full smoke test: built server over MCP against CouchDB, all vault configurationsThe CouchDB tests drop and recreate their own databases, so never point them at a real vault. Start a throwaway CouchDB with docker run -d -p 5985:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=test couchdb:3. Set TEST_PATH_NORMALIZATION=legacy to run the harness on legacy path identity.
Releasing
Commit the version bump to main:
package.json,package-lock.json,server.json, and a## <version>section inCHANGELOG.md.Either push a
v<version>tag, or run the Release workflow (Actions → Release → Run workflow, which also works from a phone browser). The workflow checks the versions match, waits for CI on main's latest commit to pass, creates the tag and starts CI/CD on it, which publishes the GitHub release, the npm package and the Docker image.
License
MIT — see LICENSE.
Acknowledgements
Self-hosted LiveSync by vrtmrz — the Obsidian plugin and CouchDB sync protocol
livesync-commonlib by vrtmrz — the shared library for reading/writing the LiveSync document format
FastMCP — TypeScript MCP framework
CouchDB — document database
Fly.io — deployment platform
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Cloud-hosted MCP server for durable AI memory
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseAqualityAmaintenanceStandalone MCP server for Obsidian vaults - hybrid search (FTS5 + vector + reranking), files in agent-readable form (images, PDFs, canvases, HTML, scripts, data files), Kanban-aware tasks (Tasks-plugin + Dataview formats), structured memory with topic recall, fine-grained read/write tools, and link graph support. Run locally, self-host, or one-click deploy for remote access. OAuth 2.1.163541MIT
- AlicenseNot gradedqualityDmaintenanceAn Obsidian plugin that runs an MCP server, enabling AI agents to read, edit, search notes, and run Dataview queries in your vault.3BSD Zero Clause
- AlicenseNot gradedqualityAmaintenanceBuilt-in MCP server that gives AI agents direct access to an Obsidian vault for reading, writing, searching notes, and executing commands.3,206MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read and search your Obsidian vault through a local MCP server, keeping everything private and local.Apache 2.0