MCP server for VirusTotal — file, URL, domain & IP threat intelligence via the VT API v3.
VirusTotal is a service that analyzes files, URLs, domains, and IP addresses for malware and other threats using 70+ antivirus engines and URL/domain blocklisting services.
See VirusTotal API v3 documentation for full details.
API key required — Set the VT_API_KEY environment variable with your VirusTotal API key. Get one free at virustotal.com.
Summary. MCP server for VirusTotal — file, URL, domain & IP threat intelligence via the VT API v3.
Tools:
vt_file_report — Get analysis report for a file by hash (MD5/SHA-1/SHA-256)vt_url_report — Get analysis report for a URLvt_domain_report — Get analysis report for a domainvt_ip_report — Get analysis report for an IP addressvt_scan_url — Submit a URL for scanningvt_get_analysis — Get status/results of a pending analysisvt_file_reportGet the VirusTotal analysis report for a file by its hash (MD5, SHA-1, or SHA-256).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file_hash | string | Yes | — | MD5, SHA-1, or SHA-256 hash of the file |
{
"hash": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f",
"sha256": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f",
"file_name": "eicar.com",
"file_type": "EICAR test file",
"size": 68,
"verdict": "malicious",
"stats": {
"malicious": 62,
"suspicious": 0,
"undetected": 6,
"harmless": 0
},
"reputation": -892,
"tags": ["eicar"],
"first_seen": 1178279769,
"last_analysis_date": 1710000000
}
vt_url_reportGet the VirusTotal analysis report for a URL.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | — | The URL to look up (e.g. https://example.com/path) |
{
"url": "https://example.com",
"final_url": "https://example.com/",
"verdict": "clean",
"stats": {
"malicious": 0,
"suspicious": 0,
"undetected": 5,
"harmless": 85
},
"reputation": 100,
"categories": {"Forcepoint ThreatSeeker": "information technology"},
"title": "Example Domain",
"last_analysis_date": 1710000000
}
vt_domain_reportGet the VirusTotal analysis report for a domain.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
domain | string | Yes | — | Domain name to look up (e.g. example.com) |
{
"domain": "example.com",
"verdict": "clean",
"stats": {
"malicious": 0,
"suspicious": 0,
"undetected": 3,
"harmless": 87
},
"reputation": 100,
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"creation_date": 694224000,
"categories": {"Forcepoint ThreatSeeker": "information technology"},
"whois": "...",
"last_analysis_date": 1710000000,
"tags": []
}
vt_ip_reportGet the VirusTotal analysis report for an IP address.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
ip_address | string | Yes | — | IPv4 or IPv6 address to look up |
{
"ip_address": "8.8.8.8",
"verdict": "clean",
"stats": {
"malicious": 0,
"suspicious": 0,
"undetected": 5,
"harmless": 85
},
"reputation": 100,
"as_owner": "GOOGLE",
"asn": 15169,
"country": "US",
"network": "8.8.8.0/24",
"last_analysis_date": 1710000000,
"tags": []
}
vt_scan_urlSubmit a URL to VirusTotal for scanning. Returns an analysis ID to check with vt_get_analysis.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | Yes | — | The URL to submit for scanning |
{
"url": "https://suspicious-site.com",
"analysis_id": "u-xxxx-1710000000",
"type": "analysis",
"message": "URL submitted for scanning. Use vt_get_analysis with the analysis_id to check results."
}
vt_get_analysisGet the status and results of a VirusTotal analysis by its ID.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
analysis_id | string | Yes | — | The analysis ID returned by vt_scan_url |
{
"analysis_id": "u-xxxx-1710000000",
"status": "completed",
"verdict": "malicious",
"stats": {
"malicious": 12,
"suspicious": 2,
"undetected": 50,
"harmless": 26
},
"date": 1710000000
}
Here are example prompts you can use with Claude (or any MCP client) when this tool is connected:
docker-compose up -d
docker run -i --rm -e VT_API_KEY="your-key-here" hackerdogs/virustotal-mcp:latest
docker run -d -p 8369:8369 \
-e MCP_TRANSPORT=streamable-http \
-e MCP_PORT=8369 \
-e VT_API_KEY="your-key-here" \
hackerdogs/virustotal-mcp:latest
Add to your Claude Desktop or Cursor MCP config:
{
"mcpServers": {
"virustotal-mcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT", "-e", "VT_API_KEY", "hackerdogs/virustotal-mcp:latest"],
"env": {
"MCP_TRANSPORT": "stdio",
"VT_API_KEY": ""
}
}
}
}
First, start the server using Docker Compose or docker run with HTTP mode (see Deploy above), then point your MCP client at the running server:
{
"mcpServers": {
"virustotal-mcp": {
"url": "http://localhost:8369/mcp"
}
}
}
When to use HTTP mode: HTTP mode is ideal for shared/remote deployments, multi-user setups, and Hackerdogs scheduled prompts. The server runs as a long-lived process and accepts connections from multiple MCP clients concurrently.
| Variable | Default | Description |
|---|---|---|
MCP_TRANSPORT | stdio | Transport mode: stdio or streamable-http |
MCP_PORT | 8369 | HTTP port (only used with streamable-http) |
VT_API_KEY | — | VirusTotal API key (required — get at virustotal.com) |
The fastest way to get started is through Hackerdogs:
Give it a couple of minutes to go live. Then start querying by asking Hackerdogs to use the tool explicitly (e.g. "Use VirusTotal to check if this hash is malicious"). If you don't specify, Hackerdogs will automatically choose the best tool for the job — it may choose this one on its own.
Want to contribute or chat with the team? Join our Discord.
docker build -t hackerdogs/virustotal-mcp:latest .
./test.sh
1. Start the server in HTTP mode:
docker run -d --rm --name virustotal-mcp-test -p 8369:8369 \
-e MCP_TRANSPORT=streamable-http \
-e VT_API_KEY="your-key-here" \
hackerdogs/virustotal-mcp:latest
2. Initialize the MCP session:
SESSION_ID=$(curl -s -D - -X POST http://localhost:8369/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"0.1"}}}' \
2>&1 | grep -i mcp-session-id | awk '{print $2}' | tr -d '\r\n')
curl -s -X POST http://localhost:8369/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
3. Call a tool:
curl -s -X POST http://localhost:8369/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"vt_domain_report","arguments":{"domain":"example.com"}}}'
4. Clean up:
docker stop virustotal-mcp-test
Since this is an API-based server (no CLI binary), you can test the API connection directly:
Check API key validity:
docker run --rm -e VT_API_KEY="your-key-here" hackerdogs/virustotal-mcp:latest \
python -c "import requests; r=requests.get('https://www.virustotal.com/api/v3/domains/example.com', headers={'x-apikey':'your-key-here'}); print(r.status_code)"
Quick domain check:
docker run --rm -e VT_API_KEY="your-key-here" hackerdogs/virustotal-mcp:latest \
python -c "
import requests, json
r = requests.get('https://www.virustotal.com/api/v3/domains/example.com',
headers={'x-apikey':'your-key-here', 'Accept':'application/json'})
print(json.dumps(r.json().get('data',{}).get('attributes',{}).get('last_analysis_stats',{}), indent=2))
"
docker pull hackerdogs/virustotal-mcp:latest