Memoria

by byronwade

200 downloads
Not rated
GitHub

About

Prevents your AI from breaking code by revealing hidden file dependencies through git forensics.

Details

Author
byronwade
Downloads
200
Categories
Developer Tools, Other

- Volatility Engine – Tracks panic keywords with time-decay and bus factor.
- Entanglement Engine – Finds files that change together >15% of the time.
- Sentinel Engine – Detects stale dependencies (>7 days out of sync).
- Static Import Engine – Finds explicit imports via git grep.
- History Search (The Archaeologist) – Searches git history to understand why code was written.
- 100% local & private – No code uploaded, no API keys needed.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Memoria
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npx -y @byronwade/memoria and add the MCP server configuration to your AI tool (Claude Desktop, Cursor, etc.), then restart the tool. Ask your AI to use the analyze_file tool on any file before editing to get coupled files, risk scores, and stale dependencies.

analyze_file

Returns forensic history, hidden dependencies, and risk assessment. USE THIS before modifying files.

ask_history

Search git history for WHY code was written. IMPORTANT: Use SHORT, SPECIFIC KEYWORDS (e.g., 'serialization', 'race condition', 'timeout'). Do NOT use full sentences or long descriptions - they will return 0 results. Use when asking 'why does this exist?' or before removing code.

get_context

Get relevant memories and context before modifying a file. Returns memories, code graph relationships, and recent high-risk commits. Auto-saves critical discoveries when cloud is configured.

save_lesson

Save a lesson, context, or decision for future AI sessions. Use this when you discover important context that should be remembered.

extract_memories

Extract memories from code comments (IMPORTANT, WARNING, HACK, TODO, etc.). When cloud is configured, automatically saves high-confidence (>=70%) memories. Use to find and capture implicit knowledge in code.

search_memories

Search extracted memories using BM25 keyword matching. FREE feature. Find relevant context from code comments using natural language queries.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "memoria": {
            "memoria": {
                "command": "npx",
                "args": [
                    "-y",
                    "@byronwade/memoria"
                ]
            }
        }
    }
}

McpServers

{
    "memoria": {
        "command": "npx",
        "args": [
            "-y",
            "@byronwade/memoria"
        ]
    }
}

Memoria

The Memory Your AI Lacks.

An MCP server that prevents your AI from breaking code by revealing hidden file dependencies through git forensics.

npm version
License: MIT
TypeScript
MCP
Twitter

---

⚡ Quick Install

One-Click Install (Smithery)

<a href="https://smithery.ai/server/@byronwade/memoria">Smithery - Install Memoria</a>

Click the badge above to install Memoria with one click via Smithery.

Quick Copy-Paste Config

Add this to your MCP config file (works with Claude, Cursor, Windsurf, Cline):

{
  "mcpServers": {
    "memoria": {
      "command": "npx",
      "args": ["-y", "@byronwade/memoria"]
    }
  }
}

Terminal One-Liners

| Tool | Command |
|------|---------|
| Claude Code | claude mcp add memoria -- npx -y @byronwade/memoria |
| Claude Desktop | npx @anthropic/claude-code mcp add memoria -- npx -y @byronwade/memoria |
| Cursor | mkdir -p .cursor && echo '{"mcpServers":{"memoria":{"command":"npx","args":["-y","@byronwade/memoria"]}}}' > .cursor/mcp.json |
| npm global | npm install -g @byronwade/memoria |

<details>
<summary><strong>🪟 Windows PowerShell Install</strong></summary>

```powershell

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.