obsidian-mcp-server
by cyanheads·★ 525·Score 52
MCP server for Obsidian vaults with 14 tools for reading, writing, searching, and editing notes, tags, and frontmatter.
Overview
The obsidian-mcp-server provides comprehensive access to Obsidian vaults through 14 tools and 3 resources. It supports reading notes in multiple formats, including raw content, full structured documents, and document maps. The server enables surgical editing through tools like patch, replace, and append operations, with fine-grained control over notes, tags, and frontmatter. It also offers search capabilities with text, Dataview DQL, and JSONLogic modes, making it versatile for different query needs. The server implements robust permission controls through environment variables, allowing path-scoped access and read-only configurations for secure deployments.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need comprehensive, programmatic access to Obsidian vaults for AI integration or automation, especially when working with complex note structures and metadata.
When NOT to choose this
Avoid if you need read/write access to non-Obsidian note-taking systems or if you require authentication/encryption for sensitive data, as this server has no built-in security model.
Tools this server exposes
12 tools extracted from the READMEobsidian_get_noteRead a note in various formats (raw content, structured form, document map, or specific section).
obsidian_list_notesList notes and subdirectories at a vault path with filtering options.
obsidian_list_tagsList all tags found across the vault with usage counts.
obsidian_search_notesSearch the vault by text, Dataview DQL, or JSONLogic with context windows.
obsidian_write_noteCreate a note or replace a specific section, with protection against accidental overwrites.
obsidian_append_to_noteAppend content to a note or create the note if it doesn't exist.
obsidian_patch_noteSurgically edit a specific section of a note (append, prepend, or replace).
obsidian_replace_in_notePerform body-wide search-replace operations in a single note.
obsidian_manage_frontmatterGet, set, or delete frontmatter keys in a note.
obsidian_manage_tagsAdd, remove, or list tags on a note, reconciling frontmatter and inline syntax.
obsidian_delete_notePermanently delete a note with confirmation when supported.
obsidian_open_in_uiOpen a file in the Obsidian app UI.
Comparable tools
Installation
npm install -g obsidian-mcp-serverFor Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "obsidian-mcp-server",
"args": []
}
}
}The server can also run via STDIO or Streamable HTTP.
FAQ
- What is required to use this MCP server?
- The server requires Obsidian with the Local REST API plugin installed. It also needs Node.js or Bun runtime.
- How are file permissions controlled?
- Through environment variables: OBSIDIAN_READ_PATHS, OBSIDIAN_WRITE_PATHS, and OBSIDIAN_READ_ONLY for restricting access to specific vault paths.
Compare obsidian-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.