Obsidian MCP Server
Enables AI assistants to search, create, and manage notes in an Obsidian vault via 40+ local tools.
README
🗃️ Obsidian MCP Server
Connect AI assistants like Claude to your Obsidian vault via Model Context Protocol. 40+ tools for searching, creating, and managing your notes—all 100% local.
What Can You Do?
| You Say | What Happens |
|---|---|
| "Search my notes for machine learning" | Searches your entire vault |
| "Create a meeting note for tomorrow" | Creates a formatted meeting note |
| "What links to my Projects note?" | Shows all backlinks |
| "Add to my daily note: finished the API" | Appends to today's daily note |
| "Find orphan notes" | Lists unconnected notes |
Quick Start
1. Install the Obsidian Plugin
- Obsidian → Settings → Community plugins → Browse
- Search "Local REST API" → Install → Enable
- Settings → Local REST API → Copy your API Key
2. Install the MCP Server
Option A: Install from npm (recommended)
npm install -g @aniketbiswas/obsidian-mcp-server
Option B: Install from source
git clone https://github.com/aniketbiswas/obsidian-mcp.git
cd obsidian-mcp
npm install && npm run build
npm link # Makes it available globally
3. Configure Claude Desktop
Edit the config file:
| OS | Config Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/claude/claude_desktop_config.json |
If installed via npm:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["node_modules/@aniketbiswas/obsidian-mcp-server/build/index.js"],
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
}
}
}
}
Note: If the above doesn't work (common with nvm), use full paths:
{ "command": "/usr/local/bin/node", "args": ["/usr/local/lib/node_modules/@aniketbiswas/obsidian-mcp-server/build/index.js"] }Find your paths with:
which nodeandnpm root -g
If installed from source:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/FULL/PATH/TO/obsidian-mcp-server/build/index.js"],
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
}
}
}
}
Windows paths: Use
C:\\Users\\Name\\...orC:/Users/Name/...
4. Restart Claude Desktop
Make sure Obsidian is running, then try: "Show me my vault status"
Available Tools
<details> <summary><strong>📁 Vault (6)</strong> — Status, list files, structure</summary>
vault_status · list_files · list_all_files · get_vault_structure · get_file_stats · delete_file
</details>
<details> <summary><strong>📝 Notes (9)</strong> — CRUD operations</summary>
read_note · create_note · update_note · append_to_note · prepend_to_note · insert_under_heading · replace_in_note · delete_note · copy_note
</details>
<details> <summary><strong>🔍 Search (7)</strong> — Full-text, tags, folders</summary>
search_notes · simple_search · search_by_tag · search_in_folder · find_notes_by_name · get_recent_notes · search_with_context
</details>
<details> <summary><strong>📊 Metadata (8)</strong> — Frontmatter & tags</summary>
get_frontmatter · update_frontmatter · set_frontmatter_property · get_tags · add_tags · remove_tags · add_aliases · get_all_tags_in_vault
</details>
<details> <summary><strong>🧭 Navigation (6)</strong> — Open notes, run commands</summary>
open_note · get_active_note · append_to_active_note · get_commands · execute_command · quick_capture
</details>
<details> <summary><strong>📅 Daily Notes (6)</strong> — Journals & standups</summary>
get_daily_note · append_to_daily_note · get_periodic_note · append_to_periodic_note · daily_journal_entry · daily_standup
</details>
<details> <summary><strong>🔗 Links (6)</strong> — Backlinks, orphans, graph</summary>
get_outgoing_links · get_backlinks · find_broken_links · find_orphan_notes · add_link_to_note · get_link_graph_data
</details>
<details> <summary><strong>📋 Templates (4)</strong> — Meeting, project, etc.</summary>
create_note_from_template · create_meeting_note · create_project_note · list_templates
Built-in: meeting · project · book · article · person · recipe · decision
</details>
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
OBSIDIAN_API_KEY |
✅ | — | From Local REST API plugin |
OBSIDIAN_HOST |
127.0.0.1 |
API host | |
OBSIDIAN_PORT |
27124 |
API port | |
OBSIDIAN_SECURE |
true |
Use HTTPS | |
OBSIDIAN_VERIFY_SSL |
false |
Verify SSL certificate |
Troubleshooting
<details> <summary><strong>"Cannot connect to MCP server" or "Server failed to start"</strong></summary>
This is usually a PATH issue. Claude Desktop doesn't inherit your shell's PATH (especially with nvm).
Solution: Use full absolute paths in your config:
- Find your node path:
which node - Find global modules:
npm root -g - Update config with full paths:
{
"mcpServers": {
"obsidian": {
"command": "/Users/YOU/.nvm/versions/node/v22.x.x/bin/node",
"args": ["/Users/YOU/.nvm/versions/node/v22.x.x/lib/node_modules/@aniketbiswas/obsidian-mcp-server/build/index.js"],
"env": {
"OBSIDIAN_API_KEY": "your-key"
}
}
}
}
Check logs: ~/Library/Logs/Claude/mcp.log (macOS)
</details>
<details> <summary><strong>Claude doesn't see the server</strong></summary>
- Validate JSON:
cat config.json | python3 -m json.tool - Path must be absolute (starts with
/orC:\) - Restart Claude Desktop completely (Cmd+Q / right-click quit)
- Windows: ensure file is
.jsonnot.json.txt</details>
<details> <summary><strong>Connection errors</strong></summary>
- Obsidian must be running with Local REST API enabled
- Test API:
curl -k https://127.0.0.1:27124/ -H "Authorization: Bearer YOUR_KEY" - Regenerate API key if needed </details>
<details> <summary><strong>Windows: "node not recognized"</strong></summary>
Use full path: "command": "C:\\Program Files\\nodejs\\node.exe"
</details>
Development
npm run build # Compile TypeScript
npm run dev # Watch mode
npm run inspector # Test tools in browser UI
Adding Tools
Create/edit files in src/tools/, then rebuild:
server.tool("my_tool", "Description", { param: z.string() }, async ({ param }) => {
return { content: [{ type: "text", text: "Result" }] };
});
FAQ
Is it free? Yes, the Local REST API plugin is free.
Are my notes sent to the cloud? No. Everything stays local. Only your conversation with Claude goes to Anthropic (like any Claude chat).
Works with Obsidian Sync? Yes, it accesses your local vault files.
Contributing
PRs welcome! Fork → create branch → commit → open PR.
License
MIT — see LICENSE
Built with MCP SDK · Powered by Local REST API
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。