SuperAPI AI Directory

memocall

Read-only search and recall of past Claude Code sessions, loading any session on demand as compact Markdown with outline, turn-range and in-session search.

Open website

About this tool

MemoCall is an MCP (Model Context Protocol) server used to let Claude Code recall on demand the conversation context of any past project and output it as clean, compact Markdown.

Purpose and Background Claude Code itself can resume a session, but bringing the context of another conversation into the current session is cumbersome—either copy and paste the exported content, or manually dig through the raw record files; moreover, resume can only see the current directory. MemoCall turns this into a simple question, such as "What am I doing?" or "Load the session where we set up X," and it can pull in the corresponding conversation record, even if it comes from a completely different project, and present it in clear, compact Markdown.

It is read-only. Claude Code already logs each session to ~/.claude/projects/<project>/<id>.jsonl; this server simply reads these files, removes noise, collapses tool calls, and then returns a readable conversation record. It never writes, does not mount hooks, and does not touch ongoing active sessions.

Main Capabilities After installation, it provides five tools in each session, and Claude will automatically choose the appropriate tool based on the request. Users do not need to call these tools directly—just communicate normally, and Claude will call them on its own.

How Conversation Records Are Rendered The raw records are extremely verbose event logs (a single file once reached 11 MB). MemoCall condenses each turn to its core content, in a style similar to Conductor:

  • Omits tool call output (this is the key to saving tokens, and also has privacy benefits).
  • Discards abandoned or edited message branches, so you see how the conversation actually proceeded.
  • Through token budgeting and middle-out truncation, even an 11 MB session can stay within Claude Code's MCP output limit.

Browsing Large Sessions A single response cannot contain a session with 1000 turns, so for large sessions, instead of dumping everything at once, it navigates:

  • session_outline: gives a numbered map of each prompt (very small, any session can fit).
  • search_in_session: jumps directly to a turn related to a certain topic; or use load_session combined with turns: "300-340" pulls an exact window (turn numbers come from the outline). This way you never lose access to the middle of a very large session—using load_session alone truncates the middle, but the outline plus range/search tools let Claude reach any part on demand.

How to use Requires the Claude Code CLI (and Node 18+). Installation is a one-liner; npx fetches and runs the published package (see the project URL for the install command). Use --scope user to make it available in every session and every directory. After restarting Claude Code (or opening a new session), ask it to list your sessions. You can verify with claude mcp list—you should see memocall: … ✔ Connected.

Privacy and security

  • Local only. No network, no authentication, no telemetry. It only reads files under ~/.claude/projects/, nothing else.
  • Compact mode omits tool output, and secrets (tokens, keys, environment variables) are often hidden there—so the default output is much safer than the raw transcript.
  • format: "full" includes brief tool input, which may expose sensitive strings. Use it deliberately.
  • In any case, the conversation transcript itself may contain secrets; treat loaded context the same way you would treat the raw conversation.

Limitations

  • Recall is best-effort: Claude Code deletes records after cleanupPeriodDays (30 days by default).
  • Forked sessions may contain only the turns after the fork.
  • The record format is undocumented and may change with Claude Code versions; all format knowledge is isolated in src/jsonl.ts, so if the format changes, only this one file needs to be changed.

Code structure

  • src/jsonl.ts: all knowledge about the record format (helper functions, sorting, classification).
  • src/parser.ts: JSONL → compact Markdown (the core conversion).
  • src/locator.ts: session enumeration plus a cached metadata index.
  • src/index.ts: the MCP server that connects these three tools.