mcp-obsidian
MCP server that connects Claude Desktop to Obsidian vault via the Local REST API plugin, enabling search, read, write, and management of notes plus executing Obsidian commands.
README
mcp-obsidian
MCP server that connects Claude Desktop to Obsidian via the Local REST API plugin.
Overview
mcp-obsidian is a Node.js/TypeScript MCP server that exposes your Obsidian vault to Claude Desktop over stdio.
It talks to the Obsidian Local REST API plugin and provides tools for searching, reading, writing, and managing notes, plus running Obsidian commands.
Features (Available MCP Tools)
Based on src/index.ts, this server currently exposes:
search_notes- search notes using Obsidian query syntaxget_note- read full markdown content by vault-relative pathcreate_note- create a new note (overwriteoptional)update_note- replace full content of an existing noteappend_note- append or prepend content to a notedelete_note- delete a notelist_directory- list files/folders under a vault directoryopen_note- open a note in the Obsidian applist_commands- list available Obsidian command IDsexecute_command- execute an Obsidian command by IDget_active_note- get content of the active note in Obsidian
Requirements
- Node.js 18+ (Node 20+ recommended)
- Obsidian desktop app
- Obsidian plugin: Local REST API installed and enabled
- API key from the Local REST API plugin settings
Environment Variables
Required:
OBSIDIAN_BASE_URL(example:https://127.0.0.1:27124)OBSIDIAN_API_KEY(token/license key from plugin settings)
Optional (only if you use self-signed TLS cert from local plugin):
NODE_TLS_REJECT_UNAUTHORIZED=0
Security note: disable TLS verification only for local trusted use.
Installation & Build
npm install
npm run build
Build output will be generated in dist/.
Claude Desktop Configuration
Use claude_desktop_config.example.json as reference.
Example:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/mcp_obsidian/dist/index.js"],
"env": {
"OBSIDIAN_BASE_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_KEY": "YOUR_LOCAL_REST_API_KEY_HERE",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
Adjust args to the absolute path on your machine.
Usage Examples
After Claude Desktop loads this MCP server, you can call tools like:
- Search notes:
- tool:
search_notes - args:
{"query":"tag:#project","context_length":120}
- tool:
- Read note:
- tool:
get_note - args:
{"path":"Projects/Plan.md"}
- tool:
- Create note:
- tool:
create_note - args:
{"path":"Journal/2026-08-17.md","content":"# Daily Log\\n- ...","overwrite":false}
- tool:
- Append note:
- tool:
append_note - args:
{"path":"Inbox.md","content":"\\n- New item","mode":"append"}
- tool:
- Run command:
- tool:
execute_command - args:
{"command_id":"app:go-home"}
- tool:
Project Structure
.
├── src/
│ ├── index.ts # MCP server entrypoint, tool schema + handlers
│ └── obsidianApi.ts # Obsidian Local REST API client wrapper
├── claude_desktop_config.example.json
├── package.json
└── tsconfig.json
Obsidian Local REST API Plugin Note
This project depends on the Local REST API plugin endpoints (/vault, /search/simple, /commands, /active, /open).
If the plugin is not installed/enabled or API key/base URL is wrong, MCP tools will fail.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。