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
Features
MCP 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 |
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 information
MCP Prompts
Pre-built DFIR workflow prompts:
Prompt | Description |
| Comprehensive endpoint investigation workflow |
| Create and execute threat hunting campaigns |
| Rapid incident triage and scoping |
| Analyze suspicious files or processes |
| Detect lateral movement indicators |
Installation
Prerequisites
Python 3.10 or higher
A running Velociraptor server with API access enabled
API client credentials (see Configuration)
Install from source
Install dependencies
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/
Project Structure
Security Considerations
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.
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