Recycle Bin Forensics MCP Server
README.md
# ๐๏ธ Recycle Bin Forensics MCP Server
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
[](https://modelcontextprotocol.io/)
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
```bash
git clone https://github.com/SaravanaGuhan/recycle-bin-forensics-mcp.git
cd recycle-bin-forensics-mcp
```
### 2. Install Dependencies
```bash
pip install -r requirements.txt
```
### 3. Configure MCP Server
#### For Kiro IDE:
Add to your `.kiro/settings/mcp.json`:
```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`:
```json
{
"mcpServers": {
"recycle-bin-forensics": {
"command": "python",
"args": ["path/to/recycle_bin_server.py"]
}
}
}
```
### 4. Test Installation
```bash
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
```python
# 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:
```bash
# 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
1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ๐ Acknowledgments
- Built for the [Model Context Protocol](https://modelcontextprotocol.io/)
- Compatible with [Kiro IDE](https://kiro.ai/) and Claude Desktop
- Inspired by digital forensics best practices
## ๐ Support
- **Issues**: [GitHub Issues](https://github.com/SaravanaGuhan/recycle-bin-forensics-mcp/issues)
- **Discussions**: [GitHub Discussions](https://github.com/SaravanaGuhan/recycle-bin-forensics-mcp/discussions)
- **Documentation**: See [PROJECT_SUMMARY.md](PROJECT_SUMMARY.md) for detailed technical information
---
**โญ Star this repository if you find it useful!**This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues