mcp-histfile
MCP 명령 기록
MCP(모델 제어 프로토콜) 인터페이스를 통해 셸 명령 기록을 탐색, 검색 및 관리할 수 있는 강력한 도구입니다. 이 프로젝트를 사용하면 이전에 실행한 셸 명령에 쉽게 접근하고 검색하고 불러올 수 있습니다.
특징
명령 기록 액세스 : 프로그래밍 방식으로 셸 명령 기록에 액세스합니다.
강력한 검색 : 텍스트 쿼리로 명령 기록을 검색합니다.
최근 명령 : 가장 최근에 실행한 명령을 빠르게 검색합니다.
MCP 통합 : Cursor 및 기타 MCP 호환 도구와 완벽하게 통합됩니다.
Related MCP server: Terminal History MCP
설치
필수 조건
Python 3.6 이상
히스토리 지원 셸(Bash, Zsh 등)
소스에서 설치
지엑스피1
용법
서버 시작
python mcp_history_server.py기본적으로 서버는 HISTFILE 환경 변수에 지정된 위치에서 셸 기록을 읽거나 ~/.bash_history 로 돌아갑니다.
커서와 함께 사용
서버가 실행되면 Cursor에서 다음 MCP 도구를 사용할 수 있습니다.
최근 명령 가져오기 :
Please show me my most recent shell commands.검색 명령 기록 :
Please search my command history for 'git commit' and show me the results.특정 명령 가져오기 : 최근 명령을 검색하거나 나열한 후 해당 ID로 특정 명령을 검색할 수 있습니다.
API 참조
MCP 도구
search_commands(query: str): 쉘 기록에서 명령어 검색get_recent_commands(limit: int = 10): 기록에서 가장 최근의 명령을 가져옵니다.get_command(command_id: int): ID로 특정 명령을 가져옵니다.
MCP 리소스
history://recent/{limit}: 최근 명령 가져오기(HTTP 엔드포인트)history://search/{query}: 명령어 검색(HTTP 엔드포인트)
기여하다
기여를 환영합니다! 자세한 내용은 CONTRIBUTING.md를 참조하세요.
특허
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.42511MIT
- 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.5204MIT
- Flicense-qualityBmaintenanceLocal 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
- Flicense-qualityAmaintenanceLocal 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.37
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rajpdus/mcp-histfile'
If you have feedback or need assistance with the MCP directory API, please join our Discord server