Turn your Claude Code session history into a searchable local knowledge base — 13 MCP tools, pure stdlib, nothing leaves your machine
MCPpedia last refreshed this data
Session Knowledge is an MCP server that turn your Claude Code session history into a searchable local knowledge base — 13 MCP tools, pure stdlib, nothing leaves your machine. Its tool list has not been published yet over stdio and http, requires no API key, and scores 70/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"session-knowledge": {
"url": "<see-readme-for-url>"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Claude Code's memory is scoped per project directory. Your history isn't.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in ai-ml / education
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for Session Knowledge and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Claude Code's memory is scoped per project directory. Your history isn't.
Every session you've ever run is already on disk in ~/.claude/projects/**/*.jsonl —
every decision, every command that worked, every credential you pasted. But open a
session in a different directory and none of it is reachable. You re-ask questions you
already answered, and re-implement integrations you already wrote.
This indexes all of it and hands Claude 13 MCP tools to search it. You just ask normally.
What was the retry logic in that deploy script? Which DATABASE_URL did I actually use for staging? Before I write the Stripe integration — has anyone here already done payment auth?
Pure Python standard library. No third-party dependencies, no embeddings, no API calls, nothing leaves your machine.
git clone https://github.com/nameforjt-afk/session-knowledge.git
cd session-knowledge
bash install.sh
Restart Claude Code. Done.
The index lives in ~/.claude/session-index/ and it contains plaintext credentials
scraped from your sessions. That is the precondition for "which key did I use here"
to work at all.
Never commit that directory, never sync it to cloud storage, never send it to anyone.
This repo's .gitignore covers the default location, but if you relocate it that's on you.
The full-text index itself is redacted: common credential shapes (API keys, Bearer
tokens, JWTs, GitHub PATs, passwords inside connection strings) are replaced with
⟦SECRET:fingerprint⟧ before they are written. Plaintext lives only in vault.db
at mode 0600, and only an explicit creds get returns it.
The transcript and code indexes still contain sensitive local context even after redaction. The index directory is restricted to mode 0700; every generated SQLite database, WAL/SHM sidecar, and refresh log is restricted to mode 0600.
Redaction is pattern matching, not magic. Custom-format secrets can slip through.
verify-redaction spot-checks for leaks.
Four things, in rough order of how often they save you:
1. "Have I already built this?" — Search by external service, not by function name.
grep only works if you already know the string to search for (you need to know it's
tenant_access_token before you can grep for Feishu auth). Capability tags don't
require that.
2. "How did we decide this?" — The rationale is buried in thousands of past instructions. Full-text search over them, filterable to just your own instructions.
3. "How did that command go again?" — Every Bash and MCP call, with arguments and results. Filter to only the ones that failed, to recall the traps.
4. "Which value does this key take?" — Same variable name routinely has several real values (multiple apps, dev vs prod, two tables). It returns all candidates ranked, with the call site each came from, rather than silently picking one.
A hook refreshes the index incrementally on each Claude Code start (async, non-blocking, usually 1–2s). Ask questions normally; Claude reaches for the tools on its own. When an upgrade changes parsing, redaction, or tokenization, the next refresh performs one automatic full rebuild and then returns to incremental updates. Code parser and capability-rule upgrades likewise trigger one automatic full code-index rebuild, preventing unchanged source files from retaining stale symbols or tags.
Deleting a transcript removes its searchable text, tool calls, metadata, and session-only credential observations on the next refresh. Credentials that still occu