Velociraptor Forensic Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Velociraptor Forensic Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Turn Claude Desktop into a DFIR workstation.
A unified Model Context Protocol (MCP) server that connects Claude Desktop to your Velociraptor instance AND local forensic tools. Remote endpoint investigation + local evidence analysis in one server. Docker deployment for Velociraptor included.
Instead of switching between the Velociraptor GUI, terminal VQL sessions, and forensic scripts, you talk to Claude and it runs them for you. Ask Claude to:
Linux.Sys.Users artifact collection and retrieves resultsAll results come back in the chat. No copy-pasting. No tab switching. Full forensic chain from endpoint to evidence.
| Tool | Description |
|---|---|
| vr_authenticate | Test gRPC connection to Velociraptor |
| vr_get_agent_info | Look up a client by hostname → client_id, OS, agent version, last seen |
| vr_run_vql | Execute arbitrary VQL queries on the server |
| vr_list_artifacts | List all available client artifacts with descriptions |
| vr_artifact_details | Get full specs for a specific artifact |
| vr_collect_artifact | Start artifact collection on a remote endpoint (returns flow_id) |
| vr_get_collection_results | Poll and retrieve completed collection results (with retry logic) |
| Tool | Description |
|---|---|
| local_file_metadata | SHA-256, size, timestamps for a file (sandboxed to SAFE_BASE) |
| local_hash_directory | Recursively hash every file in a directory |
| local_scan_syslog | Search Linux syslog or macOS unified log by keyword |
| local_correlate | Cross-reference file metadata with log entries |
| local_forensic_report | Generate structured forensic report combining file + log data |
cd docker/
docker compose up -d
# Wait ~30 seconds for initialization
docker logs velociraptor --tail 10
# Should see: "Starting gRPC API server" and "Frontend is ready"Default GUI: https://localhost:9889 (admin/admin — change this!)
chmod +x generate-api-key.sh
./generate-api-key.shThis creates api.config.yaml with the gRPC credentials and automatically fixes the connection string for host access.
cd ../
python3.11 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"cp .env.example .env
# Edit .env — set your paths:
# VELOCIRAPTOR_API_KEY=/path/to/api.config.yaml
# SAFE_BASE=/home/youruser/evidenceAdd to ~/.config/Claude/claude_desktop_config.json (Linux) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"velociraptor-forensic": {
"command": "/path/to/velociraptor-forensic-mcp/.venv/bin/python",
"args": ["-m", "velociraptor_forensic_mcp"],
"cwd": "/path/to/velociraptor-forensic-mcp",
"env": {
"VELOCIRAPTOR_API_KEY": "/path/to/api.config.yaml",
"VELOCIRAPTOR_SSL_VERIFY": "false",
"SAFE_BASE": "/home/youruser/evidence",
"LOG_LEVEL": "INFO"
}
}
}
}The tools will appear automatically. Start investigating.
| Variable | Description | Default | Required |
|---|---|---|---|
VELOCIRAPTOR_API_KEY | Path to api.config.yaml | — | For remote tools |
VELOCIRAPTOR_SSL_VERIFY | Verify gRPC TLS certs | true | |
VELOCIRAPTOR_TIMEOUT | gRPC timeout (seconds) | 30 | |
SAFE_BASE | Root directory for local forensic tools | — | For local tools |
MCP_SERVER_HOST | Bind host for SSE transport | 127.0.0.1 | |
MCP_SERVER_PORT | Bind port for SSE transport | 8000 | |
LOG_LEVEL | DEBUG/INFO/WARNING/ERROR | INFO | |
DISABLED_TOOLS | Comma-separated tool names to disable | — | |
READ_ONLY | Block artifact collection | false |
The docker/ folder contains everything to run Velociraptor in Docker with ports mapped to avoid common conflicts:
| Host Port | Service | Purpose |
|---|---|---|
| 9000 | Client frontend | Velociraptor agent check-in |
| 9001 | gRPC API | MCP server connects here |
| 9889 | Web GUI | Your browser |
To enroll the machine running Docker as a Velociraptor client:
cd docker/
# Copy client binary and config
docker cp velociraptor:/velociraptor/clients/linux/velociraptor_client_repacked ./velociraptor_client
chmod +x velociraptor_client
docker exec velociraptor cat client.config.yaml > client.config.yaml
sed -i 's|https://VelociraptorServer:8000/|https://localhost:9000/|' client.config.yaml
# Run the client (Ctrl+C to stop)
sudo ./velociraptor_client --config client.config.yaml client -v"Look up the endpoint pop-os, collect its user list, and check syslog for any suspicious entries"
Claude chains: vr_get_agent_info → vr_collect_artifact → vr_get_collection_results → local_scan_syslog
"Hash all files in /evidence/case-2024/ and check if any appear in the system logs"
Claude chains: local_hash_directory → local_correlate for each suspicious file
"Run a VQL query to show me all listening network connections on client C.1393a876d1c48287"
Claude uses vr_collect_artifact with Linux.Network.Netstat or writes custom VQL via vr_run_vql
"Scan syslog for 'authentication failure' and give me a summary"
Claude uses local_scan_syslog and synthesizes the results
velociraptor-forensic-mcp/
├── velociraptor_forensic_mcp/
│ ├── __init__.py # Package metadata
│ ├── __main__.py # CLI entry point
│ ├── config.py # Dataclass configs (Velociraptor, Forensic, Server)
│ ├── exceptions.py # Custom exception hierarchy
│ ├── vr_client.py # Velociraptor gRPC client
│ ├── forensic_helpers.py # Local forensic functions
│ └── server.py # FastMCP server with all tools/prompts/resources
├── docker/
│ ├── docker-compose.yaml # Velociraptor Docker deployment
│ └── generate-api-key.sh # API key generation script
├── tests/
│ └── test_forensic.py # Unit tests
├── pyproject.toml # Python packaging
├── .env.example # Configuration template
└── README.mdapi.config.yaml contains a private key — chmod 600 it--role api,investigator not administratorREAD_ONLY=true to prevent artifact collectionapi.config.yaml or .env to version controlsource .venv/bin/activate
pytest -vThis server combines two open-source projects into a unified MCP interface:
Both toolkits activate independently based on which environment variables are set. You can run Velociraptor-only, local-only, or both together.
This tool is intended for authorized digital forensics and incident response only. Always ensure you have proper authorization before collecting artifacts from endpoints. Unauthorized access to computer systems is illegal.
Pull requests welcome. To add a new tool:
forensic_helpers.py (local) or vr_client.py (remote)server.py_register_forensic_tools() or _register_velociraptor_tools()White hat or no hat 🎩
Built with Claude. Tested on live Velociraptor deployment. Stay legal.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.