A SOC analyst gets a strange file hash in a ticket. The old way: open VirusTotal, paste the hash, scroll through about seventy engine rows, and write a summary. The new way: ask Claude. With Google's official VirusTotal MCP server, Claude calls VirusTotal for you and explains the answer in plain words.
The video is a 90-second intro. This post has every command, the config block, a safe test, one warning, and a KQL query to find the same file in your own fleet.
What MCP means, in one line
MCP (Model Context Protocol) is a plug. It lets Claude call a tool that lives outside the chat. Google publishes an official one for VirusTotal: gti-mcp, in the google/mcp-security project on GitHub (GTI = Google Threat Intelligence, the platform VirusTotal is part of). Once it is plugged in, you ask about files, URLs, IPs and domains in plain English, and Claude picks the right tool (get_file_report, get_url_report, get_ip_address_report, get_domain_report). No API calls to remember. The package is on PyPI (version 0.1.4 on November 20, 2026).
Step 1: Get your VirusTotal API key
- Sign in to virustotal.com.
- Open your profile menu (top right).
- Click API key.
The free public key has hard limits. VirusTotal's own docs say: 4 lookups a minute, 500 a day, and the public API must not be used in commercial products or services. For company work at scale you need the premium API.
Treat the key like a password. Never paste it into a chat window, a screenshot, or a Git repo.
Step 2: Install uv and the server
uv is a small tool that runs Python apps. On Windows:
winget install --id=astral-sh.uv -e uv tool install gti-mcp The first line installs uv. The second installs the VirusTotal server itself.
Step 3: Add one block to Claude Desktop
In Claude Desktop, open Settings → Developer → Edit Config. Add this block (Google's README shows the same shape):
{"mcpServers": {"gti": {"command": "uvx", "args": ["gti_mcp"], "env": {"VT_APIKEY": "YOUR_VIRUSTOTAL_API_KEY"}}}} -
gtiis just the name Claude shows for the server. -
uvxruns the server. -
VT_APIKEYholds your key. Put the real key only in this local file.
Save and restart Claude Desktop. The VirusTotal tools now show up in Claude's tool list.
Step 4: Test with something safe
Do not test with real malware. Use the EICAR test file. It is not malware. It is a harmless 68-character string that every antivirus is built to flag, so it is the standard safe test.
Its SHA-256:
275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f For a real file on your own machine, PowerShell gives you the hash:
Get-FileHash .\suspicious.exe -Algorithm SHA256 Now ask Claude: "Check this SHA-256 on VirusTotal. Is it malicious? Which engines flag it?"
Claude asks before it runs a tool. Allow get_file_report. In seconds you get the verdict:
get_file_report(275a021b...fd0f) last_analysis_stats: malicious 64 / 66 engines popular_threat_label: virus.eicar/test size: 68 bytes names: EICAR test file (68-byte string) (Real result from my own lookup on November 24, 2026. The count moves a little as engines update.)
Then Claude does the boring part: it names the file as the EICAR test file, says it is harmless, and suggests the next step. No seventy rows to read.
One warning: check the hash, not the file
The server also has an upload tool, analyse_file. It is off by default, and it only turns on if you set GTI_ALLOWED_UPLOAD_DIR. Google's own notes say: uploaded files are shared with the VirusTotal community.
So never upload a customer file, a contract, or anything internal. Look up the hash. If the hash is unknown, that is an answer too: send the file to your own sandbox, not to a public service.
Next: find the same file in your fleet
VirusTotal tells you what the file is. Microsoft Defender tells you where it is. In Defender Advanced hunting, run this on the DeviceFileEvents table with the same hash:
DeviceFileEvents | where Timestamp between (ago(30d) .. now()) | where SHA256 == "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f" | summarize FirstSeen = min(Timestamp), LastSeen = max(Timestamp) by DeviceName, FileName, FolderPath You get every machine that had the file, the path, and when it first showed up. Swap in the hash from your own ticket.
The lesson
AI reads the report for you. You still make the call. Keep the key private, look up hashes instead of uploading files, and confirm in your own logs.
Sources
Official Microsoft source:
- DeviceFileEvents table in advanced hunting (Microsoft Learn): https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-devicefileevents-table
Other sources:
- Google, mcp-security (GTI MCP server README, config and tool list): https://github.com/google/mcp-security
- gti-mcp on PyPI: https://pypi.org/project/gti-mcp/
- VirusTotal, Public vs Premium API: https://docs.virustotal.com/reference/public-vs-premium-api
- uv installation (Astral): https://docs.astral.sh/uv/getting-started/installation/
- EICAR anti-malware test file: https://www.eicar.org/download-anti-malware-testfile/
Facts checked: November 22, 2026. Lab run on my own test machine with the EICAR hash only.
Thanks for reading! I'm Cuong, and on CD Security Lab I rebuild real Microsoft security cases in a safe lab and explain them simply. Follow along:
- ▶️ YouTube (daily Shorts + explainers): CD Security Lab
- 💼 LinkedIn: Cuong Do
- 📘 Facebook: CD Security Lab
- 📸 Instagram: @cdsecuritylab
- 📝 More posts like this: Dev.to
Got a question about your own tenant? Drop it in the comments.





