{"slug": "virustotal-in-claude-check-a-file-hash-by-asking-google-s-official-mcp-server", "title": "VirusTotal in Claude: Check a File Hash by Asking (Google's Official MCP Server)", "summary": "A security analyst demonstrated wiring Google's official VirusTotal MCP server, gti-mcp, into Claude Desktop so the assistant can look up file hashes, URLs, IPs and domains in plain English via tools like get_file_report. The setup uses uv to install the PyPI package and a local config block holding the VT_APIKEY, and a test lookup of the EICAR hash returned 64 of 66 engines flagging it. The writeup warns that the free public API is capped at 4 lookups a minute and 500 a day and barred from commercial use, and that the optional analyse_file upload tool is off by default because uploaded files are shared with the VirusTotal community.", "body_md": "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.\n\nThe 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.\n\nMCP (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](https://github.com/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](https://pypi.org/project/gti-mcp/) (version 0.1.4 on November 20, 2026).\n\nThe 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.\n\nTreat the key like a password. Never paste it into a chat window, a screenshot, or a Git repo.\n\n`uv` is a small tool that runs Python apps. On Windows:\n\n```\nwinget install --id=astral-sh.uv -e\nuv tool install gti-mcp\n```\n\nThe first line installs uv. The second installs the VirusTotal server itself.\n\nIn Claude Desktop, open **Settings → Developer → Edit Config**. Add this block (Google's README shows the same shape):\n\n```\n{\"mcpServers\": {\"gti\": {\"command\": \"uvx\", \"args\": [\"gti_mcp\"], \"env\": {\"VT_APIKEY\": \"YOUR_VIRUSTOTAL_API_KEY\"}}}}\n```\n\n`gti` is just the name Claude shows for the server.`uvx` runs the server.`VT_APIKEY` holds your key. Put the real key only in this local file.\nSave and restart Claude Desktop. The VirusTotal tools now show up in Claude's tool list.\n\nDo 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.\n\nIts SHA-256:\n\n```\n275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f\n```\n\nFor a real file on your own machine, PowerShell gives you the hash:\n\n```\nGet-FileHash .\\suspicious.exe -Algorithm SHA256\n```\n\nNow ask Claude: *\"Check this SHA-256 on VirusTotal. Is it malicious? Which engines flag it?\"*\n\nClaude asks before it runs a tool. Allow **get_file_report**. In seconds you get the verdict:\n\n```\nget_file_report(275a021b...fd0f)\nlast_analysis_stats: malicious 64 / 66 engines\npopular_threat_label: virus.eicar/test\nsize: 68 bytes   names: EICAR test file (68-byte string)\n```\n\n(Real result from my own lookup on November 24, 2026. The count moves a little as engines update.)\n\nThen 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.\n\nThe 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*.\n\nSo 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.\n\nVirusTotal 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:\n\n```\nDeviceFileEvents\n| where Timestamp between (ago(30d) .. now())\n| where SHA256 == \"275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f\"\n| summarize FirstSeen = min(Timestamp), LastSeen = max(Timestamp) by DeviceName, FileName, FolderPath\n```\n\nYou get every machine that had the file, the path, and when it first showed up. Swap in the hash from your own ticket.\n\nAI 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.\n\nOfficial Microsoft source:\n\nOther sources:\n\n*Facts checked: November 22, 2026. Lab run on my own test machine with the EICAR hash only.*\n\n**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:\n\nGot a question about your own tenant? Drop it in the comments.", "url": "https://wpnews.pro/news/virustotal-in-claude-check-a-file-hash-by-asking-google-s-official-mcp-server", "canonical_source": "https://dev.to/cdsecuritylab/virustotal-in-claude-check-a-file-hash-by-asking-googles-official-mcp-server-4n4a", "published_at": "2026-12-02 01:10:08+00:00", "updated_at": "2026-12-02 01:14:19.654570+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "ai-safety"], "entities": ["VirusTotal", "Google", "Claude", "Claude Desktop", "gti-mcp", "Model Context Protocol", "Microsoft Defender", "PyPI"], "also_reported_by": [], "takeaway": "Google's gti-mcp server lets Claude call VirusTotal's get_file_report and related tools from a local uvx config, but the free key allows only 4 lookups a minute and 500 a day and the analyse_file upload tool stays off unless GTI_ALLOWED_UPLOAD_DIR is set because uploads are shared with the community", "recommendation": {"advice": "Wire VirusTotal into Claude via gti-mcp with the key in a local config file, and look up hashes rather than enabling analyse_file uploads, since uploaded files are shared with the VirusTotal community.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/virustotal-in-claude-check-a-file-hash-by-asking-google-s-official-mcp-server", "markdown": "https://wpnews.pro/news/virustotal-in-claude-check-a-file-hash-by-asking-google-s-official-mcp-server.md", "text": "https://wpnews.pro/news/virustotal-in-claude-check-a-file-hash-by-asking-google-s-official-mcp-server.txt", "jsonld": "https://wpnews.pro/news/virustotal-in-claude-check-a-file-hash-by-asking-google-s-official-mcp-server.jsonld"}}