Skip to main content
Glama

MCP Obsidian

MCP オブシディアン

Obsidianとの統合のためのモデルコンテキストプロトコル(MCP)のサーバー実装。これにより、AIアシスタントがObsidian Vault内のメモを読み取り、作成、操作できるようになります。

特徴

  • Obsidianでアクティブファイルを読む
  • アクティブなファイルを削除する
  • 特定の位置にコンテンツを挿入する(見出し、ブロック参照、前付)
  • ファイルにコンテンツを追加する
  • 特定のファイルを開く
  • 保管庫内のファイルを一覧表示する
  • メモを検索する

前提条件

  • Bunランタイム
  • Obsidianデスクトップ アプリケーション
  • MCP対応AIアシスタント

カーソルに追加

秘密を.envファイルに置く

コマンドMCPを選択し、このコマンドを入力します

bun __REPO_PATH__/src/index.ts

インストール

  1. このリポジトリをクローンします:
    git clone https://github.com/gregkonush/mcp-obsidian.git cd mcp-obsidian
  2. 依存関係をインストールします:
    bun install
  3. サンプル環境ファイルをコピーして設定します。
    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

新しいツールの追加

新しいツールを追加するには:

  1. src/tools/ディレクトリに新しいファイルを作成する
  2. MCP SDKを使用してツールを実装する
  3. src/index.tsにツールをインポートして登録します。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSE.mdファイルを参照してください。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

AI アシスタントがモデル コンテキスト プロトコルを通じて Obsidian ボールト内のメモを読み取り、作成、操作できるようにするサーバー実装。

  1. 特徴
    1. 前提条件
      1. カーソルに追加
        1. インストール
          1. 構成
            1. 使用法
              1. 利用可能なツール
                1. 発達
                  1. プロジェクト構造
                  2. 新しいツールの追加
                2. ライセンス
                  1. 貢献

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      Enables AI assistants to interact with Obsidian vaults, providing tools for reading, creating, editing and managing notes and tags.
                      Last updated -
                      598
                      149
                      TypeScript
                      MIT License
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      Provides 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 -
                      37
                      TypeScript
                      MIT License
                    • -
                      security
                      F
                      license
                      -
                      quality
                      This 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 -
                      598
                      7
                      JavaScript
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A Model Context Protocol server that enables AI assistants to interact with the HackMD API for managing notes, including creating, reading, updating, and deleting notes.
                      Last updated -
                      12
                      122
                      21
                      TypeScript
                      MIT License

                    View all related MCP servers

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

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