MCP server for Mnemosyne — semantic code retrieval with 6-signal hybrid search and AST-aware compression
Project description
mnemosyne-mcp
MCP server for Mnemosyne — a 6-signal hybrid code retrieval engine that reduces LLM context waste by 73%.
For the full reference, see MCP.md in the repository root.
Install
pip install mnemosyne-mcp
Register with Claude Code
claude mcp add mnemosyne -- mnemosyne-mcp
Or add to your project's .mcp.json:
{
"mcpServers": {
"mnemosyne": {
"command": "mnemosyne-mcp",
"args": []
}
}
}
Tools
mnemosyne.search
Search a codebase using 6-signal hybrid retrieval (BM25 + TF-IDF + symbol matching + usage frequency + predictive prefetch + optional dense embeddings) fused via Reciprocal Rank Fusion. Returns the most relevant code chunks within a configurable token budget, with AST-aware compression.
Parameters:
query(string, required) — natural language or keyword querybudget(integer, default 8000) — maximum token budgetproject_root(string, optional) — path to project root
mnemosyne.index
Index or re-index a codebase. Incremental by default (only processes changed files).
Parameters:
project_root(string, optional) — path to project rootfull(boolean, default false) — force full re-index
mnemosyne.stats
Show index statistics: file count, chunk count, tokens, language breakdown, chunk types.
Parameters:
project_root(string, optional) — path to project root
How it works
Mnemosyne indexes your codebase into local SQLite, scoring every chunk with six retrieval signals fused through Reciprocal Rank Fusion. AST-aware compression then strips boilerplate while preserving function signatures, control flow, and documentation — delivering exactly within your token budget.
Zero runtime dependencies beyond Python 3.11+. No API keys. No cloud services. Everything runs locally.
License
AGPL-3.0 — commercial licensing available from Cast Net Technology.
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 mnemosyne_mcp-0.1.0.tar.gz.
File metadata
- Download URL: mnemosyne_mcp-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f69dce2ce786684257fdc87c9e56c38e78d2368de12c7b7ace8c1a3bba10bf98
|
|
| MD5 |
9da02e6c15a2ffd437d8d8114ab7b2c6
|
|
| BLAKE2b-256 |
1b1f114dc328ecea5c8cde4a99d7e612abb4a45a611d7079cd8615b8543143d3
|
File details
Details for the file mnemosyne_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mnemosyne_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fae2bcb53c9dea3cc83a639bcacfc1581bda584a03e38732405b41384a8d22c5
|
|
| MD5 |
7b1192cf01f5a00b3e3f5cdde858aa64
|
|
| BLAKE2b-256 |
8ded3993a1b94bfb1b1f7bf3a20b397cb273e3b18b080b4e7c368f0a6b8cb040
|