Skip to main content
Glama
Vault Knowledge MCP Server

Vault Knowledge MCP Server

vault-knowledge-mcp

A read-only MCP server that turns an Obsidian vault's typed knowledge graph into three tools any MCP client can call. Most knowledge tools can search. Few can tell you where your own notes disagree with each other. This one traverses a six-relation reasoning graph and surfaces the sharpest edge — contradicts. Local-first, stdio, no auth, no cloud, no native build.

The full reasoning lives in docs/EXPLANATION.md.

Tools

Tool

Returns

search_concepts(query, limit=5)

Semantically ranked concept/connection articles.

find_contradictions(scope='all'|'recent_30d')

Active contradicts edges from the reasoning graph.

get_article(slug)

One article with frontmatter, body, and resolved wikilinks.

Related MCP server: vault-master-mcp

Try it — zero config

Ships with a synthetic espresso vault, so it works the moment it installs.

{
  "mcpServers": {
    "vault-knowledge": { "command": "npx", "args": ["-y", "@swins/vault-knowledge-mcp"] }
  }
}

Then ask: "find contradictions in the vault."

Point it at your own vault

{
  "mcpServers": {
    "vault-knowledge": {
      "command": "npx",
      "args": ["-y", "@swins/vault-knowledge-mcp"],
      "env": {
        "VAULT_DB": "/abs/path/.vault-index.db",
        "VAULT_ROOT": "/abs/path/vault"
      }
    }
  }
}

Only knowledge/{concepts,connections,qa} is ever readable. Scope is config-only — never a request parameter, so a client can't widen it.

Requirements

Node ≥ 22.5 (built-in node:sqlite). search_concepts downloads the nomic-embed-text-v1.5 model once on first run.

License

MIT.

Available Tools

3 tools
find_contradictionsFind ContradictionsA

Traverse the typed reasoning graph for active 'contradicts' edges — the sharpest of six relation types. scope='all' or 'recent_30d'. Returns {from_slug, to_slug, confidence, surfaced_at, source_run_id}. Read-only.

Inputs: scope.

get_articleGet ArticleA

Fetch one article by slug with frontmatter, body, and resolved inbound/outbound wikilinks. Reads only files under the configured knowledge allowlist. Read-only.

Inputs: slug (required).

search_conceptsSearch ConceptsA

Semantically search the vault's concept, connection, and Q&A articles for a natural-language query. Returns ranked {slug, title, similarity_score, excerpt, last_modified}. Read-only.

Inputs: query (required), limit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a distinct operation: semantic search, contradiction graph traversal, and article retrieval by slug. No functional overlap.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern: search_concepts, find_contradictions, get_article. Clear and predictable.

    Tool Count5/5

    Three tools is appropriate for a focused read-only knowledge vault. Each tool addresses a core need without redundancy.

    Completeness4/5

    Covers search, contradiction detection, and article retrieval. Lacks a listing or browsing capability, but semantic search mitigates this gap.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers