Skip to main content
Glama
JulioMCruz

obsidian-vault-mcp

by JulioMCruz

Obsidian Vault MCP

ローカルの Obsidian ボールトへの制御されたアクセスを AI エージェントに提供する HTTP Model Context Protocol サーバー。

マークダウンノートの一覧表示、読み取り、検索、作成、更新、名前変更、および慎重な削除を必要とするエージェントランタイム(Grok ボット、Claude、OpenClaw、カスタム MCP クライアント)向けに構築されています。

機能

  • ストリーミング可能な HTTP MCP エンドポイント(/mcp

  • Bearer / API キー認証

  • ボールト全体モード(ALLOWLIST=*)またはフォルダーの許可リスト

  • 読み取りツール: list_noteslist_folderread_notesearch_notes

  • 書き込みツール: create_noteappend_noteupdate_notecreate_folderrename_pathdelete_path

  • .obsidian.git、ドットファイル、.env、およびキー素材をブロック

  • アトミック書き込み + サイズ制限

  • 運用向けヘルスチェックエンドポイント: /healthz

Related MCP server: obsidian-autom8

クイックスタート

npm install
export VAULT_ROOT="/absolute/path/to/your/vault"
export BEARER_TOKEN="$(openssl rand -hex 32)"
export ALLOWLIST="*"
export WRITE_ALLOWLIST="*"
export MODE="read-write"
export PORT=8790
export BIND=127.0.0.1
export PUBLIC_BASE="http://127.0.0.1:8790"
npm start

ヘルスチェック:

curl -s http://127.0.0.1:8790/healthz | jq .

環境変数

変数

必須

デフォルト

説明

VAULT_ROOT

はい

Obsidian ボールトへの絶対パス

BEARER_TOKEN

はい

MCP クライアント用の共有シークレット

ALLOWLIST

いいえ

サンプルフォルダー

相対フォルダーのカンマ区切りリスト、またはボールト全体の場合は *

WRITE_ALLOWLIST

いいえ

ALLOWLIST と同じ

書き込みスコープ。* = ボールト全体(シークレット/ドットファイルは引き続きブロック)

MODE

いいえ

read-write

read-write または read-only

PORT

いいえ

8790

リッスンポート

BIND

いいえ

127.0.0.1

バインドアドレス

PUBLIC_BASE

いいえ

http://127.0.0.1:8790

メタデータで公開されるパブリックベース URL

MAX_SEARCH_HITS

いいえ

25

検索結果の上限

MAX_FILE_BYTES

いいえ

400000

読み取り時の最大ノートサイズ

MAX_WRITE_BYTES

いいえ

350000

書き込み時の最大ノートサイズ

受け入れられる認証ヘッダー:

  • Authorization: Bearer <token>

  • X-Api-Key: <token>

  • X-Obsidian-Token: <token>

MCP ツール

読み取り

  • list_notes — マークダウンパスを一覧表示(プレフィックスはオプション)

  • list_folder — ファイル/ディレクトリを一覧表示(recursive はオプション)

  • read_note — 1 つのノート + シンプルな frontmatter を読み取り

  • search_notes — 大文字小文字を区別しない部分文字列検索

書き込み(MODE=read-write の場合)

  • create_note — マークダウンノートを作成(overwrite はオプション)

  • append_note — ノートに追記

  • update_note — ノート全体を置き換え

  • create_folder — フォルダーツリーを作成

  • rename_path — ファイルまたはフォルダーの名前変更/移動

  • delete_path — マークダウンファイルまたはフォルダーを削除(空でない場合は recursive

安全性:

  • .obsidian.git、隠しパス、.env、またはキーファイルを提供しない

  • 書き込みは .md / .markdown / .txt に限定

  • 保護されたトップレベル構造アンカーは一括削除できない

  • ボールトやこのサーバー設定にシークレットを置かず、git にコミットしないこと

リバースプロキシの例(nginx)

location ^~ /obsidian-mcp/ {
  proxy_pass http://127.0.0.1:8790/;
  proxy_http_version 1.1;
  proxy_set_header Host $host;
  proxy_set_header Authorization $http_authorization;
  proxy_set_header X-Api-Key $http_x_api_key;
  proxy_buffering off;
}

HTTPS 経由でのみ公開し、Node.js プロセスでは BIND=127.0.0.1 のままにしてください。

Grok / エージェントプロンプトスニペット

You have MCP tools for an Obsidian vault via obsidian-vault-mcp.

Rules:
1. First call list_folder path="" to see top-level structure.
2. Read OBSIDIAN-STRUCTURE.md if present before reorganizing.
3. Prefer append_note for changelogs; do not rewrite history casually.
4. Create notes only as .md under clear topic folders.
5. Never store secrets, tokens, private keys, or .env values.
6. Use search_notes before creating near-duplicate docs.
7. Use rename_path to organize; use delete_path only for clearly obsolete drafts.

セキュリティに関する注意

  • このサーバーは強力です。BEARER_TOKEN はパスワードのように扱ってください。

  • 本番環境ではネットワーク分離 + リバースプロキシ認証を推奨します。

  • ボールト全体の書き込みモードは、信頼できる内部エージェント向けに意図的に設けられています。信頼度の低いボットには WRITE_ALLOWLIST を厳格にしてください。

  • .env、トークン、実際のボールトの内容をコミットしないでください。

ライセンス

MIT

A
license - permissive license
Not graded
quality - not tested
C
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
    Not graded
    quality
    B
    maintenance
    Enables AI agents to remotely access and interact with Obsidian vaults via MCP, supporting note operations, tag management, graph queries, and command execution.
    4
    GPL 3.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Exposes an Obsidian notes vault as MCP services, enabling AI assistants to search, read, create, update, and delete notes and folders.
    24
    1
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.

View all related MCP servers

Related MCP Connectors

  • Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.

  • Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.

  • Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.

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

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