Memorix MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install -g memorix
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add memorix -- node "<FULL_PATH_TO_MEMORIX>/dist/index.js"

Replace <FULL_PATH_TO_MEMORIX>/dist/index.js with the actual folder you prepared in step 1.

README.md

Local-first memory platform for AI coding agents.

Memorix

Local-first memory platform for AI coding agents. Git truth, reasoning memory, and cross-agent recall in one MCP server.

Git Memory · Reasoning Memory · Cross-Agent Recall · Control Plane Dashboard

中文文档 · Quick Start · How It Works · Documentation · Setup Guide


Why Memorix

Most AI coding agents remember only the current thread. Memorix gives them a shared, persistent memory layer across IDEs, sessions, and projects.

What makes Memorix different:

  • Git Memory: turn git commit into searchable engineering memory with noise filtering and commit provenance.
  • Reasoning Memory: store why a decision was made, not just what changed.
  • Cross-Agent Local Recall: Cursor, Windsurf, Claude Code, Codex, Copilot, Kiro, OpenCode, Gemini CLI, and more can read the same local memory base.
  • Memory Quality Pipeline: formation, compaction, retention, and source-aware retrieval work together instead of acting like isolated tools.

Quick Start

Install globally:

npm install -g memorix

Initialize project config:

memorix init

Memorix uses two files with two roles:

  • memorix.yml for behavior and project settings
  • .env for secrets such as API keys

Choose one runtime mode:

memorix serve

Use serve for normal stdio MCP integrations.

memorix serve-http --port 3211

Use serve-http when you want the HTTP transport, collaboration features, and the dashboard on the same port.

In HTTP control-plane mode, agents should call memorix_session_start with projectRoot set to the absolute path of the current workspace or repo root when that path is available. Git remains the source of truth for the final project identity; projectRoot is the detection anchor that keeps parallel sessions from drifting into the wrong project bucket.

Add Memorix to your MCP client:

Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "memorix": {
      "command": "memorix",
      "args": ["serve"]
    }
  }
}
Claude Code
claude mcp add memorix -- memorix serve
Codex · ~/.codex/config.toml
[mcp_servers.memorix]
command = "memorix"
args = ["serve"]

For the full IDE matrix, Windows notes, and troubleshooting, see docs/SETUP.md.


Core Workflows

1. Store and retrieve memory

Use MCP tools such as:

  • memorix_store
  • memorix_search
  • memorix_detail
  • memorix_timeline
  • memorix_resolve

This covers decisions, gotchas, problem-solution notes, and session handoff context.

2. Capture Git truth automatically

Install the post-commit hook:

memorix git-hook --force

Or ingest manually:

memorix ingest commit
memorix ingest log --count 20

Git memories are stored with source='git', commit hashes, changed files, and noise filtering.

3. Run the control plane

memorix serve-http --port 3211

Then open:

  • MCP HTTP endpoint: http://localhost:3211/mcp
  • Dashboard: http://localhost:3211

This mode gives you collaboration tools, project identity diagnostics, config provenance, Git Memory views, and the dashboard in one place.

When multiple HTTP sessions are open at once, each session should bind itself with memorix_session_start(projectRoot=...) before using project-scoped memory tools.


How It Works

graph TB
    A["git commit / agent tool call / manual store"] --> B["Memorix Runtime"]
    B --> C["Observation / Reasoning / Git Memory"]
    C --> D["Formation + Indexing + Graph + Retention"]
    D --> E["S

Tools (6)

memorix_storeStore memory items such as decisions, gotchas, or problem-solution notes.
memorix_searchSearch through stored memories.
memorix_detailRetrieve detailed information about a specific memory.
memorix_timelineView a timeline of memory events.
memorix_resolveResolve memory items.
memorix_session_startInitialize a session with a specific project root.

Environment Variables

API_KEYSOptional secrets for specific integrations stored in .env

Configuration

claude_desktop_config.json
{"mcpServers": {"memorix": {"command": "memorix", "args": ["serve"]}}}

Try it

Search my memory for the decision we made regarding the authentication module architecture.
Store a note that we are using Redis for caching in this project to avoid future conflicts.
Show me the timeline of changes and decisions related to the database migration.
Initialize the memory session for this project root.

Frequently Asked Questions

What are the key features of Memorix?

Persistent cross-agent memory layer across multiple IDEs. Git Memory integration for searchable commit provenance. Reasoning memory to store the 'why' behind code changes. Local-first architecture with zero API keys required. Control plane dashboard for project identity and memory management.

What can I use Memorix for?

Maintaining context across different AI coding agents like Cursor and Claude Code. Documenting architectural decisions and reasoning during development. Tracking project-specific 'gotchas' and problem-solution notes. Syncing memory across different IDE sessions and project workspaces.

How do I install Memorix?

Install Memorix by running: npm install -g memorix

What MCP clients work with Memorix?

Memorix works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Memorix docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare