Labsco
bezata logo

kObsidian

โ˜… 5

from bezata

Filesystem first MCP server for Obsidian vaults with an LLM-Wiki layer on top.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

kObsidian MCP

Filesystem-first MCP server for Obsidian vaults โ€” with an LLM-Wiki layer on top.

Inspired by Andrej Karpathy's LLM Wiki idea. You curate the sources; the LLM does the bookkeeping.


npm downloads


Install ยท Quick start ยท Architecture ยท LLM Wiki ยท Tools ยท Docs

Docs: ็ฎ€ไฝ“ไธญๆ–‡ / ๆ—ฅๆœฌ่ชž / ํ•œ๊ตญ์–ด

kObsidian MCP server


๐Ÿงฐ The only Obsidian MCP with workspaces. vault.list / vault.select let an LLM discover and switch between your Obsidian vaults in-session โ€” no restart, no config edit, no per-tool path threading. Backwards compatible with OBSIDIAN_VAULT_PATH. Added in v0.3.0. See docs/WORKSPACES.md.


Why kObsidian

  • Filesystem-first. Operates on your vault directly. Obsidian doesn't need to be running for 55+ of the 66 tools.
  • 66 typed MCP tools across vaults, notes, links, tags, tasks, Dataview, Canvas, Kanban, fenced blocks, Marp, Templates โ€” every one Zod-validated with structuredContent output and the full 4-hint MCP annotation set (readOnlyHint, destructiveHint, idempotentHint, openWorldHint).
  • Multi-vault vault.* (v0.3.0). The LLM can vault.list your known Obsidian vaults (discovered from Obsidian's own registry or OBSIDIAN_VAULT_<NAME> env vars) and vault.select between them for the session. Fully backwards compatible: OBSIDIAN_VAULT_PATH stays the default and per-call vaultPath arguments always win.
  • LLM-Wiki orchestration โ€” a wiki.* namespace that turns your vault into a compounding knowledge base: ingest sources, auto-update an index + greppable log, lint for orphans / broken links / stale pages. Agent applies cross-refs via a proposedEdits contract so every write is visible in the transcript.
  • Both transports. Classic stdio for local MCP clients and Streamable HTTP (Hono) for remote, with CORS preflight, MCP-Protocol-Version handling, origin 403, and optional bearer auth โ€” all per the 2025-11-25 spec.
  • Ships everywhere. npm (npx -y kobsidian-mcp), cross-platform .mcpb bundles for Claude Desktop drag-and-drop, a smithery.yaml for Smithery, and a server.json for the MCP Registry. Each .mcpb release asset is VirusTotal-scanned with links appended to the release body.

Obsidian plugins

kObsidian is filesystem-first โ€” 55+ of the 66 tools work against a bare vault directory with no Obsidian plugins installed. The plugins below only matter if you want the specific tool namespaces that depend on them.

Enabling community plugins (one-time, if not already on)

Obsidian ships with community plugins disabled by default. Enable them once per vault:

  1. Open your vault in Obsidian.
  2. Settings (โš™๏ธ, bottom-left) โ†’ Community plugins.
  3. Click Turn on community plugins.
  4. Browse โ†’ search โ†’ Install โ†’ Enable.

Required for the REST-bridged tools

Obsidian Local REST API (by Adam Coddington) โ€” needed for:

  • workspace.* (activeFile, openFile, navigate, closeActiveFile, toggleEditMode)
  • commands.* (execute, list)
  • dataview.query / dataview.listByTag / dataview.listByFolder / dataview.table (runtime DQL โ€” the offline dataview.fields.* / dataview.index / blocks.* tools work without it)
  • templates.use with engine: "templater"

Setup after install:

  1. Enable the plugin.
  2. Open its settings โ€” scroll to API key โ†’ click Copy (or Reset first if you want a fresh one).
  3. Paste that key as OBSIDIAN_REST_API_KEY in your MCP client config's env: block. The OBSIDIAN_API_URL default (https://127.0.0.1:27124) works out of the box.

Leave the plugin running while you use the REST-bridged tools โ€” the endpoint is local-only (127.0.0.1) so nothing leaves your machine.

Enhances (but not required for) specific tool namespaces

PluginLinkWhat it unlocks
Dataviewid=dataviewAll dataview.* tools still work on the raw markdown; Dataview plugin is what makes DQL queries in dataview.query* actually execute. Also renders your fields + queries visually inside Obsidian.
Templaterid=templater-obsidianRuntime template rendering via the REST API (templates.use with engine:"templater"). The offline filesystem engine (templates.use with engine:"filesystem") and templates.list work without it.
Marpid=marp-slidesMarp marp.* tools parse + edit Marp-front-matter markdown even without the plugin; the plugin is what renders slides / exports to PDF inside Obsidian.
Kanbanid=obsidian-kanbankanban.* tools read/write the plain markdown board format regardless of plugin; the plugin is what renders the board as draggable columns inside Obsidian.
Tasksid=obsidian-tasks-plugintasks.* tools understand the Tasks-plugin emoji syntax (๐Ÿ“… โณ ๐Ÿ›ซ โœ… ๐Ÿ”ผ ๐Ÿ”) regardless of plugin; the plugin is what provides filtering / querying / toggling inside Obsidian.

The obsidian://show-plugin?id=โ€ฆ links jump straight to the plugin in Obsidian's in-app browser โ€” click one with Obsidian open and it deep-links to the install screen.

TLDR

You want to โ€ฆMinimum you need
Use notes.* / tags.* / links.* / stats.vault / tasks.* / wiki.* / kanban.* / blocks.* / marp.* / canvas.* / templates.list + templates.use (engine:"filesystem") / offline dataview.*Just a vault path. No plugins required.
Use workspace.* / commands.*+ Local REST API plugin + API key env var
Run live DQL queries (dataview.query / dataview.listBy* / dataview.table)+ Local REST API + Dataview
Run Templater templates at runtime+ Local REST API + Templater

No combination of plugins makes kObsidian depend on Obsidian being running โ€” the REST-bridged tools just return a clear error if the plugin isn't reachable, and the filesystem-first tools keep working.


Example use cases

The same primitives cover several real-world flavors of knowledge base. Three worked examples below; longer walkthroughs in docs/examples.md.

A. Personal research wiki

You: "Ingest this paper on in-context learning: <url or pasted markdown>"
LLM:  wiki.ingest title="In-Context Learning โ€” A Survey" sourceType=paper
        tags=[icl, prompting] relatedConcepts=[In-Context Learning, Few-Shot Prompting]
        relatedEntities=[Brown 2020]
      โ†’ wiki/Sources/in-context-learning-a-survey.md
      โ†’ proposedEdits:
          โ€ข createStub  wiki/Concepts/in-context-learning.md
          โ€ข createStub  wiki/Concepts/few-shot-prompting.md
          โ€ข createStub  wiki/Entities/brown-2020.md
          โ€ข insertAfterHeading  wiki/index.md#Sources
      LLM applies each via notes.create / notes.edit (mode: "after-heading").

B. Architecture Decision Records (ADRs) for a codebase

Model each ADR as a Source, architectural patterns as Concepts, and services / teams / libraries as Entities. The wiki becomes your ADR archive with cross-links you never have to maintain by hand.

You: "Record ADR-004: we're switching internal service comms from REST
      to gRPC. Context: <paste>"
LLM:  wiki.ingest title="ADR-004 โ€” gRPC for internal service comms"
        sourceType=note tags=[adr, architecture, rpc]
        relatedConcepts=[gRPC, Service Mesh, Internal RPC]
        relatedEntities=[order-service, payment-service, inventory-service]
      โ†’ wiki/Sources/adr-004-grpc-for-internal-service-comms.md
      โ†’ proposedEdits:
          โ€ข createStub   wiki/Concepts/grpc.md
          โ€ข createStub   wiki/Concepts/service-mesh.md
          โ€ข insertAfterHeading  wiki/Entities/order-service.md#Notable Facts
          โ€ข insertAfterHeading  wiki/Entities/payment-service.md#Notable Facts
          โ€ข โ€ฆ

Three weeks later โ€”
You: "Why did we pick gRPC for internal comms?"
LLM:  wiki.query "grpc internal comms"
      notes.read top matches
      โ†’ "Per [[wiki/Sources/adr-004-grpc-for-internal-service-comms.md|ADR-004]],
         chosen over REST because of native streaming + typed schemas; tradeoff
         accepted: browser clients still use REST via an edge gateway
         ([[wiki/Concepts/service-mesh.md]])."

C. Codebase wiki (design docs + post-mortems + RFCs)

Engineering teams abandon wikis because nobody updates them. Let the LLM do it. Ingest design docs, RFCs, and post-mortems as Sources; architectural patterns become Concepts; services and teams become Entities.

You: "We had an incident today โ€” payment-service timeouts cascaded
      into order-service. Here's the post-mortem: <paste>"
LLM:  wiki.ingest title="Postmortem 2026-04-10 โ€” Payment timeouts cascade"
        sourceType=other tags=[postmortem, incident, reliability]
        relatedConcepts=[Circuit Breaker, Cascade Failure, Timeout Budget]
        relatedEntities=[payment-service, order-service]
      โ†’ wiki/Sources/postmortem-2026-04-10-payment-timeouts-cascade.md
      โ†’ proposedEdits:
          โ€ข createStub  wiki/Concepts/circuit-breaker.md
          โ€ข createStub  wiki/Concepts/cascade-failure.md
          โ€ข insertAfterHeading  wiki/Entities/payment-service.md#Notable Facts
          โ€ข insertAfterHeading  wiki/Entities/order-service.md#Notable Facts

Periodic housekeeping โ€”
You: "Audit the codebase wiki."
LLM:  wiki.lint
      โ†’ 3 orphan RFCs (unlinked from any Concept; link or archive?)
      โ†’ 1 broken link: [[wiki/Entities/legacy-auth-service.md]]
        (deprecated in Q1; remove the link from
         [[wiki/Sources/adr-002-session-migration.md]]?)
      โ†’ 4 post-mortems past the 180-day stale threshold โ€” tag with
        "needs-review" or re-ingest with updated lessons-learned?
      โ†’ 2 tag singletons: `retry-logic` (merge into `retry-policy`?),
        `observability` (first use; keep).

Why this works for engineering teams

  • The proposedEdits contract means every cross-reference write is visible in the transcript โ€” no silent vault corruption from an LLM hallucination about which services a decision affects.
  • The greppable log format (## [YYYY-MM-DD] ingest | ADR-004 โ€ฆ) makes grep '^## \[' wiki/log.md | tail -20 a valid "what did the team decide recently" query.
  • wiki.lint surfaces broken links to services that were deprecated months ago โ€” the bookkeeping humans never get around to.

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                           MCP Clients                                โ”‚
โ”‚   Claude Code ยท Claude Desktop ยท Cursor ยท VSCode ยท Antigravity ยท Zed โ”‚
โ”‚   JetBrains AI ยท Cline ยท Continue ยท ChatGPT ยท Smithery ยท โ€ฆ           โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                             โ”‚ JSON-RPC 2.0 ยท MCP 2025-11-25
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ–ผ                                          โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ stdio transport  โ”‚                   โ”‚ Streamable HTTP (Hono)  โ”‚
โ”‚                  โ”‚                   โ”‚ + OPTIONS / CORS        โ”‚
โ”‚                  โ”‚                   โ”‚ + MCP-Protocol-Version  โ”‚
โ”‚                  โ”‚                   โ”‚ + Origin 403 / bearer   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚                                      โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                            โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚          McpServer               โ”‚
          โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
          โ”‚  โ”‚  90 Tools  โ”‚ โ”‚ 4 Resources โ”‚  โ”‚
          โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
          โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
          โ”‚  โ”‚ 3 Prompts  โ”‚ โ”‚ structured  โ”‚  โ”‚
          โ”‚  โ”‚            โ”‚ โ”‚   content   โ”‚  โ”‚
          โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚
                       โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚      Domain layer (pure)         โ”‚
          โ”‚  notes ยท links ยท tags ยท tasks    โ”‚
          โ”‚  dataview ยท canvas ยท kanban      โ”‚
          โ”‚  blocks ยท marp ยท templates       โ”‚
          โ”‚  wiki/ orchestration             โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                 โ”‚                 โ”‚
                 โ–ผ                 โ–ผ
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ”‚  vault/ (FS) โ”‚   โ”‚ Obsidian Local REST  โ”‚
         โ”‚ authoritativeโ”‚   โ”‚ API plugin (optional)โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Full module map in docs/architecture.md.


LLM Wiki (60 seconds)

The tedious part of maintaining a knowledge base is not the reading or the thinking โ€” it's the bookkeeping. Humans abandon wikis because the maintenance burden grows faster than the value. LLMs don't get bored.

kObsidian implements the LLM Wiki pattern from Andrej Karpathy's gist: a persistent, compounding knowledge base the LLM maintains. The vault becomes a private, curated Memex (Vannevar Bush, 1945) where cross-references, log-keeping, and lint are the LLM's job while you focus on curating sources and asking questions.

"Instead of just retrieving from raw documents at query time, the LLM incrementally builds and maintains a persistent wiki โ€” a structured, interlinked collection of markdown files that sits between you and the raw sources." โ€” Andrej Karpathy

              User drops a source
                      โ”‚
                      โ–ผ
            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    proposedEdits
            โ”‚     wiki.ingest      โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                      โ”‚
                       โ”‚ creates 1 file                   โ–ผ
                       โ”‚              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                       โ–ผ              โ”‚ LLM applies edits via        โ”‚
              wiki/Sources/           โ”‚  notes.edit (after-heading)  โ”‚
              <slug>.md               โ”‚  notes.edit (replace)        โ”‚
                       โ”‚              โ”‚  notes.create                โ”‚
                       โ”‚ appends      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ–ผ
                 wiki/log.md

   Anytime: wiki.query   โ†’ top pages โ†’ notes.read โ†’ cited synthesis
   Periodic: wiki.lint   โ†’ orphans ยท broken ยท stale ยท missing ยท tag-drift
   Curate:   wiki.summaryMerge โ€” add cited section to concept/entity page

Default layout under the vault:

wiki/
โ”œโ”€โ”€ Sources/           per-source summary pages
โ”œโ”€โ”€ Concepts/          topic / idea pages (LLM-maintained)
โ”œโ”€โ”€ Entities/          people / places / orgs / works
โ”œโ”€โ”€ index.md           categorized catalog (wiki.indexRebuild)
โ”œโ”€โ”€ log.md             greppable chronological log
โ””โ”€โ”€ wiki-schema.md     vault-local copy of the contract

The key design decision is that wiki.ingest never rewrites cross-references blindly. It creates exactly one file (the Sources page), appends one file (log.md), and returns a proposedEdits array the agent applies with existing notes.* tools. Every write is visible in the transcript โ€” so LLM hallucinations show up as reviewable edits rather than silent vault corruption.

Full contract in docs/wiki.md.

Claude Code skills

Four skills at skills/ trigger on natural language: wiki-bootstrap, wiki-ingest, wiki-query, wiki-lint. Copy or symlink them into ~/.claude/skills/ โ€” see skills/README.md.


Tool surface

66 MCP tools across 16 namespaces (v0.2.5 consolidated from ~90 to 62; v0.3.0 added the vault.* namespace for multi-vault support โ€” see CHANGELOG for the full history). Always-current inventory at docs/tool-inventory.json.

NamespaceCountHighlights
vault.*4list ยท current ยท select ยท reset โ€” multi-vault discovery and session switching (v0.3.0)
notes.*8read (content/metadata/stats via include) ยท create (note or folder) ยท edit (replace/append/prepend/after-heading/after-block) ยท frontmatter ยท delete ยท move ยท list ยท search
tags.*4modify (add/remove/replace/merge) ยท search ยท analyze ยท list
links.*8Backlinks ยท outgoing ยท broken ยท orphans ยท hubs ยท graph ยท health ยท connections
stats.*1stats.vault (per-note stats moved into notes.read)
tasks.*5Tasks-plugin format (๐Ÿ“… โณ ๐Ÿ›ซ โœ… ๐Ÿ”ผ ๐Ÿ”) โ€” search ยท create ยท toggle ยท updateMetadata ยท stats
dataview.*7query + sugar wrappers (listByTag/listByFolder/table) ยท index ยท fields.read ยท fields.write
blocks.*3Unified fenced-block API (list/read/update) across dataview, dataviewjs, mermaid
marp.*2read (deck/slides/slide) ยท update (slide/frontmatter)
kanban.*3parse ยท stats ยท card (add/move/toggle)
canvas.*4create ยท parse ยท connections ยท edit (add-node/add-edge/remove-node)
templates.*2list ยท use (engine ร— action)
workspace.*5Live Obsidian UI bridge (requires Local REST API plugin)
commands.*2list (with optional query) ยท execute
wiki.*7init ยท ingest ยท log ยท indexRebuild ยท query ยท lint ยท summaryMerge
system.*1version

Client-safety annotations (MCP 2025-11-25):

HintTools
readOnlyHint: true (clients can auto-approve)47
destructiveHint: true (clients prompt more firmly)6
idempotentHint: true (safe to retry)12
openWorldHint: true (reaches outside the vault)16

MCP resources (URI-addressable; any client can browse without tool calls):

kobsidian://wiki/index              wiki/index.md
kobsidian://wiki/log                wiki/log.md
kobsidian://wiki/schema             wiki/wiki-schema.md
kobsidian://wiki/page/{+path}       any Sources/Concepts/Entities page

MCP prompts (for clients that don't consume the skills/ files): ingest-source, answer-from-wiki, health-check-wiki.

Details in docs/tools.md.


Docs

Localized docs are available in ็ฎ€ไฝ“ไธญๆ–‡, ๆ—ฅๆœฌ่ชž, and ํ•œ๊ตญ์–ด.

architecture.mdStack, module map, layering rules
wiki.mdLLM-Wiki contract, loop, frontmatter, lint categories
examples.mdPersonal research wiki ยท engineering ADRs ยท codebase wiki โ€” end-to-end
tools.mdNamespace table, annotations, resources, prompts
SECURITY.mdOrigin/CORS, VirusTotal scans, env hygiene
TESTING.mdbun run โ€ฆ commands + coverage
ENVIRONMENT.mdEvery env var with defaults
MIGRATION.mdUpgrade notes

Roadmap

The next two milestones are tracked in TODO.md:

  • v0.4 โ€” Obsidian LiveSync bridge. Free, end-to-end-encrypted vault access via the community Self-Hosted LiveSync plugin (CouchDB / S3 / R2 / WebRTC peer) โ€” so an MCP client can reach the same Obsidian vault from any machine the user owns, without Obsidian itself being live.
  • v0.5 โ€” Cross-semantic vault verification. A wiki.crossCheck tool that reconciles two or more LiveSync-paired vaults at the wiki layer, gated by a new schema_version frontmatter field that uses the project's semver discipline as the compatibility contract.

TODO.md carries the motivation, the per-milestone task breakdown, and the rules for how items move from there into the CHANGELOG.


Development

bun install
bun run typecheck
bun run lint
bun run test          # 56 tests across 14 files
bun run build         # node-target stdio.js + bun-target http.js
bun run inventory     # regenerate docs/tool-inventory.json

Project conventions in AGENTS.md.


Security & supply chain

  • Every .mcpb release asset is VirusTotal-scanned. The Release workflow uploads each kobsidian-<platform>.mcpb bundle to VirusTotal via crazy-max/ghaction-virustotal@v4 right after the release is published, then appends the analysis links to the release body. Any user installing from a GitHub release can click through to the public VirusTotal report for their platform's bundle before they run it โ€” no trust in the maintainer required.

  • Transport hardening. Streamable HTTP validates Origin against an allowlist (403 on mismatch), implements CORS preflight (OPTIONS /mcp โ†’ 204 + Access-Control-*), requires or defaults MCP-Protocol-Version, and supports optional bearer auth via KOBSIDIAN_HTTP_BEARER_TOKEN. stdio has no network surface.

  • Pinned SDK floor. @modelcontextprotocol/sdk@^1.26.0 โ€” mitigates GHSA-345p-7cg4-v4c7 (cross-client response leak) and CVE-2026-0621 (UriTemplate ReDoS). This repo pins 1.29.0.

  • npm Trusted Publishing. No long-lived NPM_TOKEN is stored in the repo. GitHub Actions mints a short-lived OIDC token on every tag push and the npm CLI exchanges it for a one-time publish token scoped to this exact workflow file (.github/workflows/release.yml on the bezata/kObsidian repo). Provenance attestations are automatic โ€” every published version has a cryptographically-linked build statement pointing at the exact Actions run that produced it. Forks, other branches, or modified workflow files cannot publish โ€” the OIDC audience claim won't match.

Full notes in docs/SECURITY.md.


Compatibility notes

  • Protocol version โ€” 2025-11-25 (current MCP spec). HTTP clients without MCP-Protocol-Version fall back to 2025-03-26 per spec; explicit-but-unsupported versions return 400.
  • Dataview split โ€” offline tools index frontmatter / inline / list / task / fenced dataview / fenced dataviewjs blocks. Runtime DQL is delegated to Obsidian + Dataview through the Local REST API. DataviewJS is source-preserving but not executed inside this server.
  • Mermaid + Marp โ€” source-preserving parse/edit only; rendering is the client's job.
  • SDK floor โ€” @modelcontextprotocol/sdk@^1.26.0 (mitigates GHSA-345p-7cg4-v4c7 cross-client response leak + CVE-2026-0621 UriTemplate ReDoS). This repo pins 1.29.0.