obsidian-mcp-complete
Provides tools for managing Obsidian vaults: reading, writing, searching notes, BM25 smart search, graph traversal, JSON Canvas manipulation, task management, periodic notes, frontmatter editing, batch operations, and optional integration with the Obsidian Local REST API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@obsidian-mcp-complete list all tasks due today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
obsidian-mcp-complete
Local-first MCP server for Obsidian vaults. Works without Obsidian running, no plugins required.
66 tools across: read/write/search notes, BM25 smart search, graph traversal, JSON Canvas, tasks, periodic notes, frontmatter, batch ops, and an optional bridge to the Obsidian Local REST API.
Install
npx (zero install, always latest)
npx obsidian-mcp-complete "/path/to/vault"npm global
npm install -g obsidian-mcp-complete
obsidian-mcp "/path/to/vault"Homebrew
brew tap jagoff/obsidian-mcp
brew install obsidian-mcp
obsidian-mcp "/path/to/vault"Smithery (MCP store)
Search for obsidian-mcp-complete at smithery.ai and configure from the UI.
Related MCP server: obsidian-local-mcp
Configure in Claude Code / Claude Desktop
Add to your ~/.claude/claude_desktop_config.json (Desktop) or ~/.mcp.json (Claude Code):
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp-complete", "/path/to/your/vault"],
"env": {
"OBSIDIAN_MAX_SEARCH_RESULTS": "80"
}
}
}
}Multi-vault with named vaults:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y", "obsidian-mcp-complete",
"notes=/Users/you/Documents/Notes",
"work=/Users/you/Documents/work-vault"
],
"env": {
"OBSIDIAN_DEFAULT_VAULT": "notes",
"OBSIDIAN_MAX_SEARCH_RESULTS": "80"
}
}
}
}Environment variables
Variable | Default | Description |
| — | Single vault path |
| — |
|
| first vault | Vault used when tool call omits |
|
| Set to |
|
| Set to |
|
| Max results from search tools |
|
| Pretty-print JSON responses |
|
| Path/command for obsidian-rag CLI |
| — | Obsidian Local REST API key |
|
| Obsidian Local REST API URL |
|
| Skip TLS verification for local REST |
|
| Enable command-palette tools |
|
| Allow |
|
| Folder for daily notes |
|
| Filename pattern for daily notes |
Tool catalog
Discovery, search, intelligence
obsidian_status · obsidian_list_vaults · obsidian_list_files · obsidian_search · obsidian_smart_search · obsidian_search_paths · obsidian_recent_notes · obsidian_vault_stats · obsidian_rag_query · obsidian_query_notes · obsidian_list_tags · obsidian_graph_stats · obsidian_vault_graph · obsidian_vault_themes · obsidian_vault_suggest · obsidian_diff_notes
Reading
obsidian_read_note · obsidian_read_many · obsidian_get_frontmatter · obsidian_links · obsidian_get_backlinks · obsidian_canvas_read · obsidian_open_uri
Writing
obsidian_create_note · obsidian_upsert_note · obsidian_append_to_note · obsidian_patch_note · obsidian_replace_in_note · obsidian_regex_replace · obsidian_update_frontmatter · obsidian_manage_tags · obsidian_move_note · obsidian_update_links · obsidian_batch_rename · obsidian_delete_note · obsidian_delete_folder · obsidian_prune_empty_dirs · obsidian_batch_create_notes · obsidian_batch · obsidian_update_task · obsidian_daily_note · obsidian_periodic_note · obsidian_apply_template · obsidian_import_attachment · obsidian_write_canvas · obsidian_canvas_create · obsidian_canvas_patch · obsidian_canvas_relayout
Graph
obsidian_traverse_graph · obsidian_shortest_path · obsidian_find_orphans · obsidian_find_broken_links
Tasks and assets
obsidian_list_tasks · obsidian_list_attachments
Obsidian Local REST API (requires plugin + OBSIDIAN_API_KEY)
obsidian_rest_status · obsidian_rest_request · obsidian_get_active · obsidian_post_active · obsidian_put_active · obsidian_patch_active · obsidian_delete_active* · obsidian_list_commands* · obsidian_execute_command* · obsidian_search_dataview · obsidian_search_jsonlogic · obsidian_open_in_ui†
* requires OBSIDIAN_ENABLE_COMMANDS=1 · † requires OBSIDIAN_ENABLE_UI_OPEN=1
Security
Paths are validated and scoped to configured vault roots — traversal and absolute paths are rejected
.obsidian/and.git/directories are never exposedWrites are atomic (write to temp + rename)
Delete is opt-in (
OBSIDIAN_ENABLE_DELETE=1) and requires explicitconfirmationfieldRead-only mode disables all mutations (
OBSIDIAN_READ_ONLY=1)
Development
git clone https://github.com/jagoff/obsidian-mcp
cd obsidian-mcp
npm install
npm run build
npm testSmoke test:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized","params":{}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| node dist/stdio.js "/path/to/vault"Release
Tag a version to trigger the release workflow (CI → npm publish → GitHub Release):
git tag v0.2.0
git push origin v0.2.0Requires NPM_TOKEN secret set in the GitHub repo settings.
Inspired by
@bitbonsai/mcpvault— direct vault access without pluginscyanheads/obsidian-mcp-server— surgical frontmatter editingyanxue06/obsidian-mcpandaaronsb/obsidian-mcp-plugin— graph, backlinks, daily notes, batch ops
Available Tools
66 toolsobsidian_append_to_noteB
Append or prepend Markdown to a note, optionally creating it.
Inputs: path (required), content (required), vault, create, +1 more.
obsidian_apply_templateB
Render a template note into a target note. Replaces {{date}}, {{title}}, {{vault}}, and custom variables.
Inputs: templatePath (required), targetPath (required), vault, variables, +1 more.
obsidian_batchB
Execute multiple filesystem note operations in one call. Operations are best-effort unless stopOnError is true.
Inputs: operations (required), vault, stopOnError.
obsidian_batch_create_notesA
Create many notes in one call. Each item reports success or error independently unless stopOnError is true.
Inputs: notes (required), vault, stopOnError.
obsidian_batch_renameA
Batch move/rename notes with optional incoming link updates. Dry-run by default.
Inputs: moves (required), vault, dryRun, overwrite, +1 more.
obsidian_canvas_createB
Create an Obsidian JSON Canvas from semantic nodes/edges with automatic graph layout.
Inputs: path (required), nodes (required), vault, edges, +2 more.
obsidian_canvas_patchA
Patch a canvas by adding/updating/removing semantic nodes and edges, with optional relayout.
Inputs: path (required), vault, addNodes, addEdges, +5 more.
obsidian_canvas_readARead-only
Read an Obsidian JSON Canvas as a compact semantic graph. Includes node/edge counts and raw arrays. Set includeRaw for full JSON.
Inputs: path (required), vault, includeRaw.
obsidian_canvas_relayoutA
Re-layout an existing JSON Canvas with dagre. Dry-run returns the candidate canvas without writing.
Inputs: path (required), vault, direction, dryRun.
obsidian_create_noteB
Create a new Markdown note with optional frontmatter and related wiki-links.
Inputs: path (required), vault, content, frontmatter, +2 more.
obsidian_daily_noteA
Read, create, upsert, or append to a daily note using configurable date folder/pattern.
Inputs: vault, date, folder, pattern, +3 more.
obsidian_delete_activeADestructive
Delete the active note through Local REST API. Commands/delete must be explicitly enabled by configuration.
Inputs: confirmation (required).
obsidian_delete_folderADestructive
Delete a folder recursively or move it to .trash/mcp. Dry-run by default and confirmation is required for real deletes.
Inputs: folder (required), vault, dryRun, permanent, +1 more.
obsidian_delete_noteADestructive
Move a note to .trash/mcp or permanently delete it. Requires OBSIDIAN_ENABLE_DELETE=1 and confirmation.
Inputs: path (required), confirmation (required), vault, permanent.
obsidian_diff_notesBRead-only
Compare two notes or compare a note with supplied text and return a structured line diff.
Inputs: leftPath (required), vault, rightPath, rightText, +2 more.
obsidian_execute_commandADestructive
Execute an Obsidian command-palette command by id. Opt-in with OBSIDIAN_ENABLE_COMMANDS=1.
Inputs: commandId (required).
obsidian_find_broken_linksCRead-only
List wiki/Markdown links that do not resolve to a note in the vault.
Inputs: vault, limit, offset.
obsidian_find_orphansCRead-only
Find notes with no backlinks, no outgoing links, or neither.
Inputs: vault, mode, limit, offset.
obsidian_get_activeBRead-only
Read the note currently active in the Obsidian UI through Local REST API.
Inputs: no named parameters.
obsidian_get_backlinksARead-only
List notes that link to a target note, with line numbers and raw link targets.
Inputs: path (required), vault.
obsidian_get_frontmatterBRead-only
Read YAML frontmatter from a note.
Inputs: path (required), vault.
obsidian_graph_statsARead-only
Return graph-level stats: node/edge counts, top connected notes, orphans, broken links.
Inputs: vault, top.
obsidian_import_attachmentB
Import a base64-encoded attachment into the vault.
Inputs: path (required), dataBase64 (required), vault, overwrite.
obsidian_linksARead-only
Return outgoing links, backlinks, tags, and frontmatter for one note.
Inputs: path (required), vault.
obsidian_list_attachmentsARead-only
List non-Markdown files, useful for images, PDFs, audio, and other embedded assets.
Inputs: vault, folder, extension, limit.
obsidian_list_commandsARead-only
List Obsidian command-palette commands through Local REST API.
Inputs: no named parameters.
obsidian_list_filesARead-only
List files and folders in a vault folder. Supports recursive walks, max depth, and extension filtering.
Inputs: vault, folder, recursive, maxDepth, +4 more.
obsidian_list_tagsBRead-only
List all tags across the vault with usage counts and sample notes.
Inputs: vault, nameRegex, sampleLimit, limit, +1 more.
obsidian_list_tasksARead-only
List Markdown tasks across the vault with filters for status, tags, folder, and due dates.
Inputs: vault, checked, tag, pathPrefix, +4 more.
obsidian_list_vaultsARead-only
List configured Obsidian vaults.
Inputs: no named parameters.
obsidian_manage_tagsAIdempotent
List, add, remove, or replace frontmatter tags on one note. Inline tags are preserved.
Inputs: path (required), action (required), vault, tags.
obsidian_move_noteA
Move or rename a note. Optionally rewrites incoming wiki-links and Markdown links.
Inputs: from (required), to (required), vault, overwrite, +1 more.
obsidian_open_in_uiA
Open a note in the Obsidian UI via obsidian:// URI. Execution requires OBSIDIAN_ENABLE_UI_OPEN=1.
Inputs: path (required), vault, execute.
obsidian_open_uriARead-only
Build an obsidian://open URI for a note. This does not execute OS commands.
Inputs: path (required), vault.
obsidian_patch_activeB
Patch the active note by heading, block reference, or frontmatter key through Local REST API.
Inputs: targetType (required), target (required), operation (required), content (required).
obsidian_patch_noteB
Patch one heading, block reference, or frontmatter key with append/prepend/replace.
Inputs: path (required), targetType (required), target (required), operation (required), +2 more.
obsidian_periodic_noteB
Read/create/upsert/append daily, weekly, monthly, quarterly, or yearly notes.
Inputs: vault, period, date, folder, +4 more.
obsidian_post_activeB
Append Markdown to the currently active note through Local REST API.
Inputs: content (required).
obsidian_prune_empty_dirsB
Find and optionally remove empty directories bottom-up, skipping .obsidian, .git, and .trash.
Inputs: vault, folder, dryRun, limit.
obsidian_put_activeCDestructive
Replace the currently active note body through Local REST API.
Inputs: content (required).
obsidian_query_notesBRead-only
Structured Dataview-like query over local notes: tags, folders, linksTo, frontmatter equality/regex, sort, limit.
Inputs: vault, tags, folders, linksTo, +5 more.
obsidian_rag_queryBRead-only
Run the local obsidian-rag CLI for true semantic retrieval/LLM answering. Requires rag to be installed and indexed.
Inputs: question (required), k, folder, tag, +7 more.
obsidian_read_manyBRead-only
Read multiple notes in one call, optionally truncating content per note.
Inputs: paths (required), vault, maxChars, format.
obsidian_read_noteARead-only
Read a note as raw content, full structured content, a document map, or one section.
Inputs: path (required), vault, format, sectionType, +2 more.
obsidian_recent_notesBRead-only
List recently modified notes or files, sorted newest first.
Inputs: vault, folder, extension, limit, +1 more.
obsidian_regex_replaceA
Regex or literal find-and-replace across the vault with dry-run previews by default.
Inputs: search (required), replace (required), vault, regex, +6 more.
obsidian_replace_in_noteC
Search and replace inside one note. Supports literal or regex matching and replaceAll.
Inputs: path (required), search (required), replace (required), vault, +3 more.
obsidian_rest_requestB
Escape hatch for Obsidian Local REST API requests. Requires OBSIDIAN_API_KEY.
Inputs: path (required), method, body, contentType, +1 more.
obsidian_rest_statusBRead-only
Check the optional Obsidian Local REST API bridge status.
Inputs: no named parameters.
obsidian_searchARead-only
Search notes by text or regex. Returns ranked snippets and supports tag and folder filters.
Inputs: vault, query, tag, pathPrefix, +6 more.
obsidian_search_dataviewCRead-only
Run a Dataview DQL query through the Obsidian Local REST API search endpoint.
Inputs: query (required), timeoutMs.
obsidian_search_jsonlogicBRead-only
Run a JSONLogic query through the Obsidian Local REST API search endpoint.
Inputs: query (required), timeoutMs.
obsidian_search_pathsBRead-only
Search filenames and vault-relative paths without reading full note bodies.
Inputs: query (required), vault, extension, limit.
obsidian_shortest_pathBRead-only
Find a shortest graph path between two notes.
Inputs: from (required), to (required), vault, maxDepth, +1 more.
obsidian_smart_searchBRead-only
BM25-ranked vault search with title/tag/heading boosting and compact snippets.
Inputs: query (required), vault, contextChars, limit, +1 more.
obsidian_statusARead-only
Return server configuration, vault roots, write safety flags, and tool capability summary.
Inputs: no named parameters.
obsidian_traverse_graphBRead-only
Walk the note graph from a starting note for N hops in forward, backward, or both directions.
Inputs: start (required), vault, depth, direction, +1 more.
obsidian_update_frontmatterBIdempotent
Set, merge, replace, or delete frontmatter keys in a note.
Inputs: path (required), action (required), vault, values, +1 more.
obsidian_update_linksB
Rewrite incoming wiki-links and Markdown links from one target path to another. Dry-run by default.
Inputs: from (required), to (required), vault, dryRun.
obsidian_update_taskBIdempotent
Update one Markdown task by note path and 1-based line number.
Inputs: path (required), line (required), vault, checked, +2 more.
obsidian_upsert_noteBIdempotent
Create or replace a note. Can merge supplied frontmatter with existing frontmatter.
Inputs: path (required), vault, content, frontmatter, +1 more.
obsidian_vault_graphBRead-only
Export the vault link graph as nodes, edges, and adjacency lists.
Inputs: vault, includeUnresolved, limit.
obsidian_vault_statsBRead-only
Return vault totals, file extensions, top folders, word-count sample, and graph health.
Inputs: vault, top.
obsidian_vault_suggestARead-only
Suggest vault reorganization actions: MOCs, consolidation, archive candidates, and missing tags.
Inputs: vault, staleDays, maxSuggestions.
obsidian_vault_themesCRead-only
Map vault themes with TF-IDF-style term extraction and lightweight clustering.
Inputs: vault, limit, minFiles.
obsidian_write_canvasC
Create or overwrite an Obsidian .canvas file from nodes and edges.
Inputs: path (required), vault, nodes, edges, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 66 tools
Most tools have clearly distinct purposes, but the multiple search tools (obsidian_search, obsidian_smart_search, obsidian_rag_query, etc.) and several note manipulation tools could cause confusion for an agent without careful reading of descriptions.
All tools follow the consistent pattern 'obsidian_verb_noun' using snake_case, which is predictable and easy to navigate.
66 tools is a large number, but the scope of Obsidian vault management is broad, covering notes, canvas, search, graph, batch operations, and more. However, some tools may be redundant, making the count feel somewhat heavy.
The tool set comprehensively covers CRUD for notes, canvases, tags, links, attachments, graph traversal, batch operations, and vault analysis. Minor gaps exist, such as no explicit folder creation tool.
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.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Related MCP Servers
- AlicenseAqualityBmaintenanceThe most feature-complete MCP server for Obsidian vaults. 23 tools and 3 resources for search, read, write, tags, link analysis, graph traversal, and canvas support.41121 npm34MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.2MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Obsidian that exposes tools for reading/writing notes, managing frontmatter and tags, querying Tasks, semantic search, and interacting with Obsidian Bases, with shared local caching and support for various runtime modes.40Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for interacting with Obsidian via the Local REST API, enabling file operations, search, and content editing in your vault.MIT