Skip to main content
Glama
takuya0206

Obsidian MCP

by takuya0206

Obsidian MCP(モデルコンテキストプロトコル)

Obsidian MCPは、モデルコンテキストプロトコル(Model Context Protocol)を用いてObsidian Vaultとやり取りできるツールです。これにより、AIアシスタントは標準化されたインターフェースを介してObsidian Vault内のメモの読み取り、書き込み、操作が可能になります。

前提条件

Related MCP server: MCP Obsidian

MCP サーバーの設定 (例: Claude デスクトップ アプリ)

  1. このリポジトリをクローンする

  2. 依存関係をインストールします:

    npm install
  3. プロジェクトをビルドします。

    npm run build
  4. この MCP サーバーを使用するように Claude デスクトップ アプリを構成します。

    {
       "mcpServers": {
         "Obsidian": {
           "command": "node",
           "args": ["/Users/<Your Own Path>/obsisian-mcp/build/index.js"],
           "env": {
             "apiKey": "<Your API Token>",
             "port": "27123",
             "host": "127.0.0.1"
           }
         }
       }
     }

発達

.envを作成し、上記のように「apiKey」、「port」、「host」を設定します。

利用可能なツール

以下のツールが実装されています。

  1. readNote - 特定のメモの内容を読む

    {
      "path": "path/to/note.md"
    }
  2. readActiveNote - 現在アクティブなノートの内容を読み取る

    {}
  3. listNotes - Vault 全体または指定されたフォルダ内のファイルとフォルダを再帰的に一覧表示します

    {
      "path": "optional/folder/path"
    }
  4. patchNote - 見出し、ブロック参照、または前置フィールドを基準にして既存のノートにコンテンツを挿入します。

    {
      "path": "path/to/note.md",
      "operation": "append|prepend|replace",
      "targetType": "heading|block|frontmatter",
      "target": "target_identifier",
      "content": "content to insert"
    }
  5. searchWithJsonLogic - JsonLogic形式のクエリを使用してObsidianノートを検索します

    {
      "query": {
        // JsonLogic query object
      }
    }
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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

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