@ai-devkit/memory
v0.15.0
Published
Local MCP memory for AI coding agents to reuse project decisions, conventions, and fixes across sessions
Maintainers
Readme
@ai-devkit/memory
A local MCP-based memory service for AI coding agents. Store project decisions, coding conventions, and reusable fixes so agents can retrieve them across sessions with SQLite full-text search.
Most users get this automatically through ai-devkit init. Install @ai-devkit/memory directly when you want to wire the MCP memory server into your own MCP client configuration.
Features
- 🔍 Full-Text Search — FTS5 with BM25 ranking
- 🏷️ Tag-Based Filtering — Organize and find knowledge by tags
- 📁 Scoped Knowledge — Global, project, or repo-specific rules
- 🔄 Deduplication — Prevents duplicate content automatically
- ⚡ Fast — SQLite with WAL mode, <50ms search latency
Installation
npm install @ai-devkit/memoryQuick Start
Add to your MCP client configuration (e.g., Claude Code, Cursor):
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["@ai-devkit/memory"]
}
}
}Example developer use case: after deciding that all API responses must use DTOs, store that rule once. Future agent sessions can search memory before implementing new endpoints instead of asking you to repeat the convention.
Store Knowledge
{
"tool": "memory_storeKnowledge",
"arguments": {
"title": "Always use Response DTOs for API endpoints",
"content": "When building REST APIs, always use Response DTOs instead of returning domain entities directly.",
"tags": ["api", "backend", "dto"],
"scope": "global"
}
}Search Knowledge
{
"tool": "memory_searchKnowledge",
"arguments": {
"query": "building an API endpoint",
"contextTags": ["api"],
"limit": 5
}
}Documentation
📖 For the full API reference, ranking details, and advanced usage, visit:
License
MIT
