claude-memory

claude-memory

Provides memory and project tracking for Claude Code via MCP, enabling semantic search over past transcripts, durable notes, and structured project management with milestones, epics, tickets, and todos.

Category
Visit Server

README

claude-memory

Memory + project tracking for Claude Code. One MCP server.

  • Semantic search over all past Claude Code transcripts — new sessions recall old ones, way past the context window
  • Durable notes (remember) — per-project or global
  • Structured tracking: projects → milestones → epics → tickets → todos, rendered as roadmap
  • Tracking items embedded into same vector space — tickets show up in semantic search
  • Per-project system prompts, stored in DB, injectable at session start

Stack: Voyage AI embeddings + Qdrant vector DB + SQLite + FastMCP. All free: Voyage free tier easily covers personal use, Qdrant Cloud free tier holds 1M vectors (or run local docker). $0 to operate.

Setup

Two keys:

git clone https://github.com/mathis-sperlich/claude-memory
cd claude-memory
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env
# fill VOYAGE_API_KEY, QDRANT_URL, QDRANT_API_KEY

Point SCAN_PROJECTS in ingest.py at your transcript dirs (Claude Code writes them to ~/.claude/projects/<encoded-project-dir>/*.jsonl).

Ingest

.venv/bin/python ingest.py --dry-run   # sanity-check chunking
.venv/bin/python ingest.py             # embed + upsert

Idempotent — re-runs only embed new chunks. Safe as cron job. Hourly launchd template: launchd/com.mathis.claude-memory.plist (edit paths, cp to ~/Library/LaunchAgents/, launchctl load).

Test retrieval from CLI:

.venv/bin/python query.py "how did the auth token refresh bug get fixed?"

Bad results? Lower MAX_CHUNK_CHARS in ingest.py, or try bigger EMBED_MODEL in .env and re-ingest with --reset.

Wire into Claude Code

~/.claude/settings.json:

{
  "mcpServers": {
    "claude-memory": {
      "command": "/path/to/claude-memory/.venv/bin/python",
      "args": ["/path/to/claude-memory/mcp_server.py"]
    }
  }
}

Restart Claude Code. Done — Claude now has query_history, remember, tracking tools, system-prompt tools.

Tools

Memory

Tool Purpose
query_history(question, k=, project=, since=, kind=) Semantic search over everything. kind: note, transcript, tracking, or subtype
list_recent_sessions(days=, project=) What was I working on lately
remember(content, title=, tags=, project=) Save durable note. project scopes it; omit → global (surfaces in every project's search)
list_notes(tag=, limit=) / forget(note_id) Manage notes

Tracking

Hierarchy: project → milestone (optional) → epic → ticket → todo.

Tool Purpose
create_project(name, description=) Top of hierarchy
create_milestone(project, name, body=, target_date=) What ships together
create_epic(project, title, body=, milestone=, priority=) Group tickets toward goal
create_ticket(project, title, body=, epic=, priority=) Unit of work
create_todo(project, title, body=, ticket=, priority=) Small step
list_items(kind=, project=, status=, parent_id=) Filtered list
get_item(id) One item + children
update_item(id, status=, title=, body=, priority=, ...) Partial update, errors on fields that don't apply
delete_item(id) Delete. Projects must be empty first
get_roadmap(project) Markdown roadmap: milestones → epics → tickets + progress
list_projects() Every project name across all stores

status: open / in_progress / done. priority: P0–P3.

System prompts

set_system_prompt(content, project=) / get_system_prompt(project=) / list_system_prompts() / delete_system_prompt(project=). Global + per-project layers, composed on read. Stored in tracking.db. Falls back to docs/usage.md when unset.

Hooks (optional, deterministic)

MCP tools fire when model decides. Hooks fire always. hooks/session_start.py injects current project's open tickets + system prompt at every session start:

{
  "hooks": {
    "SessionStart": [{
      "matcher": "*",
      "hooks": [{
        "type": "command",
        "command": "/path/to/claude-memory/.venv/bin/python /path/to/claude-memory/hooks/session_start.py"
      }]
    }]
  }
}

Remote access (optional)

Default = local stdio, zero network. Want same memory from claude.ai or other machines? HTTP transport + Cloudflare tunnel + GitHub OAuth with login allowlist:

.venv/bin/python mcp_server.py --transport http --port 8765

Full walkthrough incl. launchd services + self-healing watchdog: CLOUD_SETUP.md.

Notes

  • Privacy: Voyage sees text at embed time (no training on customer data per TOS), Qdrant Cloud stores vectors + payloads. Both concern you → local Qdrant + local embedder, same code.
  • Stalled embed requests bounded by VOYAGE_TIMEOUT / VOYAGE_MAX_RETRIES env vars (default 20s / 2).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured