技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
HasanJahidul/terminal-history-mcp

HasanJahidul/terminal-history-mcp

Search your shell history (zsh/bash/fish) from Claude/MCP. Local SQLite FTS5. Secret-redacted.
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add terminal-history-mcp -- npx -y terminal-history-mcp
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
5 ★ · HasanJahidul/terminal-history-mcp · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 5 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 HasanJahidul/terminal-history-mcp;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

terminal-history-mcp

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Search your shell history (zsh / bash / fish) from Claude Code, Cline, Cursor, Zed, or any MCP client. Local-only. SQLite FTS5. Secret-redacted before storage.
What you can ask
- *"When did I last ssh into the staging server?"*
- *"Show recent failed commands."*
- *"What did I run yesterday in /etc/nginx?"*
- *"What's that long docker compose flag I used 3 weeks ago?"*
- *"Show command chains around kubectl apply."*
Install
(Or run from a clone: git clone … && npm install && npm run build && npm link.)
Wire to Claude Code
Wire to other MCP clients
Anywhere that takes a stdio MCP server config:
Connect via MCPize
Use this MCP server instantly with no local installation:
Or connect at: **https://mcpize.com/mcp/terminal-history**
Capture cwd + exit code (recommended)
By default zsh/bash history files store only the command. To unlock recent_in_dir and failed_commands, install the shell hook:
The hook appends pipe-delimited lines to ~/.terminal-history-mcp/extended.log. Reindex picks them up.
To inspect the snippet first:
To remove:
Tools
| Tool | What it does |
|------|--------------|
| search_history(query, limit) | FTS5 keyword + prefix match across all history |
| recent_in_dir(cwd, limit) | Last N commands in a working dir (needs hook) |
| failed_commands(since_ts_ms, limit) | Commands with non-zero exit (needs hook) |
| command_chains(query, window_ms, limit) | For each match, list commands within ±5 min |
| reindex | Re-parse history files + extended log |
Privacy
Everything is local. The DB lives at ~/.terminal-history-mcp/history.db. Nothing is uploaded.
Secrets are scrubbed **before** insert. Detected patterns:
- GitHub PATs (ghp_*, gho_*, …)
- OpenAI keys (sk-*)
- Slack tokens (xox[baprs]-*)
- AWS access keys (AKIA…)
- Authorization: Bearer/Basic
- X-*-Token: …, X-*-Key: …, X-*-Secret: … headers
- Env vars containing TOKEN / KEY / SECRET / PASSWORD / API_KEY
- CLI flags --token=…, --api-key …, -k …
- URL basic-auth https://user:pass@host
来源
awesome · https://github.com/HasanJahidul/terminal-history-mcp
按领域浏览
MCP 服务
Traction
5 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引