Obsidian MCP(モデルコンテキストプロトコル)
Obsidian MCPは、モデルコンテキストプロトコル(Model Context Protocol)を用いてObsidian Vaultとやり取りできるツールです。これにより、AIアシスタントは標準化されたインターフェースを介してObsidian Vault内のメモの読み取り、書き込み、操作が可能になります。
前提条件
Node.js 18以上
ローカル REST API プラグインがインストールおよび構成された Obsidian
ローカルREST APIプラグインから生成されたAPIキー
MCP サーバーの設定 (例: Claude デスクトップ アプリ)
このリポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run buildこの 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」を設定します。
利用可能なツール
以下のツールが実装されています。
readNote - 特定のメモの内容を読む
{ "path": "path/to/note.md" }readActiveNote - 現在アクティブなノートの内容を読み取る
{}listNotes - Vault 全体または指定されたフォルダ内のファイルとフォルダを再帰的に一覧表示します
{ "path": "optional/folder/path" }patchNote - 見出し、ブロック参照、または前置フィールドを基準にして既存のノートにコンテンツを挿入します。
{ "path": "path/to/note.md", "operation": "append|prepend|replace", "targetType": "heading|block|frontmatter", "target": "target_identifier", "content": "content to insert" }searchWithJsonLogic - JsonLogic形式のクエリを使用してObsidianノートを検索します
{ "query": { // JsonLogic query object } }
local-only server
The server can only run on the client's local machine because it depends on local resources.
AI アシスタントが標準化されたインターフェースを通じて Obsidian Vault 内のメモを読み取り、書き込み、操作できるようにするモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityThis project implements a Model Context Protocol (MCP) server for connecting AI models with Obsidian knowledge bases. Through this server, AI models can directly access and manipulate Obsidian notes, including reading, creating, updating, and deleting notes, as well as managing folder structures.Last updated -1177209MIT License
- -securityAlicense-qualityA server implementation that allows AI assistants to read, create, and manipulate notes in Obsidian vaults through the Model Context Protocol.Last updated -6815MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with your Obsidian vault through the Local REST API plugin, allowing reading, creating, searching, and managing notes.
- AsecurityAlicenseAqualityA Model Context Protocol server that connects AI assistants to GitHub repositories containing Obsidian vaults, enabling them to read, search, and analyze notes and documentation stored on GitHub.Last updated -435MIT License