Home / MCP servers / Developer tools / terminal-history-mcp

terminal-history-mcp

terminal-history-mcp is a MCP server by HasanJahidul that local full-text search over zsh, bash and fish history, with secret redaction and optional capture of cwd, exit code and duration.

Updated 2026-05-11

What is terminal-history-mcp?

terminal-history-mcp is a MCP server by HasanJahidul that local full-text search over zsh, bash and fish history, with secret redaction and optional capture of cwd, exit code and duration. It is listed under Developer tools and has 5 GitHub stars.

TypeMcp server
AuthorHasanJahidul
RepositoryHasanJahidul/terminal-history-mcp
Popularity5 GitHub stars
CategoryDeveloper tools
SecurityLow risk (84/100)
Rank#2,142 of 4,418 MCP servers; #474 in Developer tools
LicenseMIT
Last commit2026-05-11
RunsLocally
LanguageTypeScript
PlatformsmacOS, Linux

Is terminal-history-mcp safe to install?

terminal-history-mcp scores 84/100 on the MCPMods security check: Low risk. Things to review: executes code or shell commands. It passed 4 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Community-built serverNote
Runs on your machine onlyPass
No credentials mentionedPass
Read-only by descriptionPass
Executes code or shell commandsReview
Source on GitHubPass

How do I install terminal-history-mcp?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/HasanJahidul/terminal-history-mcp
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add terminal-history-mcp -- <command from README>
    claude mcp add --transport http terminal-history-mcp <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs terminal-history-mcp for you:

Add the "terminal-history-mcp" MCP server from https://github.com/HasanJahidul/terminal-history-mcp to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.