Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"obsidian": {
"env": {
"LOGGING_LEVEL": "info",
"VAULT_DIR_PATH": "/abs/path/to/your/vault"
},
"args": [
"-y",
"@sunub/obsidian-mcp-server@latest"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
obsidian-mcp-server는 Obsidian Vault의 Markdown 문서를 AI 에이전트가 조회하고, 검색하고, 요약할 수 있게 해주는 MCP 서버입니다.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@sunub/obsidian-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @sunub/obsidian-mcp-server against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in productivity / writing
Persistent memory using a knowledge graph
Official Miro MCP server - Supports context to code and creating diagrams, docs, and data tables.
a self-hosted project management & Kanban solution + Instant shareable boards
All-in-one local AI hub for Obsidian — LLM chat with vault tools, MCP servers, RAG, workflow automation, encryption, and edit history. Fully private, no cloud required.
MCP Security Weekly
Get CVE alerts and security updates for ai.smithery/sunub-obsidian-mcp-server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
obsidian-mcp-server는 Obsidian Vault의 Markdown 문서를 AI 에이전트가 조회하고, 검색하고, 요약할 수 있게 해주는 MCP 서버입니다.
이 프로젝트는 단순히 문서를 읽어오는 것을 넘어, transformers.js를 활용한 로컬 하이브리드 검색 기능을 제공하며, 터미널에서 즉시 Vault와 대화할 수 있는 대화형 CLI AI Agent UI를 포함하고 있습니다.
@huggingface/transformers를 사용하여 임베딩 및 리랭킹 모델을 Node.js 프로세스 내에서 직접 실행 (외부 API 서버 불필요).vault, action="search"): 키워드와 의미 기반 검색을 동시에 수행하여 관련성 높은 문서 탐색.vault, action="read"): 특정 노트의 본문 및 메타데이터 조회.vault, action="list_all"|"stats"): Vault의 전반적인 상태와 파일 목록 확인.vault, action="collect_context"): 특정 주제와 연관된 고밀도 지식 패킷 생성.vault, action="load_memory"): 저장된 메모리 스냅샷 호출.generate_property|write_property): AI 기반 메타데이터 생성 및 반영.organize_attachments): 문서 내 이미지를 전용 폴더로 자동 이동 및 링크 업데이트.시맨틱 검색 및 리랭킹 기능을 활성화하려면 아래 명령어를 통해 필요한 로컬 모델을 다운로드해야 합니다.
# 로컬 임베딩 및 리랭킹 모델 설치
npx @sunub/obsidian-mcp-server setup
또는 이미 패키지를 설치했다면:
obsidian-mcp-server setup
이 명령어는 Xenova/paraphrase-multilingual-MiniLM-L12-v2(임베딩)와 Xenova/bge-reranker-base(리랭킹) 모델을 다운로드하여 로컬 캐시에 저장합니다.
| 환경변수 | 기본값 | 역할 | 필수 여부 |
|---|---|---|---|
VAULT_DIR_PATH | — | Obsidian Vault 절대 경로 | 필수 |
LLM_API_URL | http://127.0.0.1:8080 | CLI UI용 채팅 모델 API 엔드포인트 | CLI 사용 시 필수 |
LLM_CHAT_MODEL | llama3 | 채팅에 사용할 모델명 | CLI 사용 시 필수 |
LOGGING_LEVEL | info | 로그 수준 (debug / info / warn / error) | 선택 |
각 클라이언트 설정에서 env.VAULT_DIR_PATH를 본인의 Vault 경로로 수정하여 사용하세요.
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "@sunub/obsidian-mcp-server@latest"],
"env": {
"VAULT_DIR_PATH": "/Users/username/Documents/MyVault"
}
}
}
}
기존의 키워드 검색만으로는 찾기 힘든 의미적 연관성을 잡기 위해 다음과 같은 파이프라인을 거칩니다:
Indexer를 통해 정확한 단어 매칭 결과 추출.transformers.js 임베딩을 사용하여 의미적으로 유사한 청크 탐색.BGE Reranker 모델로 다시 평가하여 최종 순위 결정.모델이 설치되지 않은 경우 자동으로 키워드 전용 모드로 동작하며, 터미널에 npx @sunub/obsidian-mcp-server setup 실행 권장 메시지를 표시합니다.
이 프로젝트에는 Obsidian Vault에 최적화된 터미널 기반 AI 채팅 인터페이스가 내장되어 있습니다.
/search, /read, /index 등 MCP 도구를 CLI에서 직접 명령어로 호출 가능합니다.llama.cpp 또는 Ollama와 같은 서버를 OpenAI 호환 모드로 띄웁니다.
llama-server -m models/gemma-2-9b-it.Q4_K_M.gguf --port 8080# 환경변수와 함께 실행
VAULT_DIR_PATH="/your/vault" LLM_API_URL="http://localhost:8080" npx @sunub/obsidian-mcp-server
/search <keyword>: 하이브리드 검색 실행/read "filename": 특정 문서 읽기/stats: Vault 상태 확인/index: 벡터 DB 재색인 강제 실행/tools: 사용 가능한 모든 MCP 도구 목록 확인/help: 도움말 보기Apache-2.0