MCP Command History logo

MCP Command History

by rajpdus

A tool for exploring, searching, and managing shell command history through the MCP interface. It allows easy access, search, and retrieval of previously executed shell commands.

View on GitHub

Last updated: N/A

What is MCP Command History?

MCP Command History is a server that provides access to your shell command history through the Model Control Protocol (MCP). It allows you to search, retrieve, and manage your previously executed shell commands programmatically.

How to use MCP Command History?

First, install the server by cloning the repository and installing the dependencies. Then, start the server using python mcp_history_server.py. Once the server is running, you can use MCP-compatible tools like Cursor to interact with your command history using natural language queries.

Key features of MCP Command History

  • Command History Access

  • Powerful Search

  • Recent Commands

  • MCP Integration

Use cases of MCP Command History

  • Searching for specific commands used in the past

  • Retrieving recent commands for quick reuse

  • Integrating command history access into development workflows

  • Automating command execution based on history

FAQ from MCP Command History

What shells are supported?

The server supports any shell with history support, such as Bash and Zsh.

How do I specify the history file?

The server reads the history file location from the HISTFILE environment variable, or falls back to ~/.bash_history if the variable is not set.

What is MCP?

MCP stands for Model Control Protocol. It's a protocol that allows tools like Cursor to interact with servers like this one.

Can I contribute to this project?

Yes, contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.

What license is this project under?

This project is licensed under the MIT License.