SaravanaGuhan/recycle-bin-forensics-mcp
If you are the rightful owner of recycle-bin-forensics-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
Recycle Bin Forensics MCP Server is a professional tool designed for forensic analysis of Windows Recycle Bin contents, aiding in digital forensics, system administration, and cybersecurity investigations.
🗑️ Recycle Bin Forensics MCP Server
A professional Model Context Protocol (MCP) server for forensic analysis of Windows Recycle Bin contents. Perfect for digital forensics, system administration, and cybersecurity investigations.
🔍 Features
Core Forensic Capabilities
- 📋 List Recycled Items - Complete inventory with metadata
- 🔍 Advanced Search - Filter by name, type, date range
- 📊 Timeline Analysis - Chronological deletion timeline
- 💾 File Recovery - Safe restoration with integrity
- 📈 Forensic Reports - Export in JSON/CSV formats
- 🔬 Metadata Extraction - File sizes, timestamps, original paths
Technical Features
- Windows $I File Parsing - Native Recycle Bin format support
- Unicode Path Handling - International filename support
- Multi-User Analysis - Cross-SID folder scanning
- Permission Handling - Graceful access control management
- Real-time Analysis - Live system data processing
🚀 Quick Start
1. Clone the Repository
git clone https://github.com/SaravanaGuhan/recycle-bin-forensics-mcp.git
cd recycle-bin-forensics-mcp
2. Install Dependencies
pip install -r requirements.txt
3. Configure MCP Server
For Kiro IDE:
Add to your .kiro/settings/mcp.json:
{
"mcpServers": {
"recycle-bin-forensics": {
"command": "python",
"args": ["path/to/recycle_bin_server.py"],
"env": {
"PYTHONPATH": "path/to/recycle-bin-forensics-mcp"
},
"disabled": false,
"autoApprove": [
"list_recycled_items",
"get_item_details",
"search_recycled_files",
"analyze_timeline",
"export_forensic_report"
]
}
}
}
For Claude Desktop:
Add to your claude_desktop_config.json:
{
"mcpServers": {
"recycle-bin-forensics": {
"command": "python",
"args": ["path/to/recycle_bin_server.py"]
}
}
}
4. Test Installation
python test_server.py
python verify_setup.py
🛠️ Available Tools
| Tool | Description | Parameters |
|---|---|---|
list_recycled_items | List all items in Recycle Bin | None |
get_item_details | Get detailed info about specific item | item_id |
search_recycled_files | Search with filters | query, file_type, date_from, date_to |
recover_item | Restore file from Recycle Bin | item_id, destination (optional) |
analyze_timeline | Generate deletion timeline | None |
export_forensic_report | Create comprehensive report | format ("json" or "csv") |
💬 Usage Examples
With AI Assistants
"List all recycled items"
"Search for PDF files deleted in the last week"
"Generate a forensic timeline of deletions"
"Recover the file with ID HLCQJ6.docx"
"Export a forensic report in CSV format"
Direct API Usage
# List all recycled items
items = await call_tool("list_recycled_items", {})
# Search for specific files
results = await call_tool("search_recycled_files", {
"query": "confidential",
"file_type": ".pdf",
"date_from": "2024-01-01"
})
# Generate timeline
timeline = await call_tool("analyze_timeline", {})
🧪 Testing
Run the comprehensive test suite:
# Basic functionality
python test_server.py
# MCP integration
python test_mcp_simple.py
# Forensic scenarios
python test_forensic_scenarios.py
# Setup verification
python verify_setup.py
📋 Requirements
- OS: Windows 10/11 (Recycle Bin specific)
- Python: 3.8 or higher
- Dependencies: See
requirements.txt - Permissions: Standard user (admin for some advanced features)
🔒 Security & Privacy
- Read-Only Analysis - No modification of original data
- Permission Respect - Graceful handling of access restrictions
- Data Integrity - Maintains forensic chain of custody
- Local Processing - All analysis performed locally
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the file for details.
🙏 Acknowledgments
- Built for the Model Context Protocol
- Compatible with Kiro IDE and Claude Desktop
- Inspired by digital forensics best practices
📞 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: See for detailed technical information
⭐ Star this repository if you find it useful!