# sunub-obsidian-mcp-server [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/sunub/obsidian-mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 312  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sunub-obsidian-mcp-server

## Description
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…

## Tools
Capabilities this server exposes over MCP:

- **search** — 키워드와 의미 기반 검색을 결합한 하이브리드 후보 탐색
- **read** — 특정 노트 본문과 메타데이터 조회
- **list_all** — Vault 문서 목록 조회
- **stats** — Vault 및 인덱스 상태 조회
- **collect_context** — 주제로 검색한 문서의 순위, 점수, 일치 조각, 발췌를 배치로 반환
- **write_property** — frontmatter 쓰기
- **tidy_plan** — 첨부 파일, 중복, 무제 노트, 빈 폴더를 정리하는 계획과 미리보기 생성(파일은 바꾸지 않음)
- **plan_apply** — 사용자가 승인한 연산만 실행하고 링크가 같은 파일을 가리키도록 재작성
- **plan_undo** — `plan_apply` 실행을 `runId`로 되돌림

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "sunub-obsidian-mcp-server": {
    "command": "npx",
    "args": ["-y","@sunub/obsidian-mcp-server"],
    "env": {
      "VAULT_DIR_PATH": ""
    }
  }
}
```

**Requires environment variables:** `VAULT_DIR_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What sunub-obsidian-mcp-server does

sunub-obsidian-mcp-server exposes an Obsidian Vault to MCP-compatible clients. It works with Markdown documents stored in a local vault and provides both read-oriented retrieval and controlled write operations. Agents can find relevant notes, inspect their contents and metadata, assemble topic-focused context, create or update frontmatter, and reorganize attachments while updating document links.

The project treats retrieval as an agent context pipeline rather than as a dependency on one particular vector database. Its goal is to identify useful vault documents, select supporting evidence, and reduce that material into excerpts or a `memory_packet` that fits an agent's context window.

## How it works

Search combines exact keyword candidates with semantic matches from a local embedding model and LanceDB. Reciprocal rank fusion combines those result sets, after which a local reranker evaluates the leading candidates. Context collection then selects related documents and returns compressed excerpts, source references, and memory data instead of always passing complete notes to the model.

The default design is local-first: the vault, index, embeddings, and reranking run on the user's machine. If the embedding or reranking models have not been installed, keyword search remains available. The separate `collect_context` and `load_memory` tools support reusable context snapshots, while single-note tasks can use `read` directly.

## Setup and configuration

Node.js 22 or newer and an accessible Obsidian Vault absolute path are required. Install the local retrieval and reranking models with:

```bash
npx @sunub/obsidian-mcp-server setup
```

Register the server in an MCP client using a stdio configuration such as:

```json
{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "@sunub/obsidian-mcp-server@latest"],
      "env": {
        "VAULT_DIR_PATH": "/path/to/your/vault"
      }
    }
  }
}
```

`VAULT_DIR_PATH` must point to the vault's absolute filesystem path. `LOGGING_LEVEL` can change logging between `debug`, `info`, `warn`, and `error`. `LLM_API_URL` and `LLM_CHAT_MODEL` apply to the repository's development CLI, not to the core MCP vault tools.

## Tools and capabilities

- `search` performs hybrid keyword and semantic candidate retrieval.
- `read` returns a note's body and metadata.
- `list_all` lists documents in the vault.
- `stats` reports vault and index status.
- `collect_context` selects related documents and creates a `memory_packet`.
- `load_memory` loads a saved context-memory snapshot.
- `generate_property` proposes frontmatter from document content.
- `write_property` writes frontmatter properties.
- `create_document_with_properties` analyzes a document, then generates and writes its properties as a two-step workflow.
- `organize_attachments` organizes attachments and updates links in documents.

## Limitations and notes

The vault tools depend on a valid `VAULT_DIR_PATH`; an absent or incorrect path prevents vault operations. Semantic retrieval and reranking require the setup command and its locally cached models. Write operations are restricted from writing outside the vault.

The repository also contains a terminal CLI, but it is a development-environment entry point rather than the published package's MCP command. That CLI requires an OpenAI-compatible local LLM endpoint and uses `LLM_API_URL` and `LLM_CHAT_MODEL`. Its conditional RAG behavior collects vault context when vault-related commands, server names, or tool names trigger the relevant path; it does not automatically search the vault for every question.

_Full upstream README: https://allmcps.com/mcp/sunub-obsidian-mcp-server/readme_

