Virustotal

Security

MCP server for querying VirusTotal API with comprehensive security analysis tools.

Your AI app calls the Virustotal MCP server, which does the security work and sends the result back to the chat.

About Virustotal

Virustotal is a community MCP server from w0h1v, filed in our directory under security. MCP server for querying VirusTotal API with comprehensive security analysis tools.

Virustotal runs on your own machine: your AI app starts it with the command npx -y @burtthecoder/mcp-virustotal@1.0.40 and talks to it over standard input and output. It needs VIRUSTOTAL_API_KEY set before Virustotal starts.

Virustotal is listed in the official MCP registry as io.github.w0h1v/virustotal, version 1.0.40.

At a glance

Publisher
w0h1v (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @burtthecoder/mcp-virustotal
Written in
TypeScript
License
MIT
GitHub stars
157
Official MCP registry
io.github.w0h1v/virustotal

How to set up Virustotal

  1. Install Node.js on the machine that runs your AI app, because Virustotal starts with npx and downloads its package on first run.
  2. Create VIRUSTOTAL_API_KEY for Virustotal in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Virustotal to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Virustotal tools to confirm the connection.
  5. Run one read-only task with Virustotal first, and keep your app asking before each tool call until the results look right.

Virustotal compared with similar servers

  • GhidraMCP (13bm) by 13bm has fewer GitHub stars than Virustotal (151 against 157); both are community servers, and both run locally.
  • Claudit by marchev has fewer GitHub stars than Virustotal (157 against 157); both are community servers, and both run locally.
  • Gori by hahwul has fewer GitHub stars than Virustotal (151 against 157); both are community servers, and both run locally.

Before you connect Virustotal

  • Give Virustotal its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Virustotal tool call until you trust what it does with them.
  • Treat text that Virustotal fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Virustotal on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Virustotal

How marketing and sales teams put Virustotal to work, by company size. Pick the size closest to yours and start Virustotal on one use case.

Small business

  • A small business can use Virustotal to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask Virustotal whether a tool or vendor has known issues before connecting it to customer data.
  • Virustotal runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use Virustotal to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect Virustotal to scan campaign sites and forms before launch, not after an incident.
  • Start Virustotal on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Virustotal in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use Virustotal to keep evidence for audits, showing which agents reached which data and when.
  • Virustotal is a community server, so have security review the code and pin a version before Virustotal touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Virustotal README

From w0h1v/mcp-virustotal on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Quickstart · Tools · HTTP · Security · Troubleshooting · Docs (w0h1v.github.io/mcp-virustotal)

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.

[!NOTE] Independent project, not affiliated with VirusTotal or Google. You need your own VirusTotal 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_report returns 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.

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"| A

Quickstart

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-virustotal

For Claude Desktop, VS Code 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) get_file_report, get_url_report, get_ip_report, get_domain_report
Relationship paging get_file_relationship, get_url_relationship, get_ip_relationship, get_domain_relationship
Search and pivot search_vt, get_file_behaviour_summary, get_collection

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.js
docker build -t mcp-virustotal .
docker run -p 127.0.0.1:3000:3000 -e VIRUSTOTAL_API_KEY=your-key -e MCP_TRANSPORT=httpStream mcp-virustotal

A health check is served at /health.

Environment variables

Variable Default Description
VIRUSTOTAL_API_KEY (required) Your VirusTotal API key
MCP_TRANSPORT stdio stdio or httpStream
MCP_HOST localhost Bind address (httpStream only). The Docker image sets 0.0.0.0
MCP_PORT 3000 HTTP port (httpStream only)
MCP_ENDPOINT /mcp HTTP endpoint path (httpStream only)

Security

[!WARNING] The HTTP transport has no 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.log in 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 API

The 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.

Questions about Virustotal

What is the Virustotal MCP server?

MCP server for querying VirusTotal API with comprehensive security analysis tools. Virustotal is maintained by w0h1v on GitHub at w0h1v/mcp-virustotal, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Virustotal MCP server?

Add Virustotal to your AI app's MCP config with the command npx -y @burtthecoder/mcp-virustotal@1.0.40. In Claude Code, run claude mcp add --transport stdio virustotal -- npx -y @burtthecoder/mcp-virustotal@1.0.40. To run Virustotal this way you need Node.js installed.

Does Virustotal need an API key?

Yes. Virustotal expects VIRUSTOTAL_API_KEY to be set. Create the key for Virustotal in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Virustotal an official MCP server?

No. Virustotal is a community server maintained by w0h1v. Community servers can be excellent; read the code and the open issues before you give Virustotal access to company data.

What license is Virustotal under?

Virustotal is released under the MIT license, according to its GitHub repository. The license covers the code of Virustotal; the service it connects to has its own terms.