FA 

fazer-ai/mcp-obsidian 是从 https://github.com/fazer-ai/mcp-obsidian. 导入的 MCP 服务器候选。
概览
fazer-ai/mcp-obsidian 是从 https://github.com/fazer-ai/mcp-obsidian. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个模型-上下文协议(MCP)服务器,允许 Claude(或任何兼容 MCP 的大型语言模型)通过 Local REST API 社区插件与你的 Obsidian 保险库交互——该插件用 TypeScript 编写,并可用 bunx 运行。
✨ 组成部分
工具
| 工具名称 | 描述 |
|---|---|
| obsidian_status | 返回关于Obsidian本地REST API服务器的基本信息及您的认证状态 |
| obsidian_delete_active | 删除当前在Obsidian UI中激活的笔记 |
| obsidian_get_active | 检索活动笔记的完整内容(Markdown 或 JSON 视图) |
| obsidian_patch_active | 在活动笔记中插入、替换或在当前笔记中相对于标题、块引用或前置字段的内容 |
| obsidian_post_active | 在活动笔记末尾附加Markdown |
| obsidian_put_active | 替换整个活跃音符的正体 |
| obsidian_get_commands | 列出Obsidian指令面板中所有可用的命令 |
| obsidian_execute_command | 通过ID执行特定的黑曜石命令 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP server for Obsidian (TypeScript + Bun)
A Model-Context-Protocol (MCP) server that lets Claude (or any MCP-compatible LLM) interact with your Obsidian vault through the Local REST API community plugin – written in TypeScript and runnable with bunx.
✨ Components
Tools
| Tool name | Description |
|---|---|
| obsidian_status | Returns basic details about the Obsidian Local REST API server and your authentication status |
| obsidian_delete_active | Deletes the note that is currently active in the Obsidian UI |
| obsidian_get_active | Retrieves the full content of the active note (Markdown or JSON view) |
| obsidian_patch_active | Inserts, replaces or prepends content in the active note relative to a heading, block reference, or front-matter field |
| obsidian_post_active | Appends Markdown to the end of the active note |
| obsidian_put_active | Replaces the entire body of the active note |
| obsidian_get_commands | Lists every command available in Obsidian’s command palette |
| obsidian_execute_command | Executes a specific Obsidian command by its ID |
| obsidian_open_file | Opens the given file inside Obsidian (creates it if missing); optional flag to open in a new leaf |
| obsidian_delete_periodic | Deletes the current daily / weekly / monthly / quarterly / yearly note for the requested period |
| obsidian_get_periodic | Returns the content of the current periodic note for the requested period |
| obsidian_patch_periodic | Inserts / replaces content in a periodic note relative to a heading, block reference, or front-matter field |
| obsidian_post_periodic | Appends Markdown to the periodic note (creates it if it doesn’t exist) |
| obsidian_put_periodic | Replaces the entire body of a periodic note |
| obsidian_search_dataview | Runs a Dataview-DQL query across the vault and returns matching rows |
| obsidian_search_json_logic | Runs a JsonLogic query against structured note metadata |
| obsidian_simple_search | Performs a plain-text fuzzy search with optional surrounding context |
| obsidian_list_vault_root | Lists all files and directories at the root of your vault |
| obsidian_list_vault_directory | Lists files and directories inside a specific folder of the vault |
| obsidian_delete_file | Deletes a specific file (or directory) in the vault |
| obsidian_get_file | Retrieves the content of a file in the vault (Markdown or JSON view) |
| obsidian_patch_file | Inserts / replaces content in an arbitrary file relative to a heading, block reference, or front-matter field |
| obsidian_post_file | Appends Markdown to a file (creates it if it doesn’t exist) |
安装
npx @modelcontextprotocol/inspector bun /path/to/repo/src/index.ts配置
// claude_desktop_config.json
{
"mcpServers": {
"@fazer-ai/mcp-obsidian": {
"command": "bunx",
"args": ["@fazer-ai/mcp-obsidian@latest"],
"env": {
"OBSIDIAN_API_KEY": "your-obsidian-api-key"
}
}
}
}