LocalFree

Terminal History MCP server

HasanJahidul/terminal-history-mcp

Local full-text search over zsh, bash and fish history, with secret redaction and optional capture of cwd, exit code and duration.

5 GitHub stars

Install Terminal History in Claude Code

This server doesn't publish a package to a registry, so follow the install steps in its README. Once it runs, register it with Claude Code:

Claude Code
claude mcp add terminal-history -- <command to start the server>

Frequently asked questions

What does the Terminal History MCP server do?

Local full-text search over zsh, bash and fish history, with secret redaction and optional capture of cwd, exit code and duration.

Is the Terminal History MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Terminal History run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Terminal History to Claude Code?

Follow the install steps in the project's README at https://github.com/HasanJahidul/terminal-history-mcp, then register it with "claude mcp add".

More command line & os automation MCP servers

View all