MCP Obsidian
MCP オブシディアン
Obsidianとの統合のためのモデルコンテキストプロトコル(MCP)のサーバー実装。これにより、AIアシスタントがObsidian Vault内のメモを読み取り、作成、操作できるようになります。
特徴
Obsidianでアクティブファイルを読む
アクティブなファイルを削除する
特定の位置にコンテンツを挿入する(見出し、ブロック参照、前付)
ファイルにコンテンツを追加する
特定のファイルを開く
保管庫内のファイルを一覧表示する
メモを検索する
Related MCP server: Vault Cortex Obsidian MCP Server
前提条件
カーソルに追加
秘密を.envファイルに置く
コマンドMCPを選択し、このコマンドを入力します
bun __REPO_PATH__/src/index.tsインストール
このリポジトリをクローンします:
git clone https://github.com/gregkonush/mcp-obsidian.git cd mcp-obsidian依存関係をインストールします:
bun installサンプル環境ファイルをコピーして設定します。
cp .env.example .env
構成
特定の構成で.envファイルを編集します。
OBSIDIAN_BASE_URL=http://localhost:27123
OBSIDIAN_TOKEN=your_token_here
DEBUG=false使用法
MCP サーバーを起動します。
bun run src/index.tsサーバーが起動し、標準 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- ボールト内の特定のディレクトリにあるファイルを一覧表示します
発達
プロジェクト構造
mcp-obsidian/
├── src/
│ ├── index.ts # Main server implementation
│ └── tools/ # Individual tool implementations
│ ├── get-active-file.ts
│ ├── delete-active-file.ts
│ └── ...
├── .env # Environment configuration
├── package.json # Project dependencies
└── tsconfig.json # TypeScript configuration新しいツールの追加
新しいツールを追加するには:
src/tools/ディレクトリに新しいファイルを作成するMCP SDKを使用してツールを実装する
src/index.tsにツールをインポートして登録します。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSE.mdファイルを参照してください。
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Related MCP Servers
- AlicenseBqualityFmaintenanceA Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.53,578 npm4ISC
- AlicenseAqualityAmaintenanceStandalone MCP server for Obsidian vaults - hybrid search (FTS5 + vector + cross-encoder reranking), images and PDFs in agent-readable form, Kanban-aware tasks (Tasks-plugin + Dataview formats), structured memory with topic recall, fine-grained read/write tools for optimal token efficiency, and link graph support. Run locally, self-host, or one-click deploy for remote access. OAuth 2.1.1033115 npm32MIT
- AlicenseAqualityFmaintenanceA Model Context Protocol (MCP) server that provides AI assistants with secure access to Obsidian vaults. Enables reading, writing, searching, and managing notes without requiring Obsidian to be running.5010,513 npmApache 2.0
- FlicenseNot gradedqualityCmaintenanceMCP server that provides tools and resources for AI models to interact with an Obsidian vault, enabling file operations, search, and management via the Model Context Protocol.2-