Skip to main content
Glama

Obsidian MCP Server

by marcelmarais

Obsidian MCP サーバー

Cursor や Claude などの AI アシスタントが Obsidian の Vault を読み書きできるようにする軽量のModel Context Protocol (MCP)サーバーです。

やり取りの例

  • 「明日のスタンドアップ用に、今日行ったコード変更を説明する新しいメモを作成する」(Git も使用する必要があります)
  • 「プロジェクトのアイデアに関するメモを確認してください」
  • 「リファクタリングに関連するToDoを確認する」

ツール

読む

  1. すべてのファイル名を取得する
    • Obsidian vault 内のすべてのファイル名のリストを取得します
    • 利用可能なファイルを見つけるのに役立ちます
  2. 複数のファイルを読み取る
    • Obsidian の保管庫から指定されたファイルの内容を取得します
    • 正確なファイル名、部分的なファイル名、大文字と小文字を区別しない一致をサポートします
    • 各ファイルの内容には、明確に識別できるように「# ファイル: ファイル名」という接頭辞が付けられます。
  3. getOpenTodos
    • Obsidian vault 内のマークダウン ファイルからすべてのオープン TODO 項目を取得します。
    • チェックされていないチェックボックス項目(「- [ ] 」を含む行)を検索します。
    • ファイルの場所とともに返します

書く

  1. ファイルコンテンツの更新
    • Obsidian vault 内の指定されたファイルの内容を新しいマークダウンコンテンツで更新します
    • ファイルが存在しない場合は作成されます
    • 必要なディレクトリを自動的に作成します

インストールとビルド

npm install obsidian-mcp-server npm run build

Claude DesktopとCursorとの統合

Claude Desktop で MCP サーバーを使用するには、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 のボールトに対して読み取りと書き込みを実行できるようにする軽量サーバーです。これにより、自然言語によるメモの作成、既存のコンテンツの確認、ToDo の管理などのアクションが可能になります。

  1. やり取りの例
    1. ツール
      1. 読む
      2. 書く
    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 -
              329
              475
              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
            • A
              security
              A
              license
              A
              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 -
              5
              329
              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 -
              1,065
              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