MCP オブシディアン
Obsidianとの統合のためのモデルコンテキストプロトコル(MCP)のサーバー実装。これにより、AIアシスタントがObsidian Vault内のメモを読み取り、作成、操作できるようになります。
特徴
- Obsidianでアクティブファイルを読む
- アクティブなファイルを削除する
- 特定の位置にコンテンツを挿入する(見出し、ブロック参照、前付)
- ファイルにコンテンツを追加する
- 特定のファイルを開く
- 保管庫内のファイルを一覧表示する
- メモを検索する
前提条件
カーソルに追加
秘密を.envファイルに置く
コマンドMCPを選択し、このコマンドを入力します
インストール
- このリポジトリをクローンします:
- 依存関係をインストールします:
- サンプル環境ファイルをコピーして設定します。
構成
特定の構成で.env
ファイルを編集します。
使用法
MCP サーバーを起動します。
サーバーが起動し、標準 I/O を介して MCP 互換の AI アシスタントと通信します。
利用可能なツール
この実装では、AI アシスタントに次のツールが提供されます。
get_active_file
- 現在アクティブなファイルの内容を返しますdelete_active_file
- 現在アクティブなファイルを削除しますinsert_active_file
- 見出し、ブロック参照、またはfrontmatterフィールドを基準にしてコンテンツを変更しますappend_active_file
- アクティブファイルの末尾にコンテンツを追加しますopen_file
- Obsidianで特定のファイルを開くsearch_simple
- テキストクエリに一致するドキュメントを検索しますlist_files
- ボールトのルートディレクトリ内のファイルを一覧表示しますlist_directory_files
- ボールト内の特定のディレクトリにあるファイルを一覧表示します
発達
プロジェクト構造
新しいツールの追加
新しいツールを追加するには:
src/tools/
ディレクトリに新しいファイルを作成する- MCP SDKを使用してツールを実装する
src/index.ts
にツールをインポートして登録します。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSE.mdファイルを参照してください。
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
AI アシスタントがモデル コンテキスト プロトコルを通じて Obsidian ボールト内のメモを読み取り、作成、操作できるようにするサーバー実装。
Related MCP Servers
- -securityAlicense-qualityEnables AI assistants to interact with Obsidian vaults, providing tools for reading, creating, editing and managing notes and tags.Last updated -385474TypeScriptMIT License
- -securityAlicense-qualityProvides 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 -51TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.Last updated -53852TypeScriptISC License
- -securityAlicense-qualityProvides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.Last updated -24PythonMIT License