Obsidian MCP Server
Allows reading, listing, and searching notes in an Obsidian vault with Zero Trust security, sandboxing path traversal and hidden files.
Click on "Install 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 ServerRead the note 'Weekly Review' from my vault"
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 Server (Zero Trust · Solo lectura)
Servidor MCP en TypeScript que conecta Claude Desktop con una boveda local de Obsidian bajo un modelo de Confianza Cero. Todas las herramientas de esta fase inicial son estrictamente de solo lectura.
Herramientas expuestas
Herramienta | Tipo | Descripcion |
| solo lectura | Lee el contenido de una nota |
| solo lectura | Lista las notas de la boveda (o de una subcarpeta). |
| solo lectura | Busca texto dentro de las notas de la boveda. |
Related MCP server: Obsidian MCP Server
Modelo de seguridad (Zero Trust)
El servidor asume que toda ruta recibida es hostil hasta ser demostrada segura.
El unico limite de confianza es OBSIDIAN_VAULT_PATH (ruta absoluta).
Garantias del sandbox:
Anti path traversal — se resuelve la ruta a su forma canonica absoluta y se verifica que siga estando dentro de la boveda. Se bloquea
../../etc/passwd,..\\..\\.ssh\\id_rsa, rutas absolutas externas, null bytes, etc.Ocultos ignorados — cualquier segmento que empiece por
.(p. ej..obsidian,.git,.ssh) queda vetado. La configuracion interna de Obsidian nunca es accesible. Ademas se rechaza:(unidad relativaC:fooy flujos de datos alternativos NTFS).Enlaces simbolicos confinados — se resuelve el destino real del symlink (
fs.realpath) y se rechaza si escapa de la boveda, evitando fugas por enlaces.Allowlist de extensiones — solo se leen archivos
.md(y.markdown).Un unico portero — cada herramienta MUST pasar por el middleware
resolveSafePathantes de tocar el disco. Ninguna herramienta accede al filesystem por su cuenta.
Estructura del proyecto
MCP/
├── src/
│ ├── index.ts # Entrypoint: crea el server MCP + transporte stdio (Fase 2)
│ ├── config/
│ │ └── env.ts # Carga y valida OBSIDIAN_VAULT_PATH (Fase 2)
│ ├── security/
│ │ └── pathGuard.ts # Middleware Zero Trust de validacion de rutas (Fase 2)
│ └── tools/
│ ├── readNote.ts # Herramienta read_note (Fase 2)
│ ├── listNotes.ts # Herramienta list_notes (Fase 2)
│ └── searchVault.ts # Herramienta search_vault (Fase 2)
├── tests/
│ └── security.test.ts # Red Team: intentos de path traversal, ocultos, symlinks (Fase 3)
├── package.json
├── tsconfig.json
├── .env.example
└── .gitignoreDiseno del middleware de seguridad: resolveSafePath
Contrato de la funcion central que blindara cada herramienta en la Fase 2:
resolveSafePath(relativeInput: string): string // devuelve ruta absoluta segura o LANZA errorPipeline de validacion (falla-cerrado, se rechaza ante cualquier duda):
Normalizar entrada — rechazar si contiene
\0(null byte) o esta vacia.Prohibir rutas absolutas del cliente — el input siempre es relativo a la boveda. Se rechaza
path.isAbsolute(input)y esquemas tipoC:\,/,\\servidor.Resolver contra la boveda —
path.resolve(VAULT_ROOT, input).Verificar contencion — la ruta resuelta debe empezar por
VAULT_ROOT + path.sep(comparacion normalizada, case-insensitive en Windows). Si no,PATH_ESCAPE.Vetar segmentos ocultos — dividir la ruta relativa por separador y rechazar si algun segmento empieza por
..Resolver symlinks reales —
fs.realpathSyncdel destino y repetir el paso 4 sobre la ruta real. Si el enlace apunta fuera,SYMLINK_ESCAPE.Validar extension — para lecturas de archivo, exigir
.md/.markdown.
Errores estructurados (nunca stack traces crudos al modelo):
PATH_ESCAPE, HIDDEN_SEGMENT, SYMLINK_ESCAPE, INVALID_EXTENSION, NOT_FOUND.
Requisitos
Node.js >= 20
Una boveda de Obsidian local
Estado
Fase 1 — Arquitectura y entorno
Fase 2 — Core y herramientas
Fase 3 — Red Team y tests de seguridad (18/18)
Fase 4 — Despliegue e integracion
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables Claude Code read/write access to an Obsidian vault, including creating, editing, searching, and browsing notes.Last updated8MIT
- Alicense-qualityBmaintenanceConnects Claude Desktop to your Obsidian vault, enabling reading, writing, searching, and organizing notes locally.Last updated1MIT
- Alicense-qualityDmaintenanceEnables Claude Desktop to interact with an Obsidian vault through the Local REST API, allowing file listing, reading, searching, creating, and updating markdown notes.Last updated2,001Apache 2.0
- Alicense-qualityDmaintenanceEnables reading, writing, searching, and managing an Obsidian vault through Claude, operating directly on markdown files via Node.js fs without requiring the Obsidian app.Last updated2,001MIT
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/javierruiz96/obsidian-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server