Allows generating Ansible playbooks for automated deployment of Velociraptor agents across large-scale infrastructure.
Provides tools for deploying and managing Velociraptor servers using Docker containers.
Facilitates the deployment of Velociraptor agents to Linux systems via SSH for remote forensics and incident response tasks.
Enables deployment of Velociraptor agents to macOS endpoints via SSH for conducting remote forensic investigations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Megaraptor MCPsearch for the file hash a1b2c3d4e5f6 across all endpoints"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Megaraptor MCP
A Model Context Protocol (MCP) server that provides AI assistants with access to Velociraptor - the powerful digital forensics and incident response (DFIR) platform.
Overview
Megaraptor MCP enables AI assistants like Claude to interact with Velociraptor servers for:
Endpoint Management: Search, interrogate, and manage Velociraptor clients
Artifact Collection: Schedule forensic artifact collection on endpoints
Threat Hunting: Create and manage hunts across multiple endpoints
VQL Queries: Execute arbitrary Velociraptor Query Language queries
Incident Response: Pre-built DFIR workflow prompts for common scenarios
Deployment Automation: Deploy Velociraptor servers and agents across infrastructure (Docker, binary, cloud, GPO, SSH, WinRM, Ansible)
Features
MCP Tools (33 tools)
Core DFIR Tools (15 tools)
Category | Tool | Description |
Clients |
| Search and list Velociraptor endpoints |
| Get detailed information about a client | |
| Add/remove labels from clients | |
| Quarantine or release endpoints | |
Artifacts |
| List available Velociraptor artifacts |
| Get full artifact definition | |
| Schedule artifact collection on a client | |
Hunts |
| Create a mass collection campaign |
| List existing hunts | |
| Retrieve results from a hunt | |
| Start, pause, stop, or archive hunts | |
Flows |
| List collection flows for a client |
| Get results from a collection | |
| Check collection status | |
| Cancel a running collection | |
VQL |
| Execute arbitrary VQL queries |
| Get help on VQL syntax and plugins |
Deployment Tools (18 tools)
Category | Tool | Description |
Server Deployment |
| Deploy Velociraptor server as standalone binary |
| Deploy Velociraptor server using Docker | |
| Deploy Velociraptor server to AWS/Azure cloud | |
| Generate server configuration with certificates | |
Agent Deployment |
| Generate GPO deployment package for Windows |
| Deploy agents via WinRM to Windows endpoints | |
| Deploy agents via SSH to Linux/macOS endpoints | |
| Generate Ansible playbook for agent deployment | |
| Build standalone offline collector | |
| Generate client configuration file | |
Deployment Management |
| List tracked deployment operations |
| Get detailed status of a deployment | |
| Verify deployment health and connectivity | |
| Rollback a failed deployment | |
Credentials |
| Securely store deployment credentials |
| List stored credential aliases | |
| Remove stored credentials | |
Utilities |
| Download Velociraptor binary for platform |
MCP Resources
Browse Velociraptor data through standardized URIs:
velociraptor://clients- Browse connected endpointsvelociraptor://clients/{client_id}- View specific client detailsvelociraptor://hunts- Browse hunt campaignsvelociraptor://hunts/{hunt_id}- View specific hunt detailsvelociraptor://artifacts- Browse available artifactsvelociraptor://server-info- View server informationvelociraptor://deployments- Browse deployment operations and status
MCP Prompts (8 prompts)
Pre-built DFIR and deployment workflow prompts:
Prompt | Category | Description |
| DFIR | Comprehensive endpoint investigation workflow |
| DFIR | Create and execute threat hunting campaigns |
| DFIR | Rapid incident triage and scoping |
| DFIR | Analyze suspicious files or processes |
| DFIR | Detect lateral movement indicators |
| Deployment | Interactive Velociraptor deployment wizard |
| Deployment | Plan enterprise-scale agent rollout |
| Deployment | Diagnose and fix deployment issues |
Installation
Prerequisites
Python 3.10 or higher
A running Velociraptor server with API access enabled
API client credentials (see Configuration)
Install from source
Optional Dependencies
Extra | Features | Packages |
| Agent/server deployment | paramiko, pywinrm, cryptography, jinja2 |
| Cloud deployment | boto3, azure-mgmt-compute |
| All features | All of the above |
Install dependencies manually
Configuration
Megaraptor MCP supports two authentication methods:
Option 1: Config File (Recommended)
Generate an API client config on your Velociraptor server:
Set the environment variable:
Option 2: Environment Variables
Set individual configuration values:
API Roles
Assign appropriate roles to your API client based on required capabilities:
Role | Capabilities |
| Read clients, artifacts, hunts, flows |
| Above + collect artifacts, create hunts |
| Full access (use with caution) |
Usage
Running the Server
Claude Desktop Integration
Add to your Claude Desktop configuration (claude_desktop_config.json):
Example Interactions
List connected endpoints:
Investigate an endpoint:
Create a threat hunt:
Run custom VQL:
VQL Reference
VQL (Velociraptor Query Language) is the core query language. Common patterns:
For complete VQL reference, see: https://docs.velociraptor.app/vql_reference/
Deployment Features
Megaraptor MCP includes comprehensive deployment automation for Velociraptor infrastructure.
Server Deployment
Deploy Velociraptor servers using multiple methods:
Method | Use Case | Command |
Binary | On-premise, direct installation |
|
Docker | Container environments, quick testing |
|
Cloud | AWS/Azure managed deployments |
|
Example: Deploy Docker server
Agent Deployment
Multiple agent deployment methods for different environments:
Method | Target | Best For |
GPO | Windows (Active Directory) | Enterprise Windows environments |
WinRM | Windows (remote) | Windows without AD, smaller deployments |
SSH | Linux/macOS | Unix-like systems |
Ansible | Multi-platform | Large-scale infrastructure automation |
Offline Collector | Air-gapped | Isolated networks, forensic collection |
Example: Deploy agents via GPO
Example: Deploy via Ansible
Deployment Profiles
Pre-configured deployment profiles for different scenarios:
Profile | Use Case | Characteristics |
rapid | Quick testing, POC | Minimal config, self-signed certs |
standard | Production single-site | Proper certificates, standard hardening |
enterprise | Large-scale multi-site | HA config, advanced monitoring, compliance |
Credential Management
Securely store deployment credentials:
Credentials are encrypted at rest using AES-256-GCM with a locally-generated key.
Offline Collectors
Build standalone collectors for air-gapped environments:
Collectors include embedded configuration and can run without network connectivity.
Project Structure
Security Considerations
API Security
API Credentials: Store API client credentials securely. The config file contains private keys.
Principle of Least Privilege: Use the minimum required roles for API clients.
Network Security: Ensure API connections are only accessible from trusted networks.
Audit Logging: Velociraptor logs all API actions. Review logs regularly.
Quarantine Caution: The quarantine tool can isolate endpoints from the network.
Deployment Security
Credential Encryption: Deployment credentials are encrypted at rest using AES-256-GCM. The
.keyfileis generated locally and should be protected.Generated Configs: Server and client configurations contain CA certificates and private keys. These are excluded from git via
.gitignore.Ansible Playbooks: Generated playbooks may contain CA certificates. Store securely and limit access.
Cloud Templates: CloudFormation and ARM templates may contain sensitive parameters. Review before committing.
SSH/WinRM: Use key-based authentication where possible. Avoid storing passwords in plain text.
Offline Collectors: Built collectors contain embedded configuration. Protect as you would agent binaries.
GPO Packages: MSI packages contain embedded configuration. Control access to distribution share.
Development
Running Tests
Contributing
Fork the repository
Create a feature branch
Make your changes
Run tests
Submit a pull request
License
MIT License - see LICENSE file for details.
Resources
Acknowledgments
The Velociraptor team at Velocidex for creating an amazing DFIR platform
Anthropic for the Model Context Protocol specification