Claude Remind Mcp

io.github.emretheus由 GitHub 账号 emretheus 发布v0.1.1更新于 Oct 24, 2026

Search past Claude Code conversations. Local BM25 over JSONL with one-click claude --resume.

发布方自己的服务:Claude Platform Docs

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 MCP 服务器,为过去的 Claude Code 会话建立索引,让助手搜索、阅读并恢复这些会话。

可以做什么
  • 用 BM25 排序搜索过去的 Claude Code 对话,可按项目、时间范围和摘要长度过滤,每条结果附带已解决提示和恢复命令
  • 读取某条命中消息的完整内容及前后对话,或读取整个会话
  • 获取结构化的会话摘要:标题、消息数、使用的工具、涉及的文件、错误数和时间跨度
  • 把会话 ID 解析为可直接运行的 claude --resume 命令,并给出工作目录和 git 分支
适用场景
适合反复排查同一类基础设施、部署或认证问题,希望助手先查历史会话再从头诊断的场景;也适合隔一段时间回到某个项目、想找回之前已解决的方案时使用。
运行要求
需要 Node.js 20 或更高版本,通过 npx 或全局安装在本机运行。需要会将会话日志写入 ~/.claude/projects/ 的 Claude Code 安装。可选环境变量 CLAUDE_CONFIG_DIR 和 CLAUDE_REMIND_DIR 需为绝对路径,用于覆盖日志与索引位置。无需联网或账号。
安装前请注意
索引文件包含对话文本,以 0600 权限写入;密钥脱敏只是尽力而为,自定义格式的凭据可能未被识别。删除索引目录即可清除。服务器读取本地 Claude Code 日志,不发起网络请求。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Claude Remind Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

claude-remind-mcp

A Model Context Protocol (MCP) server that searches your local Claude Code conversation history. It indexes every past session under ~/.claude/projects/ with BM25, redacts secrets, and lets the running Claude agent recall and resume solutions you've already worked out — without re-explaining the problem from scratch.

If you've ever caught yourself solving the same Docker, deployment, or auth bug twice in a month, this is for you. The package is local-only (no network calls), pure-JS (no native modules), and ships as a single npx-installable binary.

[npm version] [License: MIT] [TypeScript] [Node.js]

[demo]

Status: experimental (v0.1.x). Tool surface is stable; internals may change.


install

From shell:

bash
claude mcp add claude-remind -- npx -y claude-remind-mcp

From any manually configurable mcp.json (Cursor, Windsurf, etc.):

json
{  "mcpServers": {    "claude-remind": {      "command": "npx",      "args": ["-y", "claude-remind-mcp"]    }  }}

No model downloads, no daemons, no database. The first query builds an index from ~/.claude/projects/ (a few seconds for a typical history) and persists it to ~/.claude-remind/. Subsequent queries reuse the index and only re-parse files whose mtime changed.

If npx resolves the wrong package, force resolution:

bash
npm install -g claude-remind-mcp

use cases

A few patterns where searching past Claude Code conversation history pays off:

  • Recurring infrastructure errors. "We hit ExpiredTokenException on the staging deploy last month — what was the fix?" One remind_search returns the exact session, the resolved snippet, and the resume command.
  • Cross-project knowledge. "How did I configure BuildKit cache on the other Coolify project?" The index spans every project under ~/.claude/projects/, so solutions from project A surface when you're working in project B.
  • Onboarding into your own past work. Coming back to a repo after weeks? Search for "Cognito", "RunPod", "tailwind config" and read the latest session summary instead of grepping through code.
  • Avoiding redundant deep-dives. Before Claude burns 10k tokens diagnosing a problem from scratch, it can call remind_search first and see if you already solved it. The default response is ~1.5 KB.
  • Resuming where you left off. Every search result includes a ready-to-paste claude --resume <id> command, plus the original cwd and gitBranch, so jumping back into a half-finished thread is one paste away.

tools

Four tools, designed to compose: search → read → resume.

remind_search

BM25 search over past messages. Returns ranked hits with a snippet, a solvedHint, a messageUuid, and a ready-to-paste claude --resume command.

ts
{  query: string;  project?: string;       // substring of cwd, e.g. "my-app"  limit?: number;         // 1–50, default 5  sinceDays?: number;     // age filter  format?: "compact" | "detailed" | "full";  // 400 / 1000 / 2000-char snippet}
json
[  {    "sessionId": "abc12345-...",    "messageUuid": "msg-9f8e-...",    "score": 432.8,    "ts": "2026-04-10T11:30:26Z",    "role": "assistant",    "project": "/Users/you/Code/my-app",    "gitBranch": "deploy",    "hasError": false,    "solvedHint": "likely",    "aiTitle": "RunPod serverless deploy walkthrough",    "snippet": "Step-by-step: 1) Push the image to NGC 2) Configure the Network Volume…",    "resumeCommand": "claude --resume abc12345-..."  }]

Query tips: prefer concrete terms — exact error strings, tool/library names, file paths. Generic words like auth or docker on their own dilute relevance.

remind_message

Fetch the full text of one message plus optional surrounding turns. Use after remind_search returns a messageUuid you want to read in full.

ts
{  sessionId: string;       // full or 8-char prefix  messageUuid?: string;    // omit to read whole session (capped at 50 messages)  contextBefore?: number;  // 0–20, default 1  contextAfter?: number;   // 0–20, default 1}

The matched message is flagged with isFocus: true inside the returned window.

remind_session

Structured summary of a session: title, message count, tool names used, files touched, error count, time span, solved hint, last user message.

ts
{  sessionId: string; // full or 8-char prefix}

remind_resume

Resolves a session id (full or 8-char prefix) to a ready-to-run claude --resume <id> command, plus the session's cwd and git branch. remind_search already returns this on every hit, so prefer that; this tool exists for the case where you only have an id.


how it works

  1. Streams every JSONL under ~/.claude/projects/ line-by-line, with a 1 MB per-line cap and a 50 000 message-per-file cap to keep the indexer bounded.
  2. Skips Claude Code's sidecar entries (permission-mode, file-history-snapshot, attachment, system-reminder, etc.) so only real user and assistant turns are indexed.
  3. Redacts well-known secret patterns (API keys, JWTs, private key blocks, env-style assignments) before content enters the index.
  4. Builds a minisearch BM25 index over the message text plus tool names and project path, and persists it atomically to ~/.claude-remind/.
  5. On startup only files whose mtime changed are re-parsed.
  6. For each session derives hasError, endedCleanly, last user message, and a conservative solvedHint (likely only on explicit positive sentiment or a clean end with no errors; unlikely only on explicit negative sentiment; unknown otherwise).

The on-disk index is a single JSON file. It is safe to delete; the next query rebuilds it.


configuration

Environment variableDefaultPurpose
CLAUDE_CONFIG_DIR~/.claudeWhere Claude Code stores its logs.
CLAUDE_REMIND_DIR~/.claude-remindWhere the index is persisted.

Both must be absolute paths if set; otherwise the default is used.


privacy

The index file at ~/.claude-remind/index.json is written with mode 0600 and contains the indexed text from your conversations. A built-in regex pass redacts well-known secret formats (OpenAI / Anthropic / GitHub / AWS / Stripe / Google / Slack keys, JWTs, private key blocks, common KEY=value env assignments) before content enters the index. This is best-effort; if you've pasted a custom credential format into a past conversation it may not be caught. Delete ~/.claude-remind/ to wipe the index.

The server runs entirely locally over stdio. It makes no network calls.


development

bash
git clone https://github.com/emretheus/claude-remind-mcp && cd claude-remind-mcpnpm installnpm run buildnpm test

Scripts:

bash
npm run build         # TypeScript build with executable permissions on dist/index.jsnpm run dev           # tsc --watchnpm run start         # Run the MCP server (stdio)npm run lint          # ESLintnpm run lint:fix      # ESLint --fixnpm run format        # Prettier writenpm run format:check  # Prettier checknpm run typecheck     # tsc --noEmitnpm test              # Vitest run

To point a Claude Code instance at a local checkout:

bash
claude mcp add claude-remind -- node /absolute/path/to/dist/index.js

Smoke-test the MCP handshake from the shell:

bash
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' \  | node dist/index.js

Pre-commit runs lint-staged (ESLint + Prettier on staged files) via Husky.


requirements

  • Node.js ≥ 20
  • A Claude Code installation that writes to ~/.claude/projects/

The package has two runtime dependencies: @modelcontextprotocol/sdk and minisearch. No native modules.


license

MIT

来源:README.md,提交 8c510c6

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Claude 集成