obsidian-vault-mcp
Obsidian Vault MCP
ローカルの Obsidian ボールトへの制御されたアクセスを AI エージェントに提供する HTTP Model Context Protocol サーバー。
マークダウンノートの一覧表示、読み取り、検索、作成、更新、名前変更、および慎重な削除を必要とするエージェントランタイム(Grok ボット、Claude、OpenClaw、カスタム MCP クライアント)向けに構築されています。
機能
ストリーミング可能な HTTP MCP エンドポイント(
/mcp)Bearer / API キー認証
ボールト全体モード(
ALLOWLIST=*)またはフォルダーの許可リスト読み取りツール:
list_notes、list_folder、read_note、search_notes書き込みツール:
create_note、append_note、update_note、create_folder、rename_path、delete_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 .環境変数
変数 | 必須 | デフォルト | 説明 |
| はい | — | Obsidian ボールトへの絶対パス |
| はい | — | MCP クライアント用の共有シークレット |
| いいえ | サンプルフォルダー | 相対フォルダーのカンマ区切りリスト、またはボールト全体の場合は |
| いいえ |
| 書き込みスコープ。 |
| いいえ |
|
|
| いいえ |
| リッスンポート |
| いいえ |
| バインドアドレス |
| いいえ |
| メタデータで公開されるパブリックベース URL |
| いいえ |
| 検索結果の上限 |
| いいえ |
| 読み取り時の最大ノートサイズ |
| いいえ |
| 書き込み時の最大ノートサイズ |
受け入れられる認証ヘッダー:
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
This server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, read, and append content to notes in an Obsidian vault via the MCP protocol.2,472BSD Zero Clause
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to remotely access and interact with Obsidian vaults via MCP, supporting note operations, tag management, graph queries, and command execution.4GPL 3.0
- AlicenseNot gradedqualityCmaintenanceExposes an Obsidian notes vault as MCP services, enabling AI assistants to search, read, create, update, and delete notes and folders.241MIT
- FlicenseNot gradedqualityCmaintenanceEnables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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