VirusTotal MCP Server
VirusTotal MCP 服务器
用于查询VirusTotal API 的模型上下文协议 (MCP) 服务器。该服务器提供全面的安全分析工具,并可自动获取关系数据。它与Claude Desktop等兼容 MCP 的应用程序无缝集成。
快速启动(推荐)
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 VirusTotal Server:
npx -y @smithery/cli install @burtthecoder/mcp-virustotal --client claude手动安装
通过 npm 全局安装服务器:
npm install -g @burtthecoder/mcp-virustotal添加到您的 Claude Desktop 配置文件:
{
"mcpServers": {
"virustotal": {
"command": "mcp-virustotal",
"env": {
"VIRUSTOTAL_API_KEY": "your-virustotal-api-key"
}
}
}
}配置文件位置:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
重启Claude桌面
Related MCP server: OSINT MCP Server
替代设置(来自源)
如果您希望从源代码运行或需要修改代码:
克隆并构建:
git clone <repository_url>
cd mcp-virustotal
npm install
npm run build添加到您的 Claude Desktop 配置:
{
"mcpServers": {
"virustotal": {
"command": "node",
"args": ["--experimental-modules", "/absolute/path/to/mcp-virustotal/build/index.js"],
"env": {
"VIRUSTOTAL_API_KEY": "your-virustotal-api-key"
}
}
}
}特征
综合分析报告:每个分析工具都会自动获取相关关系数据以及基本报告,在单个请求中提供完整的安全概述
URL 分析:自动获取联系域、下载文件和威胁行为者的安全报告
文件分析:详细分析文件哈希,包括行为、丢失的文件和网络连接
IP 分析:包含历史数据、解决方案和相关威胁的安全报告
域名分析:DNS 信息、WHOIS 数据、SSL 证书和子域名
详细关系分析:用于查询特定类型关系的专用工具,并支持分页
丰富的格式:分析结果和关系数据的清晰分类和呈现
工具
报告工具(具有自动关系获取功能)
1. URL 报告工具
名称:
get_url_report描述:获取全面的 URL 分析报告,包括安全扫描结果和关键关系(通信文件、联系的域/IP、下载的文件、重定向、威胁行为者)
参数:
url(必填):需要分析的 URL
2. 文件报告工具
名称:
get_file_report描述:使用哈希值 (MD5/SHA-1/SHA-256) 获取全面的文件分析报告。包含检测结果、文件属性和关键关系(行为、丢失的文件、网络连接、嵌入内容、威胁行为者)。
参数:
hash(必需):文件的 MD5、SHA-1 或 SHA-256 哈希值
3. IP报告工具
名称:
get_ip_report描述:获取全面的 IP 地址分析报告,包括地理位置、信誉数据和关键关系(通信文件、历史证书/WHOIS、解析)
参数:
ip(必填):需要分析的IP地址
4. 域名报告工具
名称:
get_domain_report描述:获取全面的域名分析报告,包括 DNS 记录、WHOIS 数据和关键关系(SSL 证书、子域名、历史数据)
参数:
domain(必需):要分析的域名relationships(可选):要包含在报告中的特定关系数组
关系工具(用于详细分析)
1. URL关系工具
名称:
get_url_relationship描述:查询 URL 的特定关系类型,并支持分页。共有 17 种关系类型可供选择,包括分析、文件通信、联系的域/IP、下载的文件、图表、引荐来源、重定向和威胁行为者
参数:
url(必填):获取关系的 URLrelationship(必需):要查询的关系类型可用关系:分析、评论、communicating_files、contacted_domains、contacted_ips、downloaded_files、图表、last_serving_ip_address、network_location、referrer_files、referrer_urls、redirecting_urls、redirects_to、related_comments、related_references、related_threat_actors、提交
limit(可选,默认值:10):要检索的最大相关对象数(1-40)cursor(可选):用于分页的连续光标
2. 文件关系工具
名称:
get_file_relationship描述:查询文件的特定关系类型,并支持分页。有 41 种关系类型可供选择,包括行为、网络连接、丢弃文件、嵌入内容、执行链和威胁行为者
参数:
hash(必需):文件的 MD5、SHA-1 或 SHA-256 哈希值relationship(必需):要查询的关系类型可用的关系:分析、行为、bundled_files、carbonblack_children、carbonblack_parents、ciphered_bundled_files、ciphered_parents、线索、集合、评论、compressed_parents、contacted_domains、contacted_ips、contacted_urls、dropped_files、email_attachments、email_parents、embedded_domains、embedded_ips、embedded_urls、execution_parents、图表、itw_domains、itw_ips、itw_urls、memory_pattern_domains、memory_pattern_ips、memory_pattern_urls、overlay_children、overlay_parents、pcap_children、pcap_parents、pe_resource_children、pe_resource_parents、related_references、related_threat_actors、similar_files、提交、屏幕截图、urls_for_embedded_js、投票
limit(可选,默认值:10):要检索的最大相关对象数(1-40)cursor(可选):用于分页的连续光标
3. IP关系工具
名称:
get_ip_relationship描述:查询 IP 地址的特定关系类型,并支持分页。共有 12 种关系类型可供选择,包括通信文件、历史 SSL 证书、WHOIS 记录、解析和威胁行为者。
参数:
ip(必填):需要分析的IP地址relationship(必需):要查询的关系类型可用关系:comments、communicating_files、downloaded_files、graphs、historical_ssl_certificates、historical_whois、related_comments、related_references、related_threat_actors、referrer_files、resolutions、urls
limit(可选,默认值:10):要检索的最大相关对象数(1-40)cursor(可选):用于分页的连续光标
4. 域名关系工具
名称:
get_domain_relationship描述:查询域名的特定关系类型,并支持分页。共有 21 种关系类型可供选择,包括 SSL 证书、子域名、历史数据和 DNS 记录
参数:
domain(必需):要分析的域名relationship(必需):要查询的关系类型可用关系:caa_records、cname_records、comments、communicating_files、downloaded_files、historical_ssl_certificates、historical_whois、immediate_parent、mx_records、ns_records、parent、referrer_files、related_comments、related_references、related_threat_actors、resolutions、soa_records、siblings、subdomains、urls、user_votes
limit(可选,默认值:10):要检索的最大相关对象数(1-40)cursor(可选):用于分页的连续光标
要求
Node.js(v18 或更高版本)
故障排除
API 密钥问题
如果您看到“错误的 API 密钥”错误:
检查日志文件
/tmp/mcp-virustotal-server.log(在 macOS 上)以获取 API 密钥状态验证您的 API 密钥:
应该是有效的 VirusTotal API 密钥(通常为 64 个字符)
键周围没有多余的空格或引号
必须来自 VirusTotal 帐户中的 API 密钥部分
任何配置更改后:
保存配置文件
重启Claude桌面
检查日志以了解新的 API 密钥状态
模块加载问题
如果您看到 ES 模块加载警告:
对于全局安装:使用快速入门中显示的简单配置
对于源安装:确保在参数中包含
--experimental-modules
发展
要在开发模式下使用热重载运行:
npm run dev错误处理
该服务器包括针对以下方面的全面错误处理:
无效的 API 密钥
速率限制
网络错误
输入参数无效
无效的哈希格式
无效的 IP 格式
无效的 URL 格式
无效的关系类型
分页错误
版本历史记录
v1.0.0:具有核心功能的初始版本
v1.1.0:增加了URL、文件和IP地址关系分析工具
v1.2.0:添加了改进的错误处理和日志记录
v1.3.0:增加了对关系查询的分页支持
v1.4.0:在报告工具中添加了自动关系提取和域分析支持
贡献
分叉存储库
创建功能分支(
git checkout -b feature/amazing-feature)提交您的更改(
git commit -m 'Add amazing feature')推送到分支(
git push origin feature/amazing-feature)打开拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
Available Tools
11 toolsget_collectionA
Retrieve a VirusTotal collection by ID. Collections represent threat actors, malware families, campaigns, intel reports, and curated IOC sets — often referenced from the related_threat_actors and collections relationships on other tools. Optionally include relationships (files, urls, domains, ip_addresses, references, threat_actors, related_collections, related_references, comments, owner, autogenerated_graphs) to fetch member IOCs in the same call.
Inputs: id (required), relationships.
get_domain_relationshipA
Query a specific relationship type for a domain with pagination support. Choose from 24 relationship types including subdomains, resolutions, SSL certificates, WHOIS history, and threat actors. Useful for detailed investigation of specific relationship types.
Inputs: domain (required), relationship (required), limit, cursor.
get_domain_reportA
Get a comprehensive domain analysis report including DNS records, WHOIS data, and key relationships (SSL certificates, subdomains, historical data). Optionally specify which relationships to include in the report. Returns both the basic analysis and relationship data.
Inputs: domain (required), relationships.
get_file_behaviour_summaryA
Get a consolidated sandbox behaviour summary for a file (MD5/SHA-1/SHA-256), merged across every sandbox that analyzed it. Returns processes, files, registry, network activity, MITRE ATT&CK techniques, IDS alerts, and signature matches in a single view — far more useful than iterating individual behaviour reports.
Inputs: hash (required).
get_file_relationshipA
Query a specific relationship type for a file with pagination support. Choose from 40 relationship types including behaviors, network connections, dropped files, embedded content, execution chains, and threat actors. Useful for detailed investigation of specific relationship types.
Inputs: hash (required), relationship (required), limit, cursor.
get_file_reportA
Get a comprehensive file analysis report using its hash (MD5/SHA-1/SHA-256). Includes detection results, file properties, and key relationships (behaviors, dropped files, network connections, embedded content, threat actors). Returns both the basic analysis and automatically fetched relationship data.
Inputs: hash (required).
get_ip_relationshipB
Query a specific relationship type for an IP address with pagination support. Choose from 15 relationship types including communicating files, historical SSL certificates, WHOIS records, resolutions, and threat actors. Useful for detailed investigation of specific relationship types.
Inputs: ip (required), relationship (required), limit, cursor.
get_ip_reportA
Get a comprehensive IP address analysis report including geolocation, reputation data, and key relationships (communicating files, historical certificates/WHOIS, resolutions). Returns both the basic analysis and automatically fetched relationship data.
Inputs: ip (required).
get_url_relationshipA
Query a specific relationship type for a URL with pagination support. Choose from 22 relationship types including communicating files, contacted domains/IPs, downloaded files, redirects, referrers, threat actors, and collections. Useful for paging through the full list when the summary in get_url_report is truncated.
Inputs: url (required), relationship (required), limit, cursor.
get_url_reportA
Get a comprehensive URL analysis report including security scan results and key relationships (communicating files, contacted domains/IPs, downloaded files, redirects, threat actors). Returns the cached VirusTotal report when available, or submits the URL for scanning and waits for results.
Inputs: url (required).
search_vtA
Search the VirusTotal corpus for files, URLs, domains, IPs, or comments matching a query. Accepts plain IOCs (hash, URL, domain, IP), free text against comments, or VTI-style search modifiers like "type:peexe size:90kb+ tag:signed positives:5+". Paginated via cursor.
Inputs: query (required), limit, cursor.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct resource and action: reports for comprehensive data, relationships for specific paginated queries, collection retrieval, and search. No two tools have overlapping purposes.
All tools follow a consistent verb_noun pattern in snake_case (e.g., get_domain_report, get_file_relationship, search_vt). The slight deviation for get_file_behaviour_summary is still clear and does not break consistency.
With 11 tools covering four entity types (domain, file, IP, URL) plus collection and search, the count is well-scoped for a read-oriented threat intelligence API—not too few, not excessive.
The set provides comprehensive coverage: for each entity there is a report and a relationship query, plus search and collection retrieval. Missing create/update/delete are expected for a read-only API; optional submission for URLs is handled.
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)
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceMCP server that provides tools for interacting with the Fluidattacks API-- AlicenseDqualityDmaintenanceA comprehensive MCP server providing tools for IP, domain, email, and image-based open-source intelligence. It integrates services like Shodan, VirusTotal, and HaveIBeenPwned to facilitate advanced security research and data gathering.56MIT
- FlicenseAqualityDmaintenanceMCP server for security analysis using VirusTotal API, enabling AI assistants to analyze URLs, files, IP addresses, and domains with automatic relationship fetching.81-
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server that enables LLMs to interact with the VirusTotal API for malware analysis, URL scanning, and threat intelligence.81MIT