obsidian-mcp
obsidian-mcp
Proporciona a Claude (y a cualquier cliente MCP) acceso de agente real a tu bóveda de Obsidian: recorrido de grafos, consultas de Dataview, conocimiento de notas diarias y más.
Instalación · Herramientas · Prompts para probar · Cómo se compara · Preguntas frecuentes
La mayoría de los servidores MCP de Obsidian exponen
read_fileywrite_filey ahí terminan. Este trata tu bóveda como un grafo de conocimiento: tu LLM obtiene enlaces inversos, enlaces directos, consultas de Dataview, notas diarias y recorrido de grafos de múltiples saltos en una sola llamada.
Por qué
Abriste Claude Desktop, le pediste que encontrara conexiones en tus notas y lo viste usar read_file a través de tu bóveda, nota por nota. Así no es como los usuarios de Obsidian piensan realmente en sus notas. El grafo es el valor: enlaces inversos, conexiones transitivas, etiquetas, metadatos tipados de Dataview. Este servidor expone todo esto como herramientas de primera clase.
Related MCP server: obsidian-mcp-server
Instalación
Necesitas el plugin Local REST API en Obsidian. Instálalo desde los Plugins de la comunidad, actívalo y copia la clave API de su configuración.
Claude Desktop
Añade esto a ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) o %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp"],
"env": {
"OBSIDIAN_API_KEY": "paste-your-key-here"
}
}
}
}Reinicia Claude Desktop. Ya está.
Claude Code
claude mcp add obsidian -e OBSIDIAN_API_KEY=paste-your-key-here -- npx -y obsidian-mcpCursor / Cline / Continue / Zed
Cualquier cliente compatible con MCP funciona. Apúntalo a npx -y obsidian-mcp con OBSIDIAN_API_KEY en el entorno.
Desde el código fuente
git clone https://github.com/yanxue06/obsidian-mcp.git
cd obsidian-mcp
npm install
npm run build
OBSIDIAN_API_KEY=... node dist/index.jsPrompts para probar
Prueba estos en Claude Desktop con el servidor conectado:
Créame un Mapa de Contenido (MOC) para todo lo que he escrito sobre sistemas distribuidos. Usa
traverse_graphdesde "Distributed systems.md" con una profundidad de 2, luego agrupa los vecinos temáticamente y escribe el MOC enMOCs/Distributed systems MOC.md.
Encuentra todas las notas etiquetadas con
#projectdondestatus != "done"y la fecha de vencimiento sea esta semana. Usaquery_dataview.
¿Qué hay en mi nota diaria de hoy? ¿Hay algo que olvidé seguir de la nota de ayer?
Encuentra todas mis notas huérfanas en
Inbox/. Para cada una, sugiere dónde pertenece según su contenido y las etiquetas existentes.
Voy a renombrar "Atomic notes.md" a "Evergreen notes.md". Encuentra todas las notas que enlazan a ella y dime cuáles tendría que actualizar.
Recorre el grafo 2 saltos desde "Working memory.md" y dime qué notas son las más centrales para mi pensamiento sobre la atención.
Herramientas
15 herramientas en total. Las diferenciadas están en negrita.
Lectura
Herramienta | Qué hace |
| Contenido de la nota más contexto del grafo (enlaces inversos, directos, etiquetas, frontmatter) en una llamada. |
| La nota enfocada actualmente en Obsidian. |
| La nota diaria / semanal / mensual / trimestral / anual de hoy. |
| Todos los archivos (o archivos en una carpeta), solo markdown por defecto. |
Búsqueda y grafo
Herramienta | Qué hace |
| Búsqueda de texto completo o |
| Ejecuta una consulta DQL de Dataview. Requiere el plugin Dataview. |
| Recorre N saltos desde una nota (hacia adelante, atrás o ambos). Devuelve nodos + aristas. |
| Notas sin enlaces entrantes: ideas olvidadas, candidatas para limpieza. |
| Wiki-links que no se resuelven. Ejecuta esto antes de renombrar en masa. |
Escritura
Herramienta | Qué hace |
| Nueva nota, con frontmatter opcional y una sección |
| Reemplaza el contenido completo de una nota. |
| Añade markdown al final de una nota. |
| Patrón común: el agente registra lo que hizo en la nota diaria de hoy. |
| Inserta contenido bajo un encabezado, bloque o campo de frontmatter específico, sin reescribir el resto. |
| Destructiva: solo se usa cuando se solicita explícitamente. |
Cómo se compara
obsidian-mcp | Otros servidores MCP de Obsidian | Obsidian Copilot (plugin) | |
Enlaces inversos en una llamada | sí | no | sí |
Recorrido de grafo de múltiples saltos | sí | no | no |
Paso a través de DQL de Dataview | sí | no | parcial |
Notas diarias / periódicas | sí | no | no |
Parche bajo encabezado / bloque | sí | no | no |
Encontrar huérfanos / enlaces rotos | sí | no | no |
Funciona con cualquier cliente MCP | sí | sí | no (solo Obsidian) |
Requiere instalar plugin de Obsidian | Solo Local REST API | Solo Local REST API | sí |
Configuración
Toda la configuración se realiza mediante variables de entorno: establécelas en la configuración de tu cliente MCP.
Variable | Requerido | Por defecto | Notas |
| sí | — | Desde la configuración del plugin Local REST API. |
| no |
| |
| no |
| |
| no |
| El plugin usa HTTPS por defecto con un certificado autofirmado. |
| no |
| Establécelo en |
| no |
| Tiempo de espera por solicitud. |
Cómo funciona
┌──────────────┐ stdio (MCP) ┌──────────────┐ HTTPS ┌──────────────────┐
│ Claude / IDE │ ───────────────────► │ obsidian-mcp │ ───────────► │ Local REST API │ ──► Vault
└──────────────┘ └──────────────┘ │ (Obsidian plugin)│
└──────────────────┘obsidian-mcp es una capa ligera sobre el plugin Local REST API. El plugin ejecuta un servidor HTTPS dentro de Obsidian con acceso total a la bóveda; este servidor adapta esa superficie al protocolo MCP y añade herramientas conscientes del grafo que la API REST de Obsidian no expone directamente (enlaces inversos, recorrido de múltiples saltos, detección de huérfanos).
Todo es local. Ningún dato sale de tu máquina excepto las solicitudes que tu cliente MCP hace a su proveedor de modelos, y tú controlas eso.
Preguntas frecuentes
¿Necesito instalar un plugin de Obsidian? Sí, el plugin Local REST API. Es la única forma sensata de hablar con una bóveda en ejecución desde fuera. Una vez instalado, obsidian-mcp se ejecuta como un proceso de Node separado iniciado por tu cliente MCP; no instalas otro plugin en Obsidian para esto.
¿Funciona si Obsidian está cerrado? No. El Local REST API se ejecuta dentro de Obsidian, por lo que la aplicación debe estar abierta.
¿Admite múltiples bóvedas? Una instancia del servidor apunta a una instancia de Obsidian en ejecución. Ejecuta múltiples entradas de servidor MCP (diferentes nombres + diferentes puertos) si cambias de bóveda con frecuencia.
¿Por qué HTTPS por defecto con OBSIDIAN_VERIFY_TLS=false? El plugin incluye un certificado autofirmado. El tráfico es solo de bucle local (127.0.0.1), por lo que la verificación añade fricción sin una ganancia de seguridad real. Si has reemplazado el certificado, activa la bandera.
¿Es seguro? El servidor MCP le da al modelo cualquier acceso que la clave API otorgue. Cualquier cosa que el modelo esté dispuesto a borrar, puede borrarla. Trátalo como cualquier agente con acceso de escritura a archivos: revisa lo que está a punto de hacer, especialmente antes de operaciones masivas.
Hoja de ruta
[ ] Búsqueda semántica basada en embeddings (actualmente solo por palabras clave a través del plugin)
[ ] Cambio de espacio de trabajo / enrutamiento de múltiples bóvedas
[ ] Modo seguro de solo lectura (sin herramientas de escritura registradas)
[ ] Suscripciones a recursos (actualizaciones push cuando cambian las notas)
[ ] Envío al registro de Smithery / mcp-get
Las PR son bienvenidas. Consulta CONTRIBUTING.md.
Agradecimientos
Local REST API de @coddingtonbear: todo este proyecto es derivado de él.
El equipo del Model Context Protocol en Anthropic.
Licencia
MIT: consulta 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-