obsidian-mcp
obsidian-mcp
Gib Claude (und jedem MCP-Client) echten Agenten-Zugriff auf deinen Obsidian-Vault — Graph-Traversierung, Dataview-Abfragen, Bewusstsein für tägliche Notizen und mehr.
Installieren · Tools · Prompts zum Ausprobieren · Vergleich · FAQ
Die meisten Obsidian-MCP-Server stellen
read_fileundwrite_filebereit und das war es. Dieser hier behandelt deinen Vault als Wissensgraph — dein LLM erhält Backlinks, Forward-Links, Dataview-Abfragen, tägliche Notizen und Multi-Hop-Graph-Traversierung in einem einzigen Aufruf.
Warum
Du hast Claude Desktop geöffnet, es gebeten, Verbindungen in deinen Notizen zu finden, und zugesehen, wie es sich per read_file Notiz für Notiz durch deinen Vault gearbeitet hat. So denken Obsidian-Nutzer nicht über ihre Notizen nach. Der Graph ist der Wert — Backlinks, transitive Verbindungen, Tags, Dataview-typisierte Metadaten. Dieser Server stellt all das als erstklassige Tools bereit.
Related MCP server: obsidian-mcp-server
Installieren
Du benötigst das Plugin Local REST API in Obsidian. Installiere es über die Community-Plugins, aktiviere es und kopiere den API-Schlüssel aus den Einstellungen.
Claude Desktop
Füge dies zu ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) oder %APPDATA%\Claude\claude_desktop_config.json (Windows) hinzu:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp"],
"env": {
"OBSIDIAN_API_KEY": "paste-your-key-here"
}
}
}
}Starte Claude Desktop neu. Fertig.
Claude Code
claude mcp add obsidian -e OBSIDIAN_API_KEY=paste-your-key-here -- npx -y obsidian-mcpCursor / Cline / Continue / Zed
Jeder MCP-kompatible Client funktioniert. Verweise ihn auf npx -y obsidian-mcp mit OBSIDIAN_API_KEY in der Umgebung.
Aus dem Quellcode
git clone https://github.com/yanxue06/obsidian-mcp.git
cd obsidian-mcp
npm install
npm run build
OBSIDIAN_API_KEY=... node dist/index.jsPrompts zum Ausprobieren
Gib diese in Claude Desktop ein, während der Server verbunden ist:
Erstelle mir eine Inhaltsübersicht (MOC) für alles, was ich über verteilte Systeme geschrieben habe. Verwende
traverse_graphvon "Distributed systems.md" mit Tiefe 2, gruppiere die Nachbarn thematisch und schreibe die MOC in "MOCs/Distributed systems MOC.md".
Finde jede Notiz mit dem Tag
#project, bei derstatus != "done"ist und das Fälligkeitsdatum in dieser Woche liegt. Verwendequery_dataview.
Was steht heute in meiner täglichen Notiz? Gibt es etwas, bei dem ich vergessen habe, von der gestrigen Notiz aus nachzufassen?
Finde alle meine verwaisten Notizen in
Inbox/. Schlage für jede basierend auf ihrem Inhalt und vorhandenen Tags vor, wo sie hingehört.
Ich benenne "Atomic notes.md" in "Evergreen notes.md" um. Finde jede Notiz, die darauf verlinkt, und sage mir, welche ich aktualisieren müsste.
Durchlaufe den Graphen 2 Hops weit von "Working memory.md" aus und sage mir, welche Notizen für mein Denken über Aufmerksamkeit am zentralsten sind.
Tools
Insgesamt 15 Tools. Die differenzierten sind fett gedruckt.
Lesen
Tool | Was es tut |
| Notizinhalt plus Graph-Kontext — Backlinks, Forward-Links, Tags, Frontmatter — in einem Aufruf. |
| Die Notiz, die aktuell in Obsidian fokussiert ist. |
| Die heutige tägliche / wöchentliche / monatliche / vierteljährliche / jährliche Notiz. |
| Alle Dateien (oder Dateien in einem Ordner), standardmäßig nur Markdown. |
Suche & Graph
Tool | Was es tut |
| Volltext- oder |
| Führe eine Dataview DQL-Abfrage aus. Erfordert das Dataview-Plugin. |
| Durchlaufe N Hops von einer Notiz aus (vorwärts, rückwärts oder beides). Gibt Knoten + Kanten zurück. |
| Notizen ohne eingehende Links — vergessene Ideen, Kandidaten für Aufräumarbeiten. |
| Wiki-Links, die nicht aufgelöst werden können. Führe dies vor Massenumbenennungen aus. |
Schreiben
Tool | Was es tut |
| Neue Notiz, mit optionalem Frontmatter und einem automatisch generierten |
| Ersetze den vollständigen Inhalt einer Notiz. |
| Hänge Markdown an das Ende einer Notiz an. |
| Häufiges Muster: Agent protokolliert, was er in der heutigen täglichen Notiz getan hat. |
| Füge Inhalt unter einer bestimmten Überschrift, einem Block oder einem Frontmatter-Feld ein — ohne den Rest neu zu schreiben. |
| Destruktiv — nur verwenden, wenn explizit angefordert. |
Vergleich
obsidian-mcp | Andere Obsidian-MCP-Server | Obsidian Copilot (Plugin) | |
Backlinks in einem Aufruf | ja | nein | ja |
Multi-Hop-Graph-Traversierung | ja | nein | nein |
Dataview DQL-Durchleitung | ja | nein | teilweise |
Tägliche / periodische Notizen | ja | nein | nein |
Patch unter Überschrift / Block | ja | nein | nein |
Verwaiste / defekte Links finden | ja | nein | nein |
Funktioniert mit jedem MCP-Client | ja | ja | nein (nur Obsidian) |
Erfordert Obsidian-Plugin-Installation | nur Local REST API | nur Local REST API | ja |
Konfiguration
Die gesamte Konfiguration erfolgt über Umgebungsvariablen — setze diese in deiner MCP-Client-Konfiguration.
Variable | Erforderlich | Standard | Hinweise |
| ja | — | Aus den Einstellungen des Local REST API-Plugins. |
| nein |
| |
| nein |
| |
| nein |
| Das Plugin verwendet standardmäßig HTTPS mit einem selbstsignierten Zertifikat. |
| nein |
| Auf |
| nein |
| Timeout pro Anfrage. |
Funktionsweise
┌──────────────┐ stdio (MCP) ┌──────────────┐ HTTPS ┌──────────────────┐
│ Claude / IDE │ ───────────────────► │ obsidian-mcp │ ───────────► │ Local REST API │ ──► Vault
└──────────────┘ └──────────────┘ │ (Obsidian plugin)│
└──────────────────┘obsidian-mcp ist eine dünne Schicht über dem Local REST API-Plugin. Das Plugin betreibt einen HTTPS-Server innerhalb von Obsidian mit vollem Vault-Zugriff; dieser Server adaptiert diese Oberfläche in das MCP-Protokoll und fügt graph-bewusste Tools hinzu, die die REST-API von Obsidian nicht direkt bereitstellt (Backlinks, Multi-Hop-Traversierung, Erkennung verwaister Notizen).
Alles ist lokal. Keine Daten verlassen deinen Rechner, außer den Anfragen, die dein MCP-Client an seinen Modellanbieter stellt — und das kontrollierst du.
FAQ
Muss ich ein Obsidian-Plugin installieren? Ja — das Local REST API-Plugin. Es ist der einzige vernünftige Weg, von außen mit einem laufenden Vault zu kommunizieren. Sobald es installiert ist, läuft obsidian-mcp selbst als separater Node-Prozess, der von deinem MCP-Client gestartet wird; du installierst dafür kein weiteres Plugin in Obsidian.
Funktioniert es, wenn Obsidian geschlossen ist? Nein. Die Local REST API läuft innerhalb von Obsidian, daher muss die App geöffnet sein.
Werden mehrere Vaults unterstützt? Eine Serverinstanz verweist auf eine laufende Obsidian-Instanz. Starte mehrere MCP-Server-Einträge (verschiedene Namen + verschiedene Ports), wenn du häufig zwischen Vaults wechselst.
Warum standardmäßig HTTPS mit OBSIDIAN_VERIFY_TLS=false? Das Plugin liefert ein selbstsigniertes Zertifikat mit. Der Datenverkehr ist nur Loopback (127.0.0.1), daher bietet die Verifizierung Reibung ohne echten Sicherheitsgewinn. Wenn du das Zertifikat ersetzt hast, setze das Flag.
Ist das sicher? Der MCP-Server gibt dem Modell den Zugriff, den der API-Schlüssel gewährt. Alles, was das Modell löschen darf, kann es löschen. Behandle es wie jeden Agenten mit Dateischreibzugriff — überprüfe, was er tun wird, besonders vor Massenoperationen.
Roadmap
[ ] Einbettungsbasierte semantische Suche (derzeit nur Schlüsselwortsuche über das Plugin)
[ ] Workspace-Wechsel / Multi-Vault-Routing
[ ] Schreibgeschützter Sicherheitsmodus (keine Schreib-Tools registriert)
[ ] Ressourcen-Abonnements (Push-Updates, wenn sich Notizen ändern)
[ ] Smithery / mcp-get Registry-Einreichung
PRs sind willkommen. Siehe CONTRIBUTING.md.
Danksagungen
Local REST API von @coddingtonbear — dieses gesamte Projekt basiert darauf.
Das Model Context Protocol-Team bei Anthropic.
Lizenz
MIT — siehe LICENSE.
Available Tools
25 toolsappend_to_daily_noteAppend to daily noteB
Append markdown to the current daily (or weekly/etc.) note. Common pattern: agent logs what it just did at the end of the day.
Inputs: content (required), period.
append_to_noteAppend to a noteA
Append markdown to the end of an existing note. Creates the note if it doesn't exist.
Inputs: path (required), content (required).
create_noteCreate a noteA
Create a new note (fails if it already exists unless overwrite is true). Frontmatter is rendered as YAML. Use links to append a wiki-link section at the end. For creating many notes in one call, use create_notes. For idempotent create-or-update writes, use upsert_note.
Inputs: path (required), content, frontmatter, links, +1 more.
create_notesCreate multiple notes in one callA
Create many notes in a single tool call. Designed for bootstrapping a knowledge graph (MOC + topical notes) without paying N round-trips. Each entry follows the same schema as create_note. Per-note errors are reported individually; pass stop_on_error: true to abort on the first failure. Within a batch, later entries also fail if they target a path already created earlier in the same call.
Inputs: notes (required), stop_on_error.
delete_noteDelete a noteA
Delete a note from the vault. Destructive — only call when the user has explicitly asked to remove a file.
Inputs: path (required).
find_broken_linksFind broken linksB
Find wiki-links and markdown links that don't resolve to any note in the vault. Use for vault hygiene or before refactoring note titles.
Inputs: folder, limit, sample_size.
find_orphansFind orphan notesB
Find notes with no incoming links anywhere in the vault. Use to surface forgotten ideas or candidates for cleanup.
Inputs: folder, limit, sample_size.
get_active_noteGet currently open noteA
Return the note the user currently has focused in Obsidian. Useful for 'what am I looking at' style prompts.
Inputs: no named parameters.
get_backlinksGet notes that link to a noteA
Return notes that link to the given path, with snippets. Same data as the backlinks field of get_note — use this when that's all you need.
Inputs: path (required), limit.
get_daily_noteGet daily / periodic noteA
Fetch the user's current daily (or weekly/monthly/etc.) note. Returns content + frontmatter + tags. Requires the Periodic Notes or Daily Notes plugin in the vault.
Inputs: period.
get_noteGet note with graph contextA
Get a note's content plus its graph context: backlinks (who links to it), forward links (who it links to), tags, and frontmatter. Use the include array to control which context is fetched — backlinks are O(vault size) so omit them when unneeded.
Inputs: path (required), include, backlinks_limit.
get_outlineGet a note's heading outlineA
Return the heading structure of a note (level + text + line number). Use this instead of get_note when you only need to navigate to a section of a long note — it's much smaller in tokens.
Inputs: path (required).
get_vault_statsGet vault statisticsA
Get high-level stats about the vault: total notes, total words (sampled), top folders, file extensions. Useful for 'how big is my vault?' / 'where do I write the most?' prompts.
Inputs: sample_size, top_folders.
list_commandsList Obsidian commandsA
List every registered Obsidian command (built-in + plugin) with its id and human name. Use this before run_command to discover what's available — vaults differ based on installed plugins.
Inputs: filter, limit.
list_tagsList all tags in the vaultA
Return every tag used in the vault, with usage counts and a sample of notes per tag. Useful for 'what topics do I write about most?' or as a starting point for organizing.
Inputs: sample_size, min_count, sample_notes_per_tag.
list_vaultList vault filesB
List all files in the Obsidian vault. Use folder to scope to a subdirectory and markdown_only to filter to notes. Prefer this over guessing paths.
Inputs: folder, markdown_only, limit.
move_noteMove or rename a note (with backlink updates)A
Move a note from one path to another, optionally rewriting wiki-links so backlinks keep working. This is the safe way to rename notes — agents should not naively delete + create because that breaks the graph.
Inputs: from (required), to (required), update_backlinks, overwrite.
open_noteOpen a note in Obsidian's UIA
Surface a note in Obsidian's workspace (focuses an existing tab or opens a new one). Great for ending an agent task with 'and here's the result for you to review'.
Inputs: path (required), new_leaf.
patch_noteInsert content at a heading or blockA
Insert content relative to a heading, block reference, or frontmatter field — without rewriting the whole note. Example: append a bullet under '## Tasks' without touching the rest of the page.
Inputs: path (required), content (required), operation (required), target_type (required), +1 more.
query_dataviewRun a Dataview DQL queryA
Run a Dataview DQL query (LIST / TABLE / TASK) against the vault. Requires the Dataview plugin installed in the vault. Powerful for structured questions like 'all notes tagged #project where status != done sorted by due date'.
Inputs: dql (required).
run_commandRun an Obsidian commandA
Execute an Obsidian command by id (e.g. 'editor:toggle-bold', 'app:reload', 'graph:open'). Discover ids with list_commands. This is powerful — it lets the agent trigger any plugin action — so use only commands the user has approved.
Inputs: id (required).
search_vaultSearch the vaultA
Full-text search across all notes. Supports two modes: keyword (fast plain-text) and tag (find notes tagged with #X). For structured queries, use query_dataview.
Inputs: query (required), mode, context_length, limit.
traverse_graphTraverse the vault graphA
Walk the link graph starting from a note. Returns nodes (notes) and edges (links) up to depth hops away. Use direction=both for a neighborhood, forward for what a note depends on, backward for what depends on it. Cap with max_nodes on large vaults.
Inputs: start (required), depth, direction, max_nodes, +1 more.
update_noteReplace a note's contentA
Overwrite a note's full content. Prefer append_to_note or patch_note when only adding to a note — replacing wholesale is destructive.
Inputs: path (required), content (required).
upsert_noteCreate or update a noteA
Create a note if missing, replace it if it exists. Body is always fully replaced. Frontmatter is replaced by default; pass merge_frontmatter: true to keep existing frontmatter keys not specified in this call. Use this when you want an idempotent write — neither create_note (errors on existence) nor update_note (errors when missing) handle that on their own.
Inputs: path (required), content, frontmatter, links, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools target distinct actions, but there is slight overlap between get_note and get_backlinks (backlinks are also in get_note context) and between create_note, update_note, and upsert_note. However, clear descriptions mitigate confusion.
All tool names follow a consistent snake_case pattern with verb_noun structure (e.g., append_to_note, find_broken_links, list_tags). No mixed conventions or vague verbs.
25 tools is at the upper bound but justified for a comprehensive Obsidian MCP server covering notes, vault management, graph navigation, and plugin integration. Each tool earns its place.
Covers CRUD for notes, batch operations, vault statistics, search, graph analysis, and plugin commands. Minor gap: no dedicated tool to create a daily note (append assumes existing) or manage folders.
Maintenance
Related MCP Connectors
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseAqualityAmaintenanceStandalone MCP server for Obsidian vaults - hybrid search (FTS5 + vector + reranking), files in agent-readable form (images, PDFs, canvases, HTML, scripts, data files), Kanban-aware tasks (Tasks-plugin + Dataview formats), structured memory with topic recall, fine-grained read/write tools, and link graph support. Run locally, self-host, or one-click deploy for remote access. OAuth 2.1.163539MIT
- AlicenseNot gradedqualityDmaintenanceConnects Claude.ai to your local Obsidian vault for full CRUD access, search, and daily note creation via the Model Context Protocol.14MIT
- AlicenseAqualityCmaintenanceA local MCP connector that lets Claude read, write and search any Obsidian vault directly from disk.20MIT
- FlicenseDqualityDmaintenanceEnables Claude Desktop to securely search and retrieve knowledge from an Obsidian vault through a stateless MCP interface, with progressive disclosure and gated write capabilities.13-