prx-memory is a local-first MCP memory component for coding agents.
It is designed to work across Codex, Claude Code, OpenClaw, OpenPRX, and other MCP-compatible clients without requiring a centralized memory service.
- Local MCP server (
stdioandHTTPtransport). - Full memory toolchain: store, recall, update, forget, export/import, migrate, reembed, compact.
- Governance controls: structured memory format, tag normalization, ratio bounds, periodic maintenance.
- Evolution support:
memory_evolvewith train+holdout acceptance and constraint gating. - Skill distribution through MCP resources and skill manifest tools.
prx-memory focuses on reusable engineering knowledge, not raw logs.
The system combines:
- Governance layer: quality and safety constraints.
- Retrieval layer: lexical/vector recall and optional rerank.
- Evolution layer: measurable candidate selection with holdout safeguards.
cargo build -p prx-memory-mcp --bin prx-memorydPRX_MEMORYD_TRANSPORT=stdio \
PRX_MEMORY_DB=./data/memory-db.json \
./target/debug/prx-memorydPRX_MEMORYD_TRANSPORT=http \
PRX_MEMORY_HTTP_ADDR=127.0.0.1:8787 \
PRX_MEMORY_DB=./data/memory-db.json \
./target/debug/prx-memoryd{
"mcpServers": {
"prx_memory": {
"command": "/your/path/to/prx-memory/target/release/prx-memoryd",
"env": {
"PRX_MEMORYD_TRANSPORT": "stdio",
"PRX_MEMORY_BACKEND": "json",
"PRX_MEMORY_DB": "/your/path/to/prx-memory/data/memory-db.json"
}
}
}
}Use your real local path for both command and PRX_MEMORY_DB.
Remote semantic recall and rerank need provider keys.
PRX_EMBED_PROVIDER=openai-compatible|jina|gemini- Common key/model vars:
PRX_EMBED_API_KEYPRX_EMBED_MODELPRX_EMBED_BASE_URL(optional)
- Provider fallback keys:
JINA_API_KEY(forjina)GEMINI_API_KEY(forgemini)
PRX_RERANK_PROVIDER=jina|cohere|pinecone|pinecone-compatible|none- Common key/model vars:
PRX_RERANK_API_KEYPRX_RERANK_MODELPRX_RERANK_ENDPOINTPRX_RERANK_API_VERSION(pinecone-compatible only)
- Provider fallback keys:
JINA_API_KEYCOHERE_API_KEYPINECONE_API_KEY
PRX_EMBED_PROVIDER=jina
PRX_EMBED_API_KEY=your_embed_key
PRX_EMBED_MODEL=jina-embeddings-v5-text-small
PRX_RERANK_PROVIDER=cohere
PRX_RERANK_API_KEY=your_rerank_key
PRX_RERANK_MODEL=rerank-v3.5- Governance skill package:
skills/prx-memory-governance/SKILL.md - Client discovery path:
resources/listresources/readtools/call->memory_skill_manifest
- Payload templates:
resources/templates/listresources/readwithprx://templates/...
PRX_MEMORY_STANDARD_PROFILE=zero-config|governedPRX_MEMORY_DEFAULT_PROJECT_TAG(default:prx-memory)PRX_MEMORY_DEFAULT_TOOL_TAG(default:mcp)PRX_MEMORY_DEFAULT_DOMAIN_TAG(default:general)
See docs/README.md for a categorized documentation index.
- Chinese paper:
PRX_MEMORY_EVOLUTION_PAPER_CN.md - English paper:
PRX_MEMORY_EVOLUTION_PAPER_EN.md
cargo fmt
cargo check --all-targets --all-features
cargo test --all-targets --all-features
cargo clippy --all-targets --all-features -- -D warnings
./scripts/run_multi_client_validation.sh