Obsidian MCP Server
AI 에이전트가 Obsidian 보관함의 메모, 태그, 프런트매터를 읽고, 쓰고, 검색하고, 편집하게 합니다.
702 GitHub 스타제작 cyanheads라이선스 Apache-2.0업데이트 23일 전
설치 방법
이 MCP는 로컬 방식이에요. 내 컴퓨터에서 실행돼요.
PC에 설치한 앱(Claude Desktop, Claude Code, Cursor, VS Code 등)에서 쓸 수 있어요. 앱을 고르세요:
터미널에 붙여 넣기:
claude mcp add obsidian -e OBSIDIAN_API_KEY="<내 값>" -- npx -y obsidian-mcp-server
채워야 할 것
| 이름 | 설명 | 필수 |
|---|---|---|
OBSIDIAN_API_KEY | Bearer token for the Obsidian Local REST API plugin (Settings → Community Plugins → Local REST API). | 예 |
OBSIDIAN_BASE_URL | Base URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-signed cert; pair with OBSIDIAN_VERIFY_SSL=false). | 아니요 |
OBSIDIAN_VERIFY_SSL | Whether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert. | 아니요 |
OBSIDIAN_REQUEST_TIMEOUT_MS | Per-request timeout in milliseconds. | 아니요 |
OBSIDIAN_ENABLE_COMMANDS | Opt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default — Obsidian commands are opaque and can be destructive. | 아니요 |
OBSIDIAN_READ_PATHS | Optional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments dropped, and names normalized to Unicode NFC; an entry naming the vault root ('.') is rejected at startup. Unset = full vault. Write paths are implicitly readable. Example: 'public/,projects/'. | 아니요 |
OBSIDIAN_WRITE_PATHS | Optional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS stay denied. Example: 'projects/,scratch/'. | 아니요 |
OBSIDIAN_DENY_PATHS | Optional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and tag counts. Unset = nothing denied. Example: 'private/,journal/therapy/'. | 아니요 |
OBSIDIAN_READ_ONLY | Global read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing deployments. | 아니요 |
OBSIDIAN_DELETE_ELICITATION | Opt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a stateful session unless OBSIDIAN_READ_ONLY=true disables the tool. Off by default — the delete runs on the first call, bounded by OBSIDIAN_WRITE_PATHS and OBSIDIAN_READ_ONLY. | 아니요 |
OBSIDIAN_OMNISEARCH_URL | Override URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port. | 아니요 |
MCP_LOG_LEVEL | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). | 아니요 |
준비 끝! 이제 테스트해 보세요
앱을 다시 시작하고 아래 요청 중 하나를 채팅에 붙여 넣으세요:
오늘의 실행 항목을 일간 메모의 Tasks 제목 아래에 추가해 주세요.
가장 많이 쓰는 태그를 나열해 주세요.
무엇인가요
이 서버는 Obsidian Local REST API 플러그인을 통해 에이전트를 Obsidian 보관함에 연결합니다. 에이전트는 메모를 읽고 검색하며, 메모를 만들거나 편집하고, 제목, 블록, 프런트매터 필드 하나를 제자리에서 바꾸고, 태그를 관리할 수 있습니다. 에이전트가 읽거나 쓸 수 있는 폴더를 제한할 수 있습니다.
할 수 있는 일
obsidian_get_note: 메모를 읽습니다obsidian_search_notes: 텍스트, JSONLogic, Omnisearch로 검색합니다obsidian_write_note: 메모 또는 한 섹션을 만들거나 교체합니다obsidian_append_to_note와obsidian_patch_note: 제목이나 필드에 내용을 추가합니다obsidian_replace_in_note: 메모 안에서 검색하고 바꿉니다obsidian_manage_frontmatter와obsidian_manage_tags: 프런트매터와 태그를 편집합니다obsidian_list_notes와obsidian_list_tags: 보관함을 둘러봅니다
언제 쓰나요
- ›에이전트가 회의 메모를 알맞은 제목 아래에 추가하게 하고 싶을 때
- ›많은 메모에 한 번에 태그를 달거나 검색하고 싶을 때
- ›일간 또는 주기적 메모를 업데이트하고 싶을 때
필요한 것
함께 쓰면 좋은 스킬
MCP일까, 스킬일까?
MCP는 에이전트에게 손을 주고, 스킬은 그 손을 제대로 쓰는 법을 알려 줘요. 함께 쓰면 결과가 좋아지고 토큰도 덜 들어요.
자주 묻는 질문
무료이고 오픈소스인가요?
저장소에 라이선스 파일이 있으며 가격은 나열되어 있지 않습니다.
어떤 플러그인이 필요한가요?
Obsidian Local REST API 플러그인입니다.
에이전트가 건드릴 수 있는 것을 제한할 수 있나요?
네. OBSIDIAN_READ_PATHS, OBSIDIAN_WRITE_PATHS, OBSIDIAN_DENY_PATHS, OBSIDIAN_READ_ONLY로 경계를 정할 수 있습니다.
메모를 지울 수 있나요?
네. 기본적으로 확인 없이 지웁니다. 사용자 확인을 요구하려면 OBSIDIAN_DELETE_ELICITATION=true를 설정하세요.
Obsidian 명령을 실행할 수 있나요?
OBSIDIAN_ENABLE_COMMANDS를 켠 경우에만 가능합니다.
어떤 전송 방식을 지원하나요?
STDIO 또는 Streamable HTTP입니다.
작동하지 않을 때
- ›Obsidian이 열려 있고 Local REST API 플러그인이 켜져 있는지 확인하세요.
- ›OBSIDIAN_API_KEY가 플러그인 설정의 키와 같은지 확인하세요.
- ›플러그인 연결과 인증을 확인하려면 obsidian://status 리소스를 읽으세요.
매주 새 스킬 5개. 읽는 데 1분.