obra/knowledge-graph

68 stars · Last commit 2026-03-22

Query and traverse an Obsidian vault as a knowledge graph. Semantic search, path finding, community detection — all local. Claude Code plugin included.

README preview

# knowledge-graph

Query and traverse an Obsidian vault as a knowledge graph. Semantic search, path finding, community detection, and graph analysis — all local, no cloud APIs.

## What it does

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

## Install

```bash
git clone https://github.com/obra/knowledge-graph.git
cd knowledge-graph
npm install

View full repository on GitHub →