Skip to main content
Glama

Obsidian MCP Server

by marcelmarais

Obsidian MCP 服务器

轻量级模型上下文协议 (MCP)服务器,使 Cursor 和 Claude 等 AI 助手能够读取和写入您的 Obsidian 保险库。

交互示例

  • “为明天的站立会议创建一个新注释,描述我今天所做的代码更改”(也应该使用 Git)
  • “查看我关于项目想法的笔记”
  • “检查与重构相关的待办事项”

工具

  1. 获取所有文件名
    • 获取 Obsidian 库中所有文件名的列表
    • 有助于发现可用的文件
  2. 读取多个文件
    • 从 Obsidian 保险库中检索指定文件的内容
    • 支持精确文件名、部分文件名或不区分大小写的匹配
    • 每个文件的内容都以“#File”为前缀,以便于清晰识别
  3. 获取OpenTodos
    • 从 Obsidian Vault 中的 Markdown 文件中检索所有打开的 TODO 项目
    • 查找未选中的复选框项(包含“- [ ] ”的行)
    • 返回它们及其文件位置

  1. 更新文件内容
    • 使用新的 Markdown 内容更新 Obsidian 库中指定文件的内容
    • 如果文件不存在,则会创建它
    • 自动创建任何必要的目录

安装和构建

npm install obsidian-mcp-server npm run build

与 Claude Desktop 和 Cursor 集成

要将您的 MCP 服务器与 Claude Desktop 一起使用,请将其添加到您的 Claude 配置中:

{ "mcpServers": { "obsidian": { "command": "node", "args": [ "obsidian-mcp-server/build/index.js", "/path/to/your/vault" ] } } }

对于“光标”,请转到 MCP 选项卡Cursor Settings (command + shift + J)。使用以下命令添加服务器:

node obsidian-mcp-server/build/index.js /path/to/your/vault

与其他解决方案的比较

虽然此实现有意轻量,但其他解决方案(如jacksteamdev/obsidian-mcp-tools)作为 Obsidian 插件提供了功能更丰富的方法。

该独立服务器具有直接访问文件系统的优势,无需运行 Obsidian 应用程序。

资源

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

轻量级服务器,使 Cursor 和 Claude 等 AI 助手能够读取和写入 Obsidian 保险库,从而允许通过自然语言执行创建笔记、检查现有内容和管理待办事项等操作。

  1. 交互示例
    1. 工具
    2. 安装和构建
      1. 与 Claude Desktop 和 Cursor 集成
        1. 与其他解决方案的比较
          1. 资源

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              Enables AI assistants to interact with Obsidian vaults, providing tools for reading, creating, editing and managing notes and tags.
              Last updated -
              326
              415
              TypeScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              Provides a standardized interface for AI assistants to interact with Obsidian vaults through a local REST API, enabling reading, writing, searching, and managing notes.
              Last updated -
              51
              TypeScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.
              Last updated -
              326
              2
              TypeScript
              ISC License
            • -
              security
              A
              license
              -
              quality
              A server implementation that allows AI assistants to read, create, and manipulate notes in Obsidian vaults through the Model Context Protocol.
              Last updated -
              835
              5
              TypeScript
              MIT License

            View all related MCP servers

            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/marcelmarais/obsidian-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server