Give Claude Code a Memory

Search your past sessions. Find solutions you've already built. Share learnings across your team. 100% local by default.

npm i claude-history-mcp

Add to ~/.claude/settings.json. Restart. Done.

<200ms
Search Speed
0
LLM Calls
7
MCP Tools
2
Dependencies

How It Works

📁
Your Session Files
~/.claude/projects/*.jsonl
🔍
MCP Server
BM25 + TF-IDF (local)
🧠
Claude Code
7 tools, auto-context
☁️
Cloud Sync
Optional, patterns only

Raw conversations and source code stay on your machine. Only extracted patterns sync.

Features

Hybrid Search

BM25 + TF-IDF with Reciprocal Rank Fusion. Filter by project, date, tool usage. Find anything in your history.

Knowledge Extraction

Automatically pulls out decisions, solutions, and error-to-fix patterns from every session.

Session-Start Hook

Auto-injects relevant project context when you start a new Claude Code session. No manual searching.

Learnings System

Clusters similar solutions across projects. High-scoring patterns become "learnings" that surface automatically.

Team Knowledge

Share extracted patterns with your team. When someone solves a problem, everyone's Claude knows about it.

Privacy First

100% local by default. No network calls unless you enable cloud sync. E2E encryption for team data.

Privacy Model

1.0×
Your Memory
Your own session history. Always local. Always searched first. Always highest priority.
0.7×
Team Knowledge
Shared patterns from your team. E2E encrypted. Opt-in. Only extracted patterns — never raw conversations.

Pricing

Free

$0
Personal use
  • 500 knowledge entries
  • 50 sessions indexed
  • All 7 MCP tools
  • Local search (unlimited)
  • Cloud sync
Get Started

Team

$29/mo
Share knowledge
  • 50,000 knowledge entries
  • 10,000 sessions indexed
  • Up to 50 team members
  • Shared team knowledge
  • E2E encrypted sync
  • Priority support
Subscribe

Or self-host for free (AGPL). No limits.

Open Source

Both repos are public. Use them however you want.

MCP Client (MIT) Cloud Server (AGPL)