obsidian-local-mcp
Provides tools for interacting with an Obsidian vault's notes directly on disk, including listing, reading, searching, creating, editing, moving, soft-deleting notes, and managing YAML frontmatter, without requiring the Obsidian app to be running.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
obsidian-local-mcp
A standalone Model Context Protocol (MCP) server that exposes an Obsidian vault as tools to any MCP-capable agent (Claude Desktop, OpenCode, etc.) — enabling read / write / search / organize operations on vault notes without requiring Obsidian to be running.
Design principles
Local stdio MCP server — no HTTP, no API keys. Launched as a subprocess by the MCP client.
File-based by design — operates directly on the vault's Markdown files, not through the Obsidian app.
Safe — all operations are restricted to paths inside the vault root (path-traversal guard). The
.obsidian/config folder is never touched unless explicitly allowed.
Related MCP server: obsidian-gate
Tools (planned v1)
Tool | Purpose |
| Recursive listing of |
| Return full note content (UTF-8) |
| Regex/literal grep over vault content, filenames, or tags |
| Create note, auto-creating parent folders; refuses to overwrite unless allowed |
| Exact string replacements (old/new pairs) |
| Move a note, optionally rewriting |
| Soft-delete into a vault-local |
| Parse/modify YAML frontmatter while preserving the body |
Install
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-local-mcp"],
"env": { "OBSIDIAN_VAULT_PATH": "C:\\path\\to\\MyVault" }
}
}
}Configuration
Option | Env var | Meaning |
|
| Vault root (required). Validated at startup: must contain a |
|
| Permit access to |
All tool paths are vault-relative; a path-traversal guard keeps every operation inside the vault root.
Development
Requires Node 20+.
npm install # install dependencies
npm run build # compile TypeScript to dist/
npm test # run the 49-test suite (unit + MCP integration over in-memory transport)
npm run inspector # open the MCP Inspector UI against dist/index.jsHeadless smoke test with the MCP Inspector CLI:
npx -y @modelcontextprotocol/inspector --cli node dist/index.js --vault /path/to/vault --method tools/listNote: the Inspector CLI passes
--tool-argvalues as raw strings, so array/object arguments (e.g.edit_note'sedits) are rejected by schema validation there — use the Inspector UI, or point an MCP client at the server, to exercise those.
Status
✅ v1 built and smoke-tested — all 8 tools from the spec implemented, 49 tests passing, verified end-to-end with the MCP Inspector.
Install from npm (works on Windows, macOS, and Linux with Node 20+):
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-local-mcp", "--vault", "C:\\path\\to\\MyVault"]
}
}
}Prefer installing from source?
npx -y github:davidcastaneda838/obsidian-local-mcp --vault <path>works too. macOS/Linux users usually havenodeon PATH and can use"command": "node","args": ["obsidian-local-mcp", "--vault", "/Users/me/MyVault"]after a global install. Windows GUI clients that don't inherit your PATH should use the absolute path tonode.exeand the installed package'sdist/index.js.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, search, write, and link notes in an Obsidian vault via MCP tools and resources.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to list, read, search, create, update, rename, and delete markdown notes in a local Obsidian vault via an HTTP MCP endpoint.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables MCP clients to search, read, list, and append to markdown notes in a local Obsidian vault or folder of .md files.-