# mcp-histfile

> MCP Server

This repository provides a tool to access, search, and manage shell command history through the MCP interface, enabling users to retrieve recent commands and search for specific commands easily.

## Overview

- **Category:** Developer Tools
- **Language:** Python
- **Stars:** 2
- **Forks:** 0
- **Owner:** rajpdus
- **GitHub:** https://github.com/rajpdus/mcp-histfile
- **Created:** 2025-03-13T14:53:12+00:00
- **Updated:** 2025-03-23T13:42:27+00:00
- **Source:** https://model-context-protocol.com/servers/mcp-shell-history-server-command-retrieval

## Setup

## Setup

### Prerequisites

- Python 3.6 or higher
- A shell with history support (Bash, Zsh, etc.)

### Install from Source

```bash
# Clone the repository
git clone https://github.com/yourusername/mcp-cmd-history.git
cd mcp-cmd-history

# Install dependencies
pip install -r requirements.txt
```

## Tools

## Available Tools

1. Command History Access (Access your shell command history programmatically)
2. Powerful Search (Search through your command history with text queries)
3. Recent Commands (Quickly retrieve your most recently executed commands)
4. MCP Integration (Seamlessly integrates with Cursor and other MCP-compatible tools)

