MCP bridge for the Mnemo second brain — query your LightRAG-backed knowledge graph from Claude Code, Cursor, Cline, and other MCP-compatible AI tools.
Project description
mnemo-brain-mcp
MCP (Model Context Protocol) bridge to query your Mnemo second brain from Claude Code, Cursor, Cline, Windsurf, and any MCP-compatible AI tool.
What is this?
This is a friendly fork of desimpkins/daniel-lightrag-mcp. The protocol logic is identical; the package is renamed for one reason: a clean PyPI install for Mnemo users.
If you're using a standalone LightRAG server (not Mnemo), the upstream package works fine — and you'll get upstream's updates faster.
Install
pip install mnemo-brain-mcp
After install the mnemo-brain-mcp command is on your PATH.
Configure
Point the bridge at your local LightRAG-API server (Mnemo runs it at 127.0.0.1:9621 by default):
Claude Code
Edit ~/.claude/claude_mcp_config.json (or run claude mcp add):
{
"mcpServers": {
"mnemo-brain": {
"command": "mnemo-brain-mcp",
"env": {
"LIGHTRAG_BASE_URL": "http://localhost:9621",
"LIGHTRAG_API_KEY": "<paste contents of secrets/lightrag_api_key.txt>"
}
}
}
}
Restart Claude Code. Try:
"What does my brain know about my current projects?"
Cursor
Settings → MCP → Add new MCP server. Same JSON shape as above.
Cline / Windsurf
See their docs for the mcpServers config location — the JSON shape is the same.
What this gives you
22 tools over MCP, including:
| Tool | Purpose |
|---|---|
query_text / query_text_stream |
Hybrid semantic + graph search |
get_knowledge_graph |
Subgraph around a label |
get_graph_labels |
All entity labels |
check_entity_exists |
Quick existence probe |
get_documents |
List indexed sources |
get_health |
Server health |
insert_text / update_entity / delete_document / ... |
Write operations (be careful — see below) |
For the full tool list see the upstream docs in the archive/ directory.
Security note
This bridge exposes write tools (insert_text, update_entity, delete_document, ...). Granting your coding tool access to this MCP server grants it write access to the LightRAG knowledge graph.
For Mnemo specifically: the canonical writer to your Obsidian vault is the Telegram bot. Anything an MCP client insert_text's into the graph lives only in the LightRAG index, not in your Markdown notes. To write to your vault, message the bot.
Credit
Original code by @desimpkins. Renamed and republished with thanks. MIT-licensed both upstream and here.
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnemo_brain_mcp-0.1.0.tar.gz.
File metadata
- Download URL: mnemo_brain_mcp-0.1.0.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41dc62b8e8bda01125c000f3d96c09bbcae757eb6e21e79efc51ab9da11d1cea
|
|
| MD5 |
be950e34a81d299f3843cbc460f6145d
|
|
| BLAKE2b-256 |
69ed21c7d316eac311afa48eb94d253707ca003f9dbce30e4196ade49aadaeb3
|
File details
Details for the file mnemo_brain_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mnemo_brain_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
361c5b3892f0beff36773c773d1982e8a2a918d77de239ef005aa55e8ee81480
|
|
| MD5 |
dabdfc5167fbb326bfed9087e0770940
|
|
| BLAKE2b-256 |
48cffda9d72f15cc9b4d09ec13d84231524375890b2389b2ffde037c1fdd008e
|