SO

stevenstavrakis/obsidian-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

749 stars 96 forks 품질 81 트렌드 37MIT

옵시디언용 간단한 MCP 서버

개요

MCP(모델 컨텍스트 프로토콜) 서버로, AI 비서가 Obsidian 금고와 상호작용할 수 있게 하여 노트 및 태그를 읽고, 작성하며, 편집하고 관리할 수 있는 도구를 제공합니다. 이 MCP는 읽기 및 쓰기 권한이 있습니다(허용하신다면). 부탁드립니다. Obsidian-mcp로 노트를 관리하기 전에 꼭 Obsidian 금고 백업을 하세요. git을 사용하는 것을 추천하지만, 어떤 백업 방법이든 가능합니다. 이 도구들은 테스트되었지만 철저하지는 않았고, 이 MCP는 현재 활발히 개발 중입니다. - 금고 내 노트 읽기 및 검색 - 새 노트 및 디렉터리 생성 - 기존 노트 편집 - 노트 이동 및 삭제 - 태그 관리(추가, 제거, 이름 변경) - 금고 내용 검색 - Node.js 20 이상 (더 낮음에도 작동할 수 있지만 테스트해보진 않았다) - 흑요석 금고 Claude Desktop 설정에 추가하세요: - macOS: ~/라이브러리/애플리케이션 지원/Claude/claude_desktop_config.json - Windows: %APPDATA%\Claude\claude_desktop_config.json /path/to/your/vault를 Obsidian Vault로 가는 절대 경로로 바꿔보세요.

개요(AI 번역)

MCP 호환 어시스턴트가 명시적으로 구성된 Obsidian 금고를 안전하게 읽고 수정할 수 있도록 하는 로컬 모델 컨텍스트 프로토콜 서버입니다.

버전 2는 기본적으로 MCP [2026-07-28와 2025년 버전 클라이언트를 모두 지원하며, Node.js 22 이상이 필요합니다. Markdown 파일과 직접 작동하므로 Obsidian이 열려 있을 필요가 없습니다. 레거시 프로토콜과 v1 위치-경로 호환성은 폐기되었으며, 정확한 마이그레이션 지침을 stderr로 출력합니다.

[! 중요] MCP 클라이언트는 파괴 도구를 호출할 수 있습니다. 중요한 볼트를 백업하고, 클라이언트 권한 프롬프트를 검토하며, 동시에 편집된 노트에 대한 수정 전제 조건을 사용할 수 있습니다.

퀵 스타트

Node.js 22세 이상 이상이 필요합니다:

패키지를 전역적으로 설치하지 않고 npx로 실행하세요. 주요 버전을 고정하면 향후 주요 버전과 자동으로 교차하지 않고 호환되는 2.x 업데이트를 받습니다:

MCP 클라이언트가 stdio에서 같은 명령을 실행하도록 설정하세요:

또는 패키지를 전역적으로 설치하고 "command": "obsidian-mcp"를 사용하고, "serve"부터 시작하는 동일한 인수로 사용합니다:

각 볼트는 이미 .obsidian 디렉터리를 포함해야 하며, 절대 경로를 사용해 구성되어야 합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Obsidian MCP

A local Model Context Protocol server that lets MCP-compatible assistants safely read and modify explicitly configured Obsidian vaults.

Version 2 supports both MCP 2026-07-28 and 2025-era clients by default, and requires Node.js 22 or newer. It works directly with Markdown files, so Obsidian does not need to be open. Legacy protocol and v1 positional-path compatibility are deprecated and print exact migration instructions to stderr.

[!IMPORTANT] MCP clients can invoke destructive tools. Back up important vaults, review client permission prompts, and use revision preconditions for concurrently edited notes.

Quick start

Node.js 22 or newer is required:

node --version # v22 or newer

Run with npx without installing the package globally. Pinning the major version receives compatible 2.x updates without automatically crossing a future major version:

npx -y obsidian-mcp@2 serve --vault notes=/absolute/path/to/vault

Configure an MCP client to launch the same command over stdio:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "obsidian-mcp@2", "serve", "--vault", "notes=/absolute/path/to/vault"]
    }
  }
}

Alternatively, install the package globally and use "command": "obsidian-mcp" with the same arguments beginning at "serve":

npm install -g obsidian-mcp@2

Each vault must already contain an .obsidian directory and must be configured using an absolute path.

Both protocol eras are served from the same tool definitions. After confirming that your MCP client negotiates 2026-07-28, you may opt into modern-only mode by adding "--legacy", "reject" to args.

Vault ids use lowercase letters, digits, _, and -, must begin with a letter, and are the values assistants pass to tools. Up to ten vaults may be configured. Repeat --vault to expose more than one vault:

obsidian-mcp serve \
  --vault work=/Users/me/Documents/WorkVault \
  --vault personal=/Users/me/Documents/PersonalVault

Network, removable, hidden, and synced locations are allowed because an explicit --vault is treated as authorization; the same containment protections apply to every location.

Design principles

  • Vault access is explicitly allowlisted at process startup.
  • Every tool path is vault-relative, segment-checked, and blocked from symlinks and reserved state.
  • File mutations are journaled, conflict-checked, atomically replaced, and rolled back as one transaction.
  • The server never listens on a network interface or sends telemetry.
  • stdout is reserved exclusively for MCP messages; structured diagnostics go to stderr.
  • Results are bounded, paginated where appropriate, and available as both text and structured content.

Tools

| Tool | Purpose |

GitHub에서 전체 README 보기

설치

npx -y obsidian-mcp@2 serve --vault notes=/absolute/path/to/vault
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "obsidian": { "command": "npx", "args": ["-y", "obsidian-mcp@2", "serve", "--vault", "notes=/absolute/path/to/vault"] } } }