Skip to main content
Glama
obsidian-kb

obsidian-kb

by sanieni6

ObsidianKB MCP Server

Git-backed MCP server for creating and maintaining an Obsidian-style markdown knowledge base.

Implemented Scope

  • Full MCP toolset: kb_create, kb_search, kb_get, kb_update, kb_list, kb_delete, kb_sync

  • Seven skills and templates: bug report, API doc, component doc, changelog, ADR, guide, runbook

  • Frontmatter-aware markdown read/write and path safety checks

  • MiniSearch indexing with filters and field boosting

  • Git pull/commit/push workflow

  • obsidian-kb-mcp init [path] scaffold command

  • CI workflow (.github/workflows/validate.yml)

Related MCP server: Zero Brain MCP Server

Requirements

  • Node.js 20+

  • Git installed and configured

Installation

npm install
npm run build

Usage

Run as MCP server (stdio transport):

node dist/index.js

Initialize a vault scaffold:

node dist/index.js init ./my-kb

Configuration

Create obsidian-kb.config.json in the runtime working directory:

{
  "vault_path": "/absolute/path/to/obsidian-kb",
  "remote": "origin",
  "default_branch": "main",
  "auto_pull_before_read": true,
  "auto_push_after_write": true,
  "default_author": "your-github-username",
  "commit_prefix": "[kb]",
  "search": {
    "boost": {
      "title": 3,
      "tags": 2,
      "body": 1
    },
    "fuzzy": 0.2
  }
}

Environment overrides:

  • OBSIDIAN_KB_VAULT_PATH

  • OBSIDIAN_KB_AUTHOR

  • OBSIDIAN_KB_AUTO_PUSH

Scripts

  • npm run dev - run server in tsx

  • npm run build - bundle with tsup

  • npm run lint - biome check

  • npm run format - biome format

  • npm test - vitest

MCP client example (Cursor)

{
  "mcpServers": {
    "obsidian-kb": {
      "command": "node",
      "args": ["/absolute/path/to/obsidianKB/dist/index.js"],
      "env": {
        "OBSIDIAN_KB_VAULT_PATH": "/absolute/path/to/obsidian-vault",
        "OBSIDIAN_KB_AUTHOR": "your-github-username"
      }
    }
  }
}

Available Tools

7 tools
kb_createD

Inputs: skill (required), title (required), content (required), tags, +3 more.

kb_deleteD

Inputs: path (required), auto_push.

kb_getD

Inputs: path (required).

kb_listD

Inputs: tags, limit, status, section, +1 more.

kb_syncD

Inputs: direction.

kb_updateD

Inputs: path (required), append, content, auto_push, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.1/5.0

    Scored across 7 tools

    Disambiguation4/5

    The tool names suggest distinct operations: create, get, update, delete for individual notes, list for enumeration, search for querying, and sync for external integration. Some overlap exists between get/list/search, but the verbs indicate different intents.

    Naming Consistency5/5

    All tools follow the exact pattern kb_<verb>, using the same namespace and consistent verb style. This creates a predictable and easily navigable API.

    Tool Count5/5

    Seven tools is well-scoped for a knowledge base server, covering CRUD plus search, list, and sync without unnecessary redundancy.

    Completeness4/5

    The set covers core CRUD, querying, and synchronization for an Obsidian-style knowledge base. Missing advanced operations like move or batch, but the main lifecycle is fully represented.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides read and write access to an Obsidian vault by interacting directly with markdown files on disk. Supports searching, listing, reading, creating, editing, and appending notes without requiring any Obsidian plugins.
      3,512 npm
      ISC
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for managing a local, domain-agnostic knowledge base using Markdown notes with frontmatter. Enables AI agents to capture, read, search, link, and maintain notes with atomic writes and privacy controls.
      13
      MIT
    • F
      license
      C
      quality
      D
      maintenance
      MCP server to query and modify an Obsidian vault or any folder of markdown files. It provides search, tag filtering, backlinks, and CRUD operations on notes, with path traversal protection.
      11
      -