Purpose: mcp-virustotal is an MCP server for AI agents that exposes the capabilities of the VirusTotal v3 API to agents. Give the agent a hash, URL, IP, or domain, and it returns detection reports, along with related information that analysts would continue to track, such as contacted hosts, dropped files, resolution records, and threat actors. This project is independent and is not affiliated with VirusTotal or Google, and users must provide their own VirusTotal API key.
Main capabilities: File, URL, IP, and domain reports are retrieved through a single batched ?relationships= call to obtain key relationships, saving quota; get_url_report prioritizes returning cached VirusTotal reports and only submits a scan on a cache miss; pivot tools are provided, supporting corpus searches with VTI-style modifiers (such as type:peexe positives:5+), merged sandbox behavior summaries, and threat actor and malware family collections; support for more than 100 relationship types across files, URLs, IPs, and domains, with cursor pagination; a total of eleven tools are provided, and the full parameters and relationship lists are in the tool reference documentation.
Usage: Requires Node.js 20 or higher and a VirusTotal API key. By default, stdio transport is used, which is suitable for desktop clients; setting MCP_TRANSPORT=httpStream runs a standalone HTTP service, with the health check at /health. For connection methods for Claude Desktop, VS Code, Smithery, and running from source, see the "Connect a client" documentation.
Limitations and security: The HTTP transport has no authentication, so it should only listen on localhost or be placed behind an authenticated reverse proxy; otherwise, anyone who can access that port may consume your API quota. Tool parameters are validated with zod schemas before requests are constructed; the API key is read from environment variables and is sent only to VirusTotal. Queries send indicators to VirusTotal, and URL scans on cache misses submit that URL for analysis. The public tier allows 4 requests per minute, and exceeding the limit returns 429; smoke tests call at 20-second intervals according to the public tier limit, and are not suitable for the free tier with only a few queries per day. Logs are located in the package directoryat logs/mcp-virustotal-server.log. The project uses the MIT license.