Obsidian MCP

Obsidian MCP

obsidian-mcp•bystevenstavrakis

A local Model Context Protocol server that lets MCP-compatible assistants safely read and modify explicitly configured Obsidian vaults.

License: MIT•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Provides tools to read, create, edit, move, and delete notes inside allowlisted vaults, with transactional mutations and revision conflict checks.
  • •Searches vault content, filenames, or tags with bounded cursor pagination.
  • •Manages tags across the vault, including adding, removing, renaming, and unified add/remove workflows.
  • •Moves or renames notes while updating unambiguous backlinks transactionally.

BEST FOR

  • •Assistants that need to read or edit notes in one or more local Obsidian vaults without opening Obsidian.
  • •Workflows that need safe, conflict-aware edits to concurrently changing notes.
  • •Recovering vault changes through retained transaction snapshots.

ABOUT OBSIDIAN-MCP

Obsidian MCP is cataloged as an MCP server attributed to stevenstavrakis. A local Model Context Protocol server that lets MCP-compatible assistants safely read and modify explicitly configured Obsidian vaults. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Obsidian MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can deleted notes be recovered?

Trash is the default; deleted note bytes and metadata are stored separately under .obsidian-mcp/trash, but permanent deletion snapshots are purged after commit and cannot be restored.

Does the server need network access or send telemetry?

No. The server never listens on a network interface or sends telemetry.

Upstream README

View this exact version on GitHub

README.md · bd900974adc6 · Fetched 2026-11-13 09:38:36 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Obsidian MCP

A local Model Context Protocol server that lets MCP-compatible assistants safely read and modify explicitly configured Obsidian vaults.

Version 2 supports both MCP 2026-07-28 and 2025-era clients by default, and requires Node.js 22 or newer. It works directly with Markdown files, so Obsidian does not need to be open. Legacy protocol and v1 positional-path compatibility are deprecated and print exact migration instructions to stderr.

[!IMPORTANT] MCP clients can invoke destructive tools. Back up important vaults, review client permission prompts, and use revision preconditions for concurrently edited notes.

Quick start

Node.js 22 or newer is required:

node --version # v22 or newer

Run with npx without installing the package globally. Pinning the major version receives compatible 2.x updates without automatically crossing a future major version:

npx -y obsidian-mcp@2 serve --vault notes=/absolute/path/to/vault

Configure an MCP client to launch the same command over stdio:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "obsidian-mcp@2", "serve", "--vault", "notes=/absolute/path/to/vault"]
    }
  }
}

Alternatively, install the package globally and use "command": "obsidian-mcp" with the same arguments beginning at "serve":

npm install -g obsidian-mcp@2

Each vault must already contain an .obsidian directory and must be configured using an absolute path.

Both protocol eras are served from the same tool definitions. After confirming that your MCP client negotiates 2026-07-28, you may opt into modern-only mode by adding "--legacy", "reject" to args.

Vault ids use lowercase letters, digits, _, and -, must begin with a letter, and are the values assistants pass to tools. Up to ten vaults may be configured. Repeat --vault to expose more than one vault:

obsidian-mcp serve \
  --vault work=/Users/me/Documents/WorkVault \
  --vault personal=/Users/me/Documents/PersonalVault

Network, removable, hidden, and synced locations are allowed because an explicit --vault is treated as authorization; the same containment protections apply to every location.

Design principles

  • Vault access is explicitly allowlisted at process startup.
  • Every tool path is vault-relative, segment-checked, and blocked from symlinks and reserved state.
  • File mutations are journaled, conflict-checked, atomically replaced, and rolled back as one transaction.
  • The server never listens on a network interface or sends telemetry.
  • stdout is reserved exclusively for MCP messages; structured diagnostics go to stderr.
  • Results are bounded, paginated where appropriate, and available as both text and structured content.

Tools

ToolPurpose
obsidian_list_vaultsList configured vault ids without exposing host paths.
obsidian_read_noteRead a bounded page of a note and return its SHA-256 etag.
obsidian_create_noteAtomically create a note without overwriting.
obsidian_edit_noteAppend, prepend, or replace exact note content.
obsidian_delete_noteMove a note to MCP trash or permanently delete it with explicit confirmation.
obsidian_move_noteMove or rename a note and update unambiguous backlinks transactionally.
obsidian_create_directoryTransactionally create a directory inside a vault.
obsidian_search_vaultSearch content, filenames, or tags with bounded cursor pagination.
obsidian_add_tagsAdd tags to one or more notes atomically.
obsidian_remove_tagsRemove exact, nested, or wildcard-selected tags atomically.
obsidian_rename_tagRename a tag across the vault atomically.
obsidian_manage_tagsUnified add/remove tag workflow using the same implementation.

All schemas are strict JSON Schema 2020-12 contracts generated from Zod. Mutating results include a transaction id; tool failures return isError: true with an actionable error code.

Reading and concurrency

obsidian_read_note returns an etag. Pass it as if_match to edit, move, or delete when avoiding lost updates matters. Batch tag operations accept an expected_etags map. A changed note returns REVISION_CONFLICT rather than being overwritten.

Large notes are paginated using an opaque cursor bound to the path and etag. Search uses an opaque cursor bound to the query and options. Tool text responses are capped at 25,000 characters.

Deletion and recovery

Trash is the default. Deleted note bytes and metadata are stored separately under .obsidian-mcp/trash; metadata is never injected into the note. Permanent deletion requires confirm_path to exactly match the canonical relative path.

Transactions and recovery snapshots live in .obsidian-mcp/transactions. Completed data is retained for 30 days and pruned oldest-first above 1 GiB by default:

obsidian-mcp serve --vault work=/path \
  --recovery-days 14 \
  --recovery-max-bytes 536870912

Inspect or restore a completed transaction while the MCP server is stopped:

obsidian-mcp recovery list --vault work=/path
obsidian-mcp recovery restore --vault work=/path --id <transaction-id>

Recovery refuses to overwrite content changed since the selected transaction. Permanent deletion snapshots are purged after commit and cannot be restored.

Path and filesystem safety

The server:

  • canonicalizes configured vault roots and rejects duplicate or nested roots;
  • rejects absolute, UNC, Windows-drive, NUL, backslash, empty, and dot-segment tool paths;
  • reserves .obsidian, .obsidian-mcp, .git, .backup, and .trash from tool access;
  • checks existing targets and the nearest existing ancestor for new targets;
  • rejects symlinks, junctions, and reparse-point paths, and skips them during scans;
  • performs no shell execution for filesystem validation;
  • strictly decodes UTF-8 and does not silently replace invalid bytes.

The process needs read and write access to each configured vault. obsidian-mcp doctor --vault id=/path validates startup readiness and recovery state.

Moves recognize Obsidian Wikilinks, embeds, Markdown links, aliases, URL-encoded destinations, headings, and block anchors. A link is rewritten only when it resolves unambiguously to the source note; ambiguous links are reported and left unchanged. Deletion preserves backlinks unless backlink_action: "mark_broken" is requested.

Tags follow Obsidian's case-insensitive rules and support Unicode, emoji, _, -, /, and nested tags. Frontmatter tags are written as YAML lists. Inline tag processing ignores fenced/inline code and HTML comments. Wildcards use a bounded matcher rather than regular expressions.

Development

npm ci
npm run typecheck
npm test
npm run build
npm run ci

Each tool owns a typed definition under src/tools/<tool>/index.ts; the small registry in src/tools/index.ts applies shared MCP registration and response behavior. Filesystem, transaction, Markdown, link, and search behavior live in reusable utilities. A new tool must use VaultFs for every path, TransactionManager for mutations, strict input/output schemas, structured results, annotations, and security/integration tests.

See MIGRATING.md for the 1.x migration and SECURITY.md for vulnerability reporting.

Startup errors and compatibility warnings are written only to stderr with a stable code, the detected problem, an exact fix, a verification step, and a link to the matching migration section. If the server does not appear, find the code in the MCP client logs and use the diagnostic reference.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Obsidian MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/obsidian-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation