obsidian-mcp
Turns an Obsidian vault into an AI-queryable knowledge graph, providing tools for reading, searching, graph traversal, and writing notes with automatic backlink updates.
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-mcpshow me the shortest link path between my notes on TypeScript and JavaScript"
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
MCP server that turns any Obsidian vault into an AI-queryable knowledge graph.
What makes this different from the 24+ existing Obsidian MCP servers:
Graph-first — BFS, shortest path, connected components, bridge detection via
[[wikilinks]]Zero infrastructure — No database, no Obsidian running, no API keys
Vault-agnostic — Works with any existing vault, no required structure
Backlink-aware writes —
move_noteauto-updates all references across the vaultTiny — 4 runtime dependencies, ~42KB bundle
Quick Start
npx obsidian-mcp --vault ~/my-obsidian-vaultClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp", "--vault", "/path/to/vault"]
}
}
}Claude Code
claude mcp add obsidian -- npx -y obsidian-mcp --vault /path/to/vaultRelated MCP server: some-vault-some-mcp
Tools (12)
Reading & Discovery
Tool | Description |
| Overview: total notes, tags, links, orphans, components, top tags/hubs |
| Full content + frontmatter + links + backlinks + sections |
| Filter by tags, folder, frontmatter, keyword. All combinable |
Graph Traversal
Tool | Description |
| Direct links + backlinks for a note |
| BFS/DFS from a note, N hops deep with tag filtering |
| Shortest link chain between two notes |
| Components, orphans, bridges, hubs, dead links |
Writing & Manipulation
Tool | Description |
| Create with content + frontmatter |
| Append, prepend, or replace a section. Update frontmatter |
| Rename/move + auto-update all backlinks across vault |
| Delete + report broken links |
| Add/remove/rename tags (vault-wide rename supported) |
Configuration
Zero-config by default. Optional .obsidian-mcp.json in vault root:
{
"ignore": ["templates/", "daily-notes/", ".trash/"],
"watchDebounce": 100,
"maxTraversalDepth": 10,
"maxSearchResults": 500
}CLI Flags
--vault <path> Path to Obsidian vault (required)
--verbose Enable debug logging
--log-level <level> error | warn | info | debug (default: info)How It Works
On startup, scans all
.mdfiles and builds an in-memory graph (~1-3s for 1k notes)File watcher detects changes and updates the graph incrementally (~5ms per change)
Claude queries the graph via MCP tools — no re-scanning needed
Write operations update both the filesystem and the graph atomically
Hardcoded exclusions: .obsidian/, .trash/, node_modules/
Development
npm install
npm test # Run 66 tests
npm run build # Build to dist/
npm run dev -- --vault test/fixtures/vault # Dev modeLicense
MIT
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
- AlicenseNot gradedqualityBmaintenanceAn open-source MCP server that makes your Obsidian vault accessible from any AI client with hybrid search, read/write, and graph analysis capabilities.3023MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that gives AI models read/write access to Obsidian vaults with semantic search, link graph analysis, canvas manipulation, and incremental indexing.1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that treats Obsidian vaults as knowledge graphs, enabling AI agents to traverse wikilinks, assemble token-budgeted context, and search with backlink awareness.31MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that enables AI agents to read, search, and write to your Obsidian vault.4MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
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/seynurmammad0v/obsidian-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server