Persistent memory MCP server for AI coding agents. Ultra-lightweight (46 kB), cloud sync, works with Claude Code, Cursor, Windsurf. npm install apex-memory
# apex-memory
[](https://github.com/JJerryChoi/apex-memory/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/apex-memory)
[](https://www.npmjs.com/package/apex-memory)
[](https://opensource.org/licenses/MIT)
**Persistent memory for AI coding agents.**
Give your AI coding agent memory that survives across sessions. apex-memory is an [MCP](https://modelcontextprotocol.io) server that lets agents save decisions, patterns, bugs, and context — then recall them exactly when needed.
- **One install, works everywhere** — MCP-native, works with Claude Code, Cursor, Windsurf, and any MCP-compatible editor
- **Ultra-lightweight** — 26.6 kB package, starts in milliseconds, no ML models or vector databases
- **Zero infrastructure** — local SQLite database, no servers, no accounts
- **Built for coding agents** — categories like `decision`, `architecture`, `bug`, `pattern` designed for real development workflows
- **Smart memory management** — importance scoring (1-5), access tracking, and auto-decay keep your memory store relevant
- **Full-text search** — find any memory instantly with FTS5-powered search
- **Knowledge graph** — link memories with directional relationships (related, depends_on, supersedes, contradicts, extends)
- **Dedup detection** — automatic duplicate warnings on save, Jaccard similarity scanning, and one-click merge
- **Cloud sync** — sync memories across machines with the Pro tier
## Quick Start
### Claude Code
```bash
Claude MCP add apex-memory -- npx apex-memory
```
That's it. Your agent now has persistent memory.
### Cursor
Add to your MCP settings (`.cursor/mcp.json`):
```json
{
"mcpServers": {
"apex-memory": {
"command": "npx",
"args": ["apex-memoAgent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.