Skip to main content
Glama
marcelmarais

Obsidian MCP Server

by marcelmarais

Obsidian MCP サーバー

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

やり取りの例

  • 「明日のスタンドアップ用に、今日行ったコード変更を説明する新しいメモを作成する」(Git も使用する必要があります)

  • 「プロジェクトのアイデアに関するメモを確認してください」

  • 「リファクタリングに関連するToDoを確認する」

Related MCP server: MCP Obsidian

ツール

読む

  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 アプリケーションを実行する必要なく、直接ファイルシステムにアクセスできるという利点があります。

リソース

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    F
    maintenance
    A Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.
    5
    2,784 npm
    4
    ISC
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to interact with Obsidian vaults for creating, reading, searching, and managing notes, daily notes, TODOs, session reports, and backlinks through both stdio and HTTP/SSE transports.
    10
    2,784 npm
    4
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Turns an Obsidian vault into a local Model Context Protocol server that allows AI tools to directly read, search, and write to your notes. It features folder-level access control and a built-in dashboard for easy integration with tools like Claude Desktop and Cursor.
    6,363 npm
    2
    Apache 2.0