Memorix
Cross-agent memory bridge with knowledge graph, workspace sync, and auto-memory hooks. Supports Windsurf, Cursor, Claude Code, Codex, and VS Code Copilot.
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 commitinto 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.ymlfor behavior and project settings.envfor 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_storememorix_searchmemorix_detailmemorix_timelinememorix_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["Search / Detail / Timeline / Dashboard / Team"]
Memory Layers
- Observation Memory: what changed, how something works, gotchas, problem-solution notes
- Reasoning Memory: why a choice was made, alternatives, trade-offs, risks
- Git Memory: immutable engineering facts derived from commits
Retrieval Model
- Default search is project-scoped
scope="global"searches across projects- Global hits can be opened explicitly with project-aware refs
- Source-aware retrieval boosts Git memories for “what changed” questions and reasoning memories for “why” questions
Documentation
Getting Started
Product and Architecture
Reference
Development
AI-Facing Project Docs
Development
git clone https://github.com/AVIDS2/memorix.git
cd memorix
npm install
npm run dev
npm test
npm run build
Key local commands:
memorix status
memorix dashboard
memorix serve-http --port 3211
memorix git-hook --force
Acknowledgements
Memorix builds on ideas from mcp-memory-service, MemCP, claude-mem, Mem0, and the broader MCP ecosystem.
Star History
License
相關伺服器
Scout Monitoring MCP
贊助Put performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
贊助Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
markmap-http-mcp
An MCP server for converting Markdown to interactive mind maps with export support (PNG/JPG/SVG). Server runs as HTTP service.
Xcode
Tools for Xcode project management, building, testing, archiving, code signing, and iOS development utilities.
plugged.in MCP Proxy Server
A middleware that aggregates multiple Model Context Protocol (MCP) servers into a single unified interface.
JFrog MCP Server
Interact with the JFrog Platform API for repository management, build tracking, and release lifecycle management.
Figma Context MCP
Extract code, assets, and component structures from Figma designs to use within AI workflows.
Hashnet MCP (Hashgraph Online Registry Broker)
MCP server for agent discovery, registration, and chat via the Hashgraph Online Registry Broker.
Cloudflare MCP Server Example
An example of deploying a remote MCP server on Cloudflare Workers without authentication.
maximumsats-mcp
Bitcoin Lightning + Nostr Web-of-Trust tools for agents (L402 pay-per-call endpoints)
Coding Assistant Server
A coding assistant server that provides context-aware code suggestions, documentation integration, and technology detection.
Codex MCP Wrapper
An MCP server that wraps the OpenAI Codex CLI, exposing its functionality through the MCP API.