mcp-virustotal
Provides tools for accessing the VirusTotal v3 API, enabling AI agents to retrieve file, URL, IP, and domain reports with related threat intelligence, paginate relationships, search the VirusTotal corpus, summarize sandbox behavior, and explore collections such as threat actors and malware families.
Click on "Deploy 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., "@mcp-virustotalTell me about this file hash: 275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"
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.
mcp-virustotal is an MCP server that gives AI agents access to the VirusTotal v3 API. Hand your agent a hash, URL, IP or domain and get back the detection report plus the relationships an analyst would pivot on: contacted hosts, dropped files, resolutions, threat actors.
Independent project, not affiliated with VirusTotal or Google. You need your ownVirusTotal API key.
Highlights
Reports with relationships. File, URL, IP and domain reports fetch key relationships in one batched
?relationships=call to save quota.Cache first.
get_url_reportreturns the cached VirusTotal report and only submits a scan on a cache miss.Pivot tools. Corpus search with VTI-style modifiers (
type:peexe positives:5+), merged sandbox behaviour summaries, and threat-actor and malware-family collections.Full relationship paging. 100+ relationship types across files, URLs, IPs and domains, with cursor pagination.
Two transports. stdio for desktop clients, HTTP streaming for a shared service.
Tested. Unit tests for the formatters and API layer run in CI on Node 20, 22 and 24.
Related MCP server: VirusTotal MCP Server
How it works
flowchart LR
A["AI agent<br/>(Claude, Codex, Gemini, VS Code)"] -->|"MCP over stdio or HTTP"| S["mcp-virustotal"]
S -->|"validate input,<br/>HTTPS + API key"| V["VirusTotal v3 API"]
V -->|"JSON"| S
S -->|"formatted report text"| AQuickstart
Requirements: Node.js 20 or newer and a VirusTotal API key.
# Claude Code
claude mcp add --transport stdio --env VIRUSTOTAL_API_KEY=your-key virustotal -- npx -y @burtthecoder/mcp-virustotal
# Codex CLI
codex mcp add virustotal --env VIRUSTOTAL_API_KEY=your-key -- npx -y @burtthecoder/mcp-virustotal
# Gemini CLI
gemini mcp add -e VIRUSTOTAL_API_KEY=your-key virustotal npx -y @burtthecoder/mcp-virustotalFor Claude Desktop, VS Code, Smithery and running from source, see Connect a client.
Then ask your agent: "Look up the SHA-256 275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f (the EICAR test file) and show what it drops and contacts."
Tools
Eleven tools. Full parameters and relationship lists are in the tool reference.
Group | Tools |
Reports (with relationships) |
|
Relationship paging |
|
Search and pivot |
|
HTTP streaming transport
stdio is the default. Set MCP_TRANSPORT=httpStream to run a standalone HTTP service:
MCP_TRANSPORT=httpStream MCP_PORT=3000 VIRUSTOTAL_API_KEY=your-key node build/index.jsdocker build -t mcp-virustotal .
docker run -p 127.0.0.1:3000:3000 -e VIRUSTOTAL_API_KEY=your-key -e MCP_TRANSPORT=httpStream mcp-virustotalA health check is served at /health.
Environment variables
Variable | Default | Description |
| (required) | Your VirusTotal API key |
|
|
|
|
| Bind address ( |
|
| HTTP port ( |
|
| HTTP endpoint path ( |
Security
The HTTP transport hasno authentication. Keep the port on localhost or behind an authenticating reverse proxy, or anyone who can reach it can spend your API quota.
Tool arguments are validated with zod schemas before any request is built.
The API key is read from the environment and sent only to VirusTotal.
Lookups send your indicators to VirusTotal. A URL scan on a cache miss submits that URL for analysis.
Report vulnerabilities privately; see SECURITY.md.
Troubleshooting
Wrong API key: the key is usually 64 characters with no spaces or quotes. Restart the client after changing config.
429 errors: the public tier allows 4 requests per minute.
Logs:
logs/mcp-virustotal-server.login the package directory.
More in the troubleshooting guide.
Development
git clone https://github.com/w0h1v/mcp-virustotal && cd mcp-virustotal
npm ci
npm test # build + unit tests, no key or network
VIRUSTOTAL_API_KEY=your-key npm run smoke # all 11 tools against the real APIThe smoke test paces calls at 20 s for the public-tier limit and isn't suited to free tiers reduced to a few lookups a day. See CONTRIBUTING.md and the changelog.
License
MIT. See LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Official VirusTotal MCP server: threat reports, file and URL submissions, and analysis recovery.
VirusTotal MCP — file / URL / domain / IP reputation (BYO key)
Submit files and URLs to a malware sandbox, poll scans, fetch reports, hashes and IOCs.
Live threat intel for agents: incidents, actors, CVEs with KEV/EPSS, ransomware leak-site victims.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive security analysis tools for querying the VirusTotal API, enabling detailed security reports on URLs, files, IP addresses, and domains with automatic relationship data fetching.3Apache 2.0
- AlicenseAqualityDmaintenanceEnables security analysis of URLs, files, IPs, and domains using the VirusTotal API, with automatic fetching of relationship data to provide comprehensive reports.71,562 npmMIT
- AlicenseAqualityAmaintenanceEnables AI agents to access VirusTotal intelligence through MCP, supporting file, URL, domain, and IP lookups, plus analysis, via remote HTTP or local stdio.8MIT
- FlicenseNot gradedqualityAmaintenanceGives AI agents VirusTotal v3 threat intelligence for hashes, URLs, IPs and domains, returning detection reports plus pivot relationships like contacted hosts, dropped files, resolutions and threat actors. Supports full relationship paging, corpus search with modifiers, sandbox behaviour summaries, and stdio or HTTP streaming transports.-