claude-memory-fts

by kurovu146

Not rated
GitHub

About

Long-term memory mcp server with sqlite fts5 full-text search, bm25 ranking, and access tracking. zero config via npx.com

Details

Author
kurovu146
Categories
Database, AI, Other, Knowledge Base

Setup

Install claude-memory-fts in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/kurovu146/claude-memory-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Long-term memory MCP server forClaude Code. Stores facts in a local SQLite database with hybrid search (FTS5 + semantic vector similarity) and automatic context injection.

- Hybrid search— FTS5 keyword search + semantic vector similarity, merged via Reciprocal Rank Fusion (RRF)
- Semantic understanding— find memories by meaning, not just keywords (powered by all-MiniLM-L6-v2 embeddings)
- Auto context injection— top 30 most important memories injected into every prompt via hook
- Importance ranking— facts ranked by access frequency, recency decay, and category weight
- Access tracking— tracks how often each memory is accessed
- Upsert— automatically updates existing facts instead of duplicating
- Categorized— organize by type: preference, decision, technical, project, workflow, personal, general
- MCP Resources— exposesmemory://contextresource for session context
- Zero config— works out of the box, stores data in~/.claude/memory.db

# Add to Claude Code claude mcp add memory -- npx claude-memory-fts # Auto-configure context injection hook (recommended) npx claude-memory-fts --setup-hook

- Creates~/.claude/scripts/memory-context.sh
- Adds aUserPromptSubmithook to~/.claude/settings.json
- Top 30 memories are injected into every prompt automatically

claude mcp add memory -e MEMORY_DB_PATH=/path/to/my/memory.db -- npx claude-memory-fts

Hybrid search: runs FTS5 and semantic search in parallel, merges results with RRF. Falls back to LIKE for partial matches.

Update a memory's content or category by ID.

List all saved memories grouped by category.

MCP resource exposing top 30 facts ranked by importance score:

- Access frequency— frequently accessed facts score higher (capped at 20 points)
- Recency— recently updated facts score higher (10 points, decays over 90 days)
- Category weight— preference/decision (3), workflow/technical (2), project/personal (1), general (0)
- FTS5 + BM25andsemantic vector similarityrun in parallel
- Results are merged and deduplicated usingReciprocal Rank Fusion(k=60)
- Facts appearing in both lists get naturally boosted
- If both return empty, falls back toLIKEsubstring matching
- Access count is tracked on every search hit

- Model:all-MiniLM-L6-v2(384 dimensions, ~23MB)
- Generated locally via@xenova/transformers— no API calls, no data leaves your machine
- Embeddings are created on save and backfilled on server startup
- Cosine similarity with 0.3 threshold to filter noise

- SQLite with WAL mode for fast concurrent reads/writes
- FTS5 virtual table synced via triggers for real-time full-text indexing
- Embeddings stored as BLOB columns alongside facts

git clone https://github.com/kurovu146/claude-memory-mcp.git cd claude-memory-mcp npm install npm run build npm test

Persistent memory layer for AI agents with semantic search, consolidation, and cross-session intelligence via MCP.

Local-first agent memory: a plain-Markdown Obsidian vault is the source of truth, with a rebuildable DuckDB index for hybrid BM25 + vector + graph recall.

Agents Remember is a Drift-aware repository memory for coding agents in complex codebases. Captures what code can't say on its own! Retrieves memory by path, semantic search, and relationship (code-graph).

Persistent cognitive memory for Claude Code. Cloud-based semantic search, Ai-powered extraction, project scoping, and compaction recovery.

Self-hosted MCP server giving AI agents persistent memory — Markdown source of truth, hybrid BM25+embedding search, typed graph relations.

mem0-mcp-server — exposes Mem0 persistent semantic memory as an MCP HTTP server; supports add/search/read/update/delete operations and semantic search for agent memory.

Long-term memory system for AI agents with semantic search, context management, and multi-format storage.

Persistent cross-agent semantic memory for AI agents. Recall past sessions, share knowledge across agents. Multi-agent (isolated writes, shared reads), local-first (SQLite + FTS5), works with any LLM — local Ollama at $0 or cloud APIs like Gemini and OpenAI. Integrations for Claude Code, Claude Desktop, and OpenClaw.

A self-hosted, secure, feature-rich memory system for AI agents and assistants. Provides intelligent fact extraction and deduplication, with an artifact store for detailed content.

Persistent memory for AI agents with Ebbinghaus forgetting curve decay, hybrid BM25 + vector + knowledge graph retrieval, temporal reasoning, and a local dashboard. 89.4% Recall@5 on LongMemEval.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.