mcp-histfile
Historial del comando MCP
Una potente herramienta para explorar, buscar y gestionar el historial de comandos de shell mediante la interfaz MCP (Protocolo de Control de Modelos). Este proyecto permite acceder, buscar y recuperar fácilmente los comandos de shell ejecutados previamente.
Características
Acceso al historial de comandos : acceda a su historial de comandos de shell mediante programación
Búsqueda potente : busque en su historial de comandos con consultas de texto
Comandos recientes : recupere rápidamente sus comandos ejecutados más recientemente
Integración con MCP : se integra perfectamente con Cursor y otras herramientas compatibles con MCP
Related MCP server: Terminal History MCP
Instalación
Prerrequisitos
Python 3.6 o superior
Un shell con soporte de historial (Bash, Zsh, etc.)
Instalar desde la fuente
# Clone the repository
git clone https://github.com/yourusername/mcp-cmd-history.git
cd mcp-cmd-history
# Install dependencies
pip install -r requirements.txtUso
Iniciando el servidor
python mcp_history_server.pyDe forma predeterminada, el servidor leerá el historial de shell desde la ubicación especificada en la variable de entorno HISTFILE o recurrirá a ~/.bash_history .
Uso con cursor
Una vez que el servidor esté en ejecución, puede utilizar las siguientes herramientas MCP en Cursor:
Obtener comandos recientes :
Please show me my most recent shell commands.Historial de comandos de búsqueda :
Please search my command history for 'git commit' and show me the results.Obtener comando específico : puede recuperar un comando específico por su ID después de buscar o enumerar comandos recientes.
Referencia de API
Herramientas MCP
search_commands(query: str): busca comandos en el historial del shellget_recent_commands(limit: int = 10): Obtener los comandos más recientes del historialget_command(command_id: int): Obtener un comando específico por ID
Recursos de MCP
history://recent/{limit}: Obtener comandos recientes (punto final HTTP)history://search/{query}: Buscar comandos (punto final HTTP)
Contribuyendo
¡Agradecemos sus contribuciones! Consulte las normas en CONTRIBUTING.md .
Licencia
Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.
This server cannot be deployed
Maintenance
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Hacker News MCP — search and retrieve stories from Hacker News
- LogRackOAuthai.lograck
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables users to retrieve, filter, and search through Claude Code conversation history stored in local projects. It provides tools for listing projects and sessions, paginating through message history, and searching across conversations with keyword filtering.411 npm11MIT
- AlicenseAqualityDmaintenanceDevelopers: Search your zsh, bash, or fish shell history from Claude Code, Cline, Cursor, Zed, or any MCP client using tools like search_history (full-text with timestamp/CWD/exit code), recent_in_dir, failed_commands, and command_chains for multi-step sequences. Reindex after new activity. Local-only SQLite FTS5 with secrets redacted before storage.525 npm5MIT
- FlicenseNot gradedqualityBmaintenanceLocal semantic search over Claude Code sessions and shell command history, exposed to Claude Code as an MCP tool. Everything is indexed into one vector space and runs entirely on your machine.2-
- FlicenseNot gradedqualityAmaintenanceLocal MCP server that lets your AI coding agent query its own cross-tool project history - file/command freshness, past test failures, cost & token spend, cache status, and session handoff - over stdio, 100% local, no telemetry.51-