FRENES

Terminal and OS · MCP server

Terminal history MCP: MCP server, setup and security

Terminal history MCP is an open-source MCP server published on GitHub that lets an AI agent search past terminal commands across local shell history files. Its repository has 5 stars and its last commit is from May 11, 2026 and it is licensed under MIT.

Last commit 6 months agoSystem access

What Terminal history MCP does

According to its repository: “Local full-text search over zsh, bash and fish history, with secret redaction and optional capture of cwd, exit code and duration.”

The Model Context Protocol (MCP) is a standard plug between an AI agent and an outside service: once the server is connected, its tools show up in the agent, which decides when to call them. Terminal history MCP is listed under Terminal and OS, a category of 115 servers in the directory, where it ranks #114 by stars.

Topics declared by the repository: claude, cli, fts5, shell-history, sqlite, terminal.

Installing and connecting Terminal history MCP

No package or remote server is declared in the official MCP registry: you install it from source, following the repository README.

It works with any MCP-compatible client (Claude Desktop, Claude Code, Cursor, VS Code, Codex and most recent agents). You add one entry to the client's MCP configuration: server name, start command or URL, environment variables. Project language: TypeScript. Listed systems: macOS, Linux.

Security: what to check

Connecting an MCP server means installing software that talks straight to your agent: it runs with your rights and the model trusts its tool descriptions. The risk therefore depends on what it can touch and how far its code can be trusted.

Points found for Terminal history MCP:

  • System access: the Terminal and OS category gives the agent control over files, a terminal, code or a browser. A booby-trapped instruction in content the agent reads (prompt injection) can then turn into an action.

Good practice: grant only the rights needed (least privilege), require human approval for irreversible actions, and run the AI agent security check.

Project activity and maintenance

Created on May 8, 2026, the HasanJahidul/terminal-history-mcp repository has 5 stars and 0 forks, with 0 open issues. It has more stars than 13% of the servers in the directory. Last change 6 months ago.

Stars measure attention, not quality: a recent, heavily promoted project can collect them fast, while a useful but niche server will have few.

REAREA : 377.2K377.2KOh My Posh ValidatorOh My Posh Validator : 23.6K23.6KXERJXERJ : 15.2K15.2KWindows MCPWindows MCP : 10.2K10.2KNotFairNotFair : 4.1K4.1KKordocKordoc : 2.7K2.7KClaude real videoClaude real video : 2.3K2.3KLlmwikiLlmwiki : 2.2K2.2KTerminal history MCPTerminal history MCP : 55
GitHub stars of the most followed servers in the category (log scale); Terminal history MCP in orange. Checked October 25, 2026.

Verdict

Terminal history MCP is still a modest project: read its code and compare it with the alternatives before using it.

Strengths

  • Permissive licence (MIT)

Limitations

  • Few visible users
  • Install from source

Avoid if…

  • You cannot isolate the agent (sandbox, container)

Frequently asked questions

How do I install Terminal history MCP?

No package is declared in the MCP registry: clone the HasanJahidul/terminal-history-mcp repository, follow its README, then declare the start command in your client's MCP configuration.

Is Terminal history MCP free?

The code is published under the MIT licence and can be used free of charge.

Is Terminal history MCP safe?

Points to watch: system access. Give it minimum rights and approve sensitive actions.

Is it an official server?

Nothing says so: it is a project published by HasanJahidul on GitHub. Check who maintains it before giving it access.

What are the alternatives to Terminal history MCP?

In the same category: Oh My Posh Validator, REA, XERJ, and Windows MCP. Oh My Posh Validator and REA score higher on our grid.

Related articles

Neutrality. No affiliate links. No vendor pays to be reviewed, rated or ranked. Reviews are directed by François Chollet, neutral and factual, and every data point is dated and sourced. How we score