Mnemo — Personal Knowledge Graph for Obsidian
Turn your Obsidian vault into a queryable knowledge graph with hybrid search (vector + graph traversal).
Features
- Automatic Graph Building — Parses
[[wikilinks]], YAML frontmatter, and tags from your Obsidian vault into a NetworkX knowledge graph - Hybrid Search — Combines vector similarity search with graph-based multi-hop traversal
- Ontology Classification — Auto-classifies entities (Person, Concept, Project, Tool, Insight, etc.)
- Knowledge Collectors — Web clipping, trust evaluation, and automated knowledge pipeline
- REST API — FastAPI server for programmatic access
- Obsidian Plugin — Companion plugin for in-vault queries (see
obsidian-plugin/) - CLI Interface — Full-featured command-line tool for graph operations
Quick Start
Option 1 — uvx (recommended, no install needed)
uvx --from mnemo-secondbrain mnemo start /path/to/your/vault
That's it. One command builds your knowledge graph and starts the API server.
Option 2 — pip
pip install mnemo-secondbrain
mnemo start /path/to/your/vault
Option 3 — Docker
docker run -p 7890:7890 -v /path/to/your/vault:/vault jini92/mnemo /vault
Connect Obsidian Plugin
- Open Obsidian → Settings → Community plugins → search Mnemo SecondBrain → Install & Enable
- In the Mnemo plugin settings, set Server URL to
http://localhost:7890 - Press
Ctrl+Shift+Mto search your knowledge graph
Advanced Usage
# Build graph only (no server)
mnemo build /path/to/your/vault
# Start server only (after building)
mnemo serve --port 7890
# Query from CLI
mnemo query "machine learning fundamentals"
# Show graph statistics
mnemo stats
API Endpoints
| Method | Path | Description |
|---|---|---|
GET |
/api/search |
Hybrid search |
GET |
/api/graph/stats |
Graph statistics |
GET |
/api/graph/node/{id} |
Get node details |
GET |
/api/graph/neighbors/{id} |
Get node neighbors |
Architecture
Obsidian Vault (Markdown + YAML + [[links]])
↓ parse
NetworkX Graph (in-memory)
↓ embed
Vector Index + Graph Index
↓ query
Hybrid Search (vector + graph traversal)
↓ rerank
Results with context
Development
git clone https://github.com/jini92/MAISECONDBRAIN.git
cd MAISECONDBRAIN
pip install -e ".[dev,all]"
pytest
License
MIT — see LICENSE.
Metadata
Release files for mnemo-secondbrain 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mnemo_secondbrain-0.2.2.tar.gz | 162.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mnemo_secondbrain-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 231.3 kB
Release files / mnemo_secondbrain-0.2.2.tar.gz
| Download URL | mnemo_secondbrain-0.2.2.tar.gz |
|---|---|
| Size | 162.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2a0a10ed1c479a5b9234cd97a6b2fc40adbc7972c3079796c19e5f7db04b6dd
|
|
BLAKE2b-256 checksum How to use checksums |
1a821f36cee29935cec9fdd55e2cb0742827bfc927fd6f5bbd46f37019cf5a4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / mnemo_secondbrain-0.2.2-py3-none-any.whl
| Download URL | mnemo_secondbrain-0.2.2-py3-none-any.whl |
|---|---|
| Size | 68.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e01e18cbae777d7e5e016924490eacd0be3cf2d5f78b8d707f40518488868f1
|
|
BLAKE2b-256 checksum How to use checksums |
e1b737997b6f98f2e22c3bd5bab68429c964f9f24eff698ceb57fc6fe133e557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|