Obsidian MCP Server
Permite que tu agente de IA lea, escriba, busque y edite notas, etiquetas y frontmatter en tu bóveda de Obsidian.
702 estrellas en GitHubpor cyanheadsLicencia Apache-2.0Actualizado hace 23 días
Cómo instalar
Este MCP es local: se ejecuta en tu computadora.
Funciona en las apps instaladas en tu PC (Claude Desktop, Claude Code, Cursor, VS Code…). Elige tu app:
Pega en la terminal:
claude mcp add obsidian -e OBSIDIAN_API_KEY="<tu valor>" -- npx -y obsidian-mcp-server
Qué completar
| Nombre | Qué es | Obligatorio |
|---|---|---|
OBSIDIAN_API_KEY | Bearer token for the Obsidian Local REST API plugin (Settings → Community Plugins → Local REST API). | Sí |
OBSIDIAN_BASE_URL | Base URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-signed cert; pair with OBSIDIAN_VERIFY_SSL=false). | No |
OBSIDIAN_VERIFY_SSL | Whether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert. | No |
OBSIDIAN_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. | No |
OBSIDIAN_ENABLE_COMMANDS | Opt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default — Obsidian commands are opaque and can be destructive. | No |
OBSIDIAN_READ_PATHS | Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments dropped, and names normalized to Unicode NFC; an entry naming the vault root ('.') is rejected at startup. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'. | No |
OBSIDIAN_WRITE_PATHS | Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS stay denied. Example: 'projects/,scratch/'. | No |
OBSIDIAN_DENY_PATHS | Optional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and tag counts. Unset = nothing denied. Example: 'private/,journal/therapy/'. | No |
OBSIDIAN_READ_ONLY | Global read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing deployments. | No |
OBSIDIAN_DELETE_ELICITATION | Opt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a stateful session unless OBSIDIAN_READ_ONLY=true disables the tool. Off by default — the delete runs on the first call, bounded by OBSIDIAN_WRITE_PATHS and OBSIDIAN_READ_ONLY. | No |
OBSIDIAN_OMNISEARCH_URL | Override URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port. | No |
MCP_LOG_LEVEL | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). | No |
¡Listo! Ahora pruébalo
Reinicia la app y pega uno de estos pedidos en el chat:
Añade las tareas de hoy bajo el encabezado Tasks de mi nota diaria.
Enumera mis etiquetas más usadas.
Qué es
Este servidor conecta tu agente con tu bóveda de Obsidian a través del plugin Local REST API. El agente puede leer y buscar notas, crear o editar notas, cambiar en su lugar un encabezado, un bloque o un campo de frontmatter, y gestionar etiquetas. Puedes limitar qué carpetas puede leer o escribir.
Qué puede hacer
obsidian_get_note: lee una notaobsidian_search_notes: busca por texto, JSONLogic u Omnisearchobsidian_write_note: crea o reemplaza una nota o una secciónobsidian_append_to_noteyobsidian_patch_note: añaden contenido a un encabezado o campoobsidian_replace_in_note: busca y reemplaza dentro de una notaobsidian_manage_frontmatteryobsidian_manage_tags: editan el frontmatter y las etiquetasobsidian_list_notesyobsidian_list_tags: exploran la bóveda
Cuándo usarlo
- ›Cuando quieres que un agente añada notas de reunión bajo el encabezado correcto.
- ›Cuando quieres etiquetar o buscar muchas notas a la vez.
- ›Cuando quieres actualizar una nota diaria o periódica.
Qué necesitas
Skills que combinan
¿MCP o skill?
El MCP da las manos al agente. La skill enseña la forma correcta de usarlas. Juntos, el resultado es mejor y gasta menos tokens.
obsidianAyuda a tu agente a leer, buscar, crear y editar notas en tu bóveda de Obsidian, incluidos los enlaces entre notas.cli-anything-obsidianPermite que tu agente lea, cree, actualice, busque y añada texto a notas de tu bóveda de Obsidian mediante el complemento Local REST API.obsidianAyuda a tu agente a leer, buscar, crear, editar y organizar notas en tu bóveda de Obsidian, incluidas las tareas, los enlaces y las propiedades.Preguntas frecuentes
¿Es gratis y de código abierto?
Tiene un archivo de licencia en el repositorio y no indica precio.
¿Qué plugin necesita?
El plugin Local REST API de Obsidian.
¿Puedo limitar a qué puede acceder?
Sí. OBSIDIAN_READ_PATHS, OBSIDIAN_WRITE_PATHS, OBSIDIAN_DENY_PATHS y OBSIDIAN_READ_ONLY definen los límites.
¿Puede borrar notas?
Sí, y por defecto sin confirmación. Configura OBSIDIAN_DELETE_ELICITATION=true para exigir tu confirmación.
¿Puede ejecutar comandos de Obsidian?
Solo si activas OBSIDIAN_ENABLE_COMMANDS.
¿Qué transportes soporta?
STDIO o Streamable HTTP.
Si no funciona
- ›Revisa que Obsidian esté abierto y que el plugin Local REST API esté activado.
- ›Revisa que OBSIDIAN_API_KEY coincida con la clave de la configuración del plugin.
- ›Lee el recurso obsidian://status para comprobar si el plugin responde y si la autenticación funciona.
5 skills nuevas por semana. 1 minuto de lectura.