Skip to main content
Glama
obsidian-mcp-complete

obsidian-mcp-complete

by jagoff

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

OBSIDIAN_VAULT_PATH

—

Single vault path

OBSIDIAN_VAULTS

—

name=path,name2=path2 pairs

OBSIDIAN_DEFAULT_VAULT

first vault

Vault used when tool call omits vault

OBSIDIAN_READ_ONLY

0

Set to 1 to disable all writes

OBSIDIAN_ENABLE_DELETE

0

Set to 1 to allow delete operations

OBSIDIAN_MAX_SEARCH_RESULTS

50

Max results from search tools

OBSIDIAN_MCP_PRETTY

0

Pretty-print JSON responses

OBSIDIAN_RAG_COMMAND

rag

Path/command for obsidian-rag CLI

OBSIDIAN_API_KEY

—

Obsidian Local REST API key

OBSIDIAN_REST_URL

https://127.0.0.1:27124

Obsidian Local REST API URL

OBSIDIAN_REST_INSECURE_TLS

0

Skip TLS verification for local REST

OBSIDIAN_ENABLE_COMMANDS

0

Enable command-palette tools

OBSIDIAN_ENABLE_UI_OPEN

0

Allow open obsidian:// system call

OBSIDIAN_DAILY_FOLDER

00-Inbox

Folder for daily notes

OBSIDIAN_DAILY_PATTERN

YYYY-MM-DD.md

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 exposed

  • Writes are atomic (write to temp + rename)

  • Delete is opt-in (OBSIDIAN_ENABLE_DELETE=1) and requires explicit confirmation field

  • Read-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 test

Smoke 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.0

Requires NPM_TOKEN secret set in the GitHub repo settings.


Inspired by

  • @bitbonsai/mcpvault — direct vault access without plugins

  • cyanheads/obsidian-mcp-server — surgical frontmatter editing

  • yanxue06/obsidian-mcp and aaronsb/obsidian-mcp-plugin — graph, backlinks, daily notes, batch ops

Available Tools

66 tools
obsidian_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_readA
Read-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_activeA
Destructive

Delete the active note through Local REST API. Commands/delete must be explicitly enabled by configuration.

Inputs: confirmation (required).

obsidian_delete_folderA
Destructive

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_noteA
Destructive

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_notesB
Read-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_commandA
Destructive

Execute an Obsidian command-palette command by id. Opt-in with OBSIDIAN_ENABLE_COMMANDS=1.

Inputs: commandId (required).

obsidian_find_orphansC
Read-only

Find notes with no backlinks, no outgoing links, or neither.

Inputs: vault, mode, limit, offset.

obsidian_get_activeB
Read-only

Read the note currently active in the Obsidian UI through Local REST API.

Inputs: no named parameters.

obsidian_get_frontmatterB
Read-only

Read YAML frontmatter from a note.

Inputs: path (required), vault.

obsidian_graph_statsA
Read-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_list_attachmentsA
Read-only

List non-Markdown files, useful for images, PDFs, audio, and other embedded assets.

Inputs: vault, folder, extension, limit.

obsidian_list_commandsA
Read-only

List Obsidian command-palette commands through Local REST API.

Inputs: no named parameters.

obsidian_list_filesA
Read-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_tagsB
Read-only

List all tags across the vault with usage counts and sample notes.

Inputs: vault, nameRegex, sampleLimit, limit, +1 more.

obsidian_list_tasksA
Read-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_vaultsA
Read-only

List configured Obsidian vaults.

Inputs: no named parameters.

obsidian_manage_tagsA
Idempotent

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_uriA
Read-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_activeC
Destructive

Replace the currently active note body through Local REST API.

Inputs: content (required).

obsidian_query_notesB
Read-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_queryB
Read-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_manyB
Read-only

Read multiple notes in one call, optionally truncating content per note.

Inputs: paths (required), vault, maxChars, format.

obsidian_read_noteA
Read-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_notesB
Read-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_statusB
Read-only

Check the optional Obsidian Local REST API bridge status.

Inputs: no named parameters.

obsidian_search_dataviewC
Read-only

Run a Dataview DQL query through the Obsidian Local REST API search endpoint.

Inputs: query (required), timeoutMs.

obsidian_search_jsonlogicB
Read-only

Run a JSONLogic query through the Obsidian Local REST API search endpoint.

Inputs: query (required), timeoutMs.

obsidian_search_pathsB
Read-only

Search filenames and vault-relative paths without reading full note bodies.

Inputs: query (required), vault, extension, limit.

obsidian_shortest_pathB
Read-only

Find a shortest graph path between two notes.

Inputs: from (required), to (required), vault, maxDepth, +1 more.

obsidian_statusA
Read-only

Return server configuration, vault roots, write safety flags, and tool capability summary.

Inputs: no named parameters.

obsidian_traverse_graphB
Read-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_frontmatterB
Idempotent

Set, merge, replace, or delete frontmatter keys in a note.

Inputs: path (required), action (required), vault, values, +1 more.

obsidian_update_taskB
Idempotent

Update one Markdown task by note path and 1-based line number.

Inputs: path (required), line (required), vault, checked, +2 more.

obsidian_upsert_noteB
Idempotent

Create or replace a note. Can merge supplied frontmatter with existing frontmatter.

Inputs: path (required), vault, content, frontmatter, +1 more.

obsidian_vault_graphB
Read-only

Export the vault link graph as nodes, edges, and adjacency lists.

Inputs: vault, includeUnresolved, limit.

obsidian_vault_statsB
Read-only

Return vault totals, file extensions, top folders, word-count sample, and graph health.

Inputs: vault, top.

obsidian_vault_suggestA
Read-only

Suggest vault reorganization actions: MOCs, consolidation, archive candidates, and missing tags.

Inputs: vault, staleDays, maxSuggestions.

obsidian_vault_themesC
Read-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

    B3.4/5.0

    Scored across 66 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    All tools follow the consistent pattern 'obsidian_verb_noun' using snake_case, which is predictable and easy to navigate.

    Tool Count3/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP 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.
      40
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for interacting with Obsidian via the Local REST API, enabling file operations, search, and content editing in your vault.
      MIT