palace-mcp
palace-mcp
Local REST API プラグインを介して Obsidian ボールトを AI アシスタントに公開する MCP サーバーです。
FastMCP で構築されています。エージェントはノートの一覧表示、読み取り、書き込み、検索、削除ができ、さらに Obsidian で現在開いているノートを読み取ることができます。
前提条件
Obsidian に Local REST API プラグインがインストールされ、実行されていること
Python 3.12 以降
uv (推奨) または pip
続行する前に、Obsidian のプラグイン設定から API キーをコピーしてください。
Related MCP server: obsidian-local-mcp
インストール
git clone <repo-url> palace-mcp
cd palace-mcp
uv sync設定
変数 | 必須 | デフォルト | 説明 |
| はい | — | Local REST API プラグインのベアラートークン |
| いいえ |
| Obsidian の REST API が待ち受けるホスト |
| いいえ |
| REST API のポート |
| いいえ |
|
|
| いいえ |
|
|
プラグインの自己署名証明書を使って HTTPS を使用する場合、証明書の検証は自動的にスキップされます。
実行
stdio でサーバーを起動します (MCP クライアントのデフォルトトランスポート):
export OBSIDIAN_API_KEY="your-api-key"
uv run python server.pyまたは FastMCP 経由:
uv run fastmcp run server.pyCursor のセットアップ
MCP 設定 (例: ~/.cursor/mcp.json) に追加します:
{
"mcpServers": {
"obsidian-palace": {
"command": "uv",
"args": ["run", "python", "server.py"],
"cwd": "/path/to/palace-mcp",
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
}
}
}
}保存後、Cursor を再起動するか、MCP サーバーを再読み込みしてください。
ツール
ツール | 説明 |
| ファイルとフォルダを一覧表示します。サブディレクトリのパスを渡すか、空のままでボールトのルートを指定します。 |
| ボールト相対パス (例: |
| 新しいノートを作成するか、既存のノートを上書きします。 |
| ノートの末尾にテキストを追加します。存在しない場合はノートを作成します。 |
| 全文検索を実行し、関連性でランク付けされた一致するファイル名を返します。 |
| Obsidian で現在開いているノートの内容を返します。 |
| ノートを完全に削除します。元に戻せません。注意して使用してください。 |
追記保護
一部のボールトパスは上書き専用として扱われます。追記すると、1 つのノート内に重複したコンテンツが静かに積み重なり、後から検出しにくくなることがあります。
デフォルトでは、append_note は次のパスに一致する場合に拒否されます:
/Context/(Contextフォルダ配下の任意のノート)/System/(Systemフォルダ配下の任意のノート)Index.md(Index.mdという名前の任意のファイル)
これらのノートを置き換えるには、代わりに write_note を使用してください。PALACE_APPEND_DENY 環境変数で拒否リストを上書きできます。
ライセンス
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
- Alicense-qualityDmaintenanceProvides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.36MIT
- Flicense-qualityDmaintenanceA local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.2
- AlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to access and manage your local Obsidian vault through a standardized protocol.142,4721Apache 2.0
- Alicense-qualityDmaintenanceA lightweight MCP server that enables AI assistants to securely read, create, and modify notes in an Obsidian vault, with support for semantic search and web scraping.2,472MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
An MCP server that gives your AI access to the source code and docs of all public github repos
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/anis-meliti/palace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server