palace-mcp
palace-mcp
Obsidian 볼트를 AI 어시스턴트에게 Local REST API 플러그인을 통해 노출하는 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 플러그인의 Bearer 토큰 |
| 아니요 |
| 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에서 현재 열려 있는 노트의 내용을 반환합니다. |
| 노트를 영구적으로 삭제합니다. 되돌릴 수 없으므로 주의해서 사용하세요. |
추가 보호
일부 보관소 경로는 덮어쓰기 전용으로 취급됩니다. 해당 경로에 추가하면 단일 노트 안에 중복 콘텐츠가 조용히 쌓일 수 있으며, 나중에 감지하기 어렵습니다.
기본적으로 append_note는 다음 패턴과 일치하는 경로에서 거부됩니다:
/Context/(Context폴더 아래의 모든 노트)/System/(System폴더 아래의 모든 노트)Index.md(Index.md라는 이름의 모든 파일)
대신 write_note를 사용하여 해당 노트를 교체하세요. 차단 목록은 PALACE_APPEND_DENY 환경 변수로 재정의할 수 있습니다.
라이선스
MIT
Available Tools
7 toolsactive_noteA
Return the contents of the note currently open in Obsidian.
Inputs: no named parameters. Returns: result
append_noteA
Append text to the end of a note (creates the note if it doesn't exist).
Inputs: path (required), content (required). Returns: result
delete_noteA
Permanently delete a note. Use with care — this is irreversible.
Inputs: path (required). Returns: result
list_notesA
List files and folders. Pass a subdirectory path, or leave empty for the vault root.
Inputs: directory. Returns: result
read_noteA
Read a note's full contents by vault-relative path, e.g. 'People/Alice.md'.
Inputs: path (required). Returns: result
search_notesA
Full-text search the vault; returns matching filenames ranked by relevance.
Inputs: query (required). Returns: result
write_noteA
Create a new note or OVERWRITE an existing one at the given vault-relative path.
Inputs: path (required), content (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool maps to a distinct file operation: listing, reading, writing, appending, searching, accessing the active note, and deleting. There is no meaningful overlap between tool purposes.
Most tools follow a clear verb_note pattern: read_note, write_note, append_note, delete_note, and search_notes. The deviations are minor: list_notes uses plural and active_note is adjective_noun, but the overall convention is still predictable.
Seven tools is a well-scoped set for an Obsidian vault server. Each tool covers a necessary note operation without unnecessary bloat.
The core note lifecycle is covered: list, read, write, append, search, and delete. Missing operations like rename, move, or folder management are minor gaps that agents can usually work around by writing to a new path.
Related MCP Connectors
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides 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.37MIT
- AlicenseNot gradedqualityDmaintenanceA 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.2MIT
- FlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to access and manage your local Obsidian vault through a standardized protocol.142-
- AlicenseNot gradedqualityDmaintenanceA 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.MIT