Obsidian MCP Server logo

Obsidian MCP Server

Read, search, edit, tag, and manage Obsidian vault notes through MCP and the Local REST API plugin.

Install Obsidian MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-mcp-server"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "YOUR_VALUE_HERE",
        "OBSIDIAN_ENABLE_COMMANDS": "YOUR_VALUE_HERE",
        "OBSIDIAN_READ_PATHS": "YOUR_VALUE_HERE",
        "OBSIDIAN_DENY_PATHS": "YOUR_VALUE_HERE",
        "OBSIDIAN_DELETE_ELICITATION": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

obsidian-mcp-server connects MCP clients to an Obsidian vault through the Local REST API plugin. It supports note reading, recursive listing, text and JSONLogic search, Omnisearch queries, targeted edits, frontmatter and tag management, deletion, and opening files in Obsidian. The server runs over STDIO or Streamable HTTP and includes vault, tag, and status resources. Use it when an agent needs controlled access to structured Obsidian notes rather than file-only operations.

Use cases

  • Read and summarize notes from an Obsidian vault
  • Search notes by text, metadata, or tags
  • Update headings, blocks, and frontmatter fields
  • Create and append to project or daily notes
  • Run approved Obsidian command-palette actions

Key features

  • Structured note reads and section targeting
  • Text, JSONLogic, and Omnisearch queries
  • Frontmatter and tag management
  • Scoped vault listing and access controls
  • STDIO and Streamable HTTP transports
  • Optional Obsidian command execution

Tools14

What Obsidian MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~330 tokens of context

Security & health

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

ActiveLast checked Today

Recent health check succeeded.

15/15 checks healthy over the last 58d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · obsidian-mcp-server (npm)

Adoption & maintenance

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

GitHub stars702Stargazers on the source repository.
npm downloads23kPackage downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How Obsidian MCP Server works

What obsidian-mcp-server does

obsidian-mcp-server exposes an Obsidian vault to MCP-compatible AI clients. It can read notes as raw content, structured data, document maps, or individual sections; list files and folders; search note content and metadata; and report vault tags with usage counts. Write operations cover creating notes, replacing complete files or selected sections, appending content, patching headings or blocks, and literal or regular-expression replacement.

Frontmatter and tags have dedicated operations. Agents can get, set, or delete frontmatter keys, and add, remove, or list tags in frontmatter, inline content, or both. A note can also be deleted, opened in the Obsidian interface, or targeted through an active or periodic-note reference. Command-palette discovery and execution are available when command support is enabled.

The server also publishes three resources: note data at obsidian://vault/{+path}, vault tag data at obsidian://tags, and connection information at obsidian://status.

How it works

Communication with Obsidian goes through the Local REST API plugin. MCP clients can start the server over STDIO or connect to its Streamable HTTP endpoint. The server exposes fourteen tools and the three resources described above.

Read and write path controls can restrict operations to permitted folders or exclude denied paths. These scopes affect listings, tag results, and search behavior. Searches can use token-based text matching, JSONLogic conditions over note fields, or BM25-ranked Omnisearch when the Omnisearch plugin is reachable at startup. Results support pagination, and large listings or search responses can indicate truncation.

Section-aware operations address headings, block references, and frontmatter fields instead of requiring whole-file replacement. Whole-note writes require explicit overwrite behavior when replacing an existing file, while deletion can require user confirmation through OBSIDIAN_DELETE_ELICITATION.

Setup and configuration

Install the package through an MCP client using the published obsidian-mcp-server package, or use the provided Claude Desktop, Cursor, or VS Code installation links. Configure the connection with the API key used by Obsidian’s Local REST API plugin. The server can then be registered as a STDIO process or used through Streamable HTTP.

Command-palette tools are opt-in through OBSIDIAN_ENABLE_COMMANDS. Folder access can be narrowed with OBSIDIAN_READ_PATHS and OBSIDIAN_DENY_PATHS. Deletion confirmation is controlled with OBSIDIAN_DELETE_ELICITATION.

Tools and capabilities

  • Read notes in content, full, document-map, or section formats.
  • List vault files and folders recursively with extension and name filters.
  • Search using text, JSONLogic, or Omnisearch syntax.
  • Create, overwrite, append to, patch, or search-replace note content.
  • Manage frontmatter fields and note tags.
  • List tags with counts and filters.
  • Delete notes and open files in the Obsidian application.
  • Discover and execute command-palette commands when enabled.

Limitations and notes

Omnisearch is available only when the plugin responds during startup, and its results are capped at the top 50 hits. Listings stop at 1,000 entries, while tag results use a configurable cap. Search and listing results can be truncated by caps, pagination, depth, or access scopes. On case-insensitive filesystems, writes that differ from an existing note only by letter case are rejected rather than creating a second variant.

Reviews

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

Frequently Asked Questions about Obsidian MCP Server

obsidian-mcp-server is an MCP server that connects AI clients to an Obsidian vault through Obsidian's Local REST API plugin. Its tools read, list, search, create, edit, tag, delete, and open notes, manage frontmatter, and optionally inspect or run Obsidian command-palette commands.

Install the published obsidian-mcp-server package through an MCP client and configure the API key for Obsidian’s Local REST API plugin. Installation links are provided for Claude Desktop, Cursor, and VS Code, and the server supports STDIO or Streamable HTTP.

Yes, obsidian-mcp-server works with Cursor. The project provides a Cursor MCP installation link that configures the package command and an Obsidian API key environment variable.

Yes, it can target individual headings, block references, and frontmatter fields. Append, patch, and write operations can modify a selected section while preserving the rest of the note.

Yes, it supports text search and JSONLogic queries, plus BM25-ranked Omnisearch when the Omnisearch plugin is reachable at startup. Searches can use path and metadata conditions, and results support pagination.

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 PreviewObsidian MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/obsidian-mcp-server?style=directory)](https://allmcps.com/mcp/obsidian-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/obsidian-mcp-server"><img src="https://allmcps.com/api/badge/obsidian-mcp-server?style=directory" alt="Obsidian MCP Server on AllMCPs" /></a>