Sunub Obsidian MCP Server logo

Sunub Obsidian MCP Server

Searches, reads, organizes, and updates an Obsidian Markdown vault with local hybrid retrieval and context tools.

Install Sunub Obsidian MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sunub-obsidian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@sunub/obsidian-mcp-server"
      ],
      "env": {
        "VAULT_DIR_PATH": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

sunub-obsidian-mcp-server connects MCP clients to a local Obsidian Vault for searching, reading, indexing, and updating Markdown notes. Its retrieval pipeline combines keyword matching, local vector search, rank fusion, reranking, and compressed excerpts for agent context; it falls back to keyword search when local models are unavailable. Use it when an agent needs grounded access to vault notes, frontmatter workflows, context snapshots, or attachment organization without relying on an external search service. The server runs through stdio and requires the vault's absolute path.

Use cases

  • Search a vault for notes related to a keyword or topic
  • Read a specific note with its metadata
  • Assemble compressed context from related documents
  • Generate and write frontmatter properties
  • Organize attachments while repairing document links

Key features

  • Hybrid keyword and semantic vault search
  • Local embeddings, LanceDB retrieval, and reranking
  • Context compression with memory packets
  • Note metadata and Markdown content access
  • Frontmatter generation and writing
  • Attachment organization with link updates

Tools9

What Sunub Obsidian MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~82 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @sunub/obsidian-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads312Package downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Sunub Obsidian MCP Server works

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:

Terminal
npx @sunub/obsidian-mcp-server setup

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

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Sunub Obsidian MCP Server

sunub-obsidian-mcp-server is an MCP server that connects AI clients to a local Obsidian Vault. Its main tools search and read Markdown notes, list documents, report index status, collect context, load memory snapshots, manage frontmatter properties, and organize attachments while updating links.

Run `npx @sunub/obsidian-mcp-server setup` to install the local models used for semantic search and reranking, then register `npx -y @sunub/obsidian-mcp-server@latest` as a stdio MCP server. Set `VAULT_DIR_PATH` to the absolute path of your Obsidian Vault.

Yes, sunub-obsidian-mcp-server can be registered in Cursor as an MCP server. Use the stdio configuration with the package command and set `VAULT_DIR_PATH` to the absolute path of the vault.

No, the default retrieval stack runs locally and uses LanceDB, local embedding models, and a local reranker. If those models are not installed, the server falls back to keyword search; an external retrieval backend such as Elasticsearch is described as an alternative.

Semantic search and reranking require the local models installed by `npx @sunub/obsidian-mcp-server setup`. Without them, keyword search still works, but semantic retrieval and reranking are unavailable.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSunub Obsidian MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sunub-obsidian-mcp-server?style=directory)](https://allmcps.com/mcp/sunub-obsidian-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/sunub-obsidian-mcp-server"><img src="https://allmcps.com/api/badge/sunub-obsidian-mcp-server?style=directory" alt="Sunub Obsidian MCP Server on AllMCPs" /></a>