By obra
Index Obsidian vaults into a local knowledge graph to enable semantic searches, path finding between concepts, community detection, graph analysis, and claim proving or disproving using integrated tools like kg_search and kg_paths—all running via a TypeScript Node.js MCP server.
Query and traverse an Obsidian vault as a knowledge graph. Semantic search, path finding, community detection, and graph analysis — all local, no cloud APIs.
Parses an Obsidian vault into an untyped graph (files = nodes, wiki links = edges), indexes it into SQLite with vector embeddings and full-text search, and exposes 10 operations via CLI and MCP server.
Search: Semantic search via local embeddings, full-text keyword search via FTS5.
Traverse: Find paths between nodes, shared connections, N-hop neighborhoods, local subgraphs.
Analyze: Community detection (Louvain), bridge nodes (betweenness centrality), central nodes (PageRank).
git clone https://github.com/obra/knowledge-graph.git
cd knowledge-graph
npm install
Set your vault path:
export KG_VAULT_PATH=/path/to/your/obsidian/vault
Optionally set the data directory (defaults to ~/.local/share/knowledge-graph):
export KG_DATA_DIR=/path/to/data
Index your vault (first run downloads a 22MB embedding model):
npx tsx src/cli/index.ts index
Then query:
# Look up a node (brief mode — metadata + connections)
npx tsx src/cli/index.ts node "Alice Smith"
# Full content + edge context
npx tsx src/cli/index.ts node "Alice Smith" --full
# Semantic search
npx tsx src/cli/index.ts search "distributed systems framework"
# Full-text keyword search
npx tsx src/cli/index.ts search "distributed systems" --fulltext
# Find paths between two nodes
npx tsx src/cli/index.ts paths "Alice Smith" "Widget Theory"
# Shared connections
npx tsx src/cli/index.ts common "Alice Smith" "Bob Jones"
# Local neighborhood
npx tsx src/cli/index.ts neighbors "Alice Smith" --depth 2
# Subgraph extraction
npx tsx src/cli/index.ts subgraph "Widget Theory" --depth 1
# Community detection
npx tsx src/cli/index.ts communities
# Bridge nodes (connectors between clusters)
npx tsx src/cli/index.ts bridges --limit 10
# Central nodes (PageRank)
npx tsx src/cli/index.ts central --limit 10
All commands return JSON. Names are fuzzy-matched (title, aliases, substring). You can also pass full node IDs (file paths).
This repo is also a Claude Code plugin. Add it to your plugins and the MCP server starts automatically, exposing all 10 operations as tools (kg_node, kg_search, kg_paths, etc.).
The prove-claim skill teaches the agent a structured workflow for investigating claims: decompose into entities, find them via search, trace connections via path traversal, read the evidence, assess and report with citations.
No LLM inside the tool — the agent does the reasoning, the tool provides the data infrastructure.
.md files, extracts YAML frontmatter (via gray-matter), wiki links, inline #tags, and enclosing paragraphs as edge context. Handles malformed YAML gracefully.Xenova/all-MiniLM-L6-v2 via @huggingface/transformers. Runs locally, 22MB quantized model, 384-dimensional embeddings computed from title + tags + first paragraph.--force for a full rebuild.| Role | Package |
|---|---|
| Graph algorithms | graphology |
| Persistence | better-sqlite3 |
| Vector search | sqlite-vec |
| Full-text search | SQLite FTS5 |
| Embeddings | @huggingface/transformers |
| MCP server | @modelcontextprotocol/sdk |
| Tests | vitest (76 tests) |
WHERE embedding MATCH ? AND k = ?, not LIMIT.MIT
Admin access level
Server config contains admin-level keywords
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub obra/knowledge-graphCore skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques
Semantic search for Claude Code conversations. Remember past discussions, decisions, and patterns.
Writing guidance based on William Strunk Jr.'s The Elements of Style (1918)
Experimental skills for Claude Code Superpowers - new techniques and tools under development
BETA: VERY LIGHTLY TESTED - Direct Chrome DevTools Protocol access via 'browsing' skill. Skill mode (17 CLI commands) + MCP mode (single use_browser tool). Zero dependencies, auto-starts Chrome.
Turn your Markdown vault into a searchable knowledge graph that any AI agent can query.
Second Brain automation for Obsidian vaults — entity management, ingestion, compression, and sync via Claude Code skills
AI thinking partner for your Obsidian vault — process, recall, synthesize, research with evidence-backed learning science
Bidirectional knowledge flow between Claude Code and Obsidian — 20 MCP tools, skills, and hooks for PKM
Persistent, compounding knowledge base maintained by LLMs in Obsidian — agent-first edition. Four task-oriented agents (Researcher / Advisor / Curator / Scribe) with citations, confidence, supersession, and rolling session cache. Inspired by Karpathy's LLM Wiki pattern.
Persistent knowledge graph for AI agents — typed entities, closed edge ontology, hybrid search, GQL queries.