Skip to main content
Glama
Recycle Bin Forensics MCP Server

Recycle Bin Forensics MCP Server

πŸ—‘οΈ Recycle Bin Forensics MCP Server

License: MIT Python 3.8+ MCP Compatible

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

Related MCP server: Windows Forensics MCP Server

πŸš€ 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

  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 file for details.

πŸ™ Acknowledgments

πŸ“ž Support


⭐ Star this repository if you find it useful!

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables fast, scriptable access to Windows .evtx event logs for incident response and digital forensics. Supports filtering events by time windows, Event IDs, and keywords with field projection to reduce output size.
      57
      GPL 3.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI-assisted Windows digital forensics analysis including parsing Windows Event Logs (EVTX), analyzing registry hives (SAM, SYSTEM, SOFTWARE), and remotely collecting artifacts via WinRM with built-in security queries and forensic reference data.
      55
      27
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables forensic analysis of Windows notification databases (wpndatabase.db) from E01 forensic images, automatically extracting and parsing notification data with search, filtering, timeline analysis, and sensitive information detection capabilities.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables digital forensic analysis of Windows shortcut (LNK) files from E01 disk images. Supports automatic partition detection, LNK file extraction, metadata parsing, and timeline analysis through MCP-compatible agents.
      1
      -