Skip to main content
Glama

MCP オブシディアン

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

特徴

  • Obsidianでアクティブファイルを読む

  • アクティブなファイルを削除する

  • 特定の位置にコンテンツを挿入する(見出し、ブロック参照、前付)

  • ファイルにコンテンツを追加する

  • 特定のファイルを開く

  • 保管庫内のファイルを一覧表示する

  • メモを検索する

Related MCP server: Vault Cortex

前提条件

  • 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ファイルを参照してください。

貢献

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

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    F
    maintenance
    A Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.
    5
    3,860
    4
    ISC
  • A
    license
    A
    quality
    F
    maintenance
    A 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.
    50
    2,472
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    MCP 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

View all related MCP servers

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.

View all MCP Connectors

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

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