The VirusTotal MCP server provides a powerful interface for interacting with the VirusTotal API, allowing you to analyze URLs, files, IPs, and domains for security threats. It integrates with MCP-compatible applications like Claude Desktop to provide comprehensive security analysis capabilities.
The easiest way to install the VirusTotal Server for Claude Desktop:
npx -y @smithery/cli install @burtthecoder/mcp-virustotal --client claude
npm install -g @burtthecoder/mcp-virustotal
{
"mcpServers": {
"virustotal": {
"command": "mcp-virustotal",
"env": {
"VIRUSTOTAL_API_KEY": "your-virustotal-api-key"
}
}
}
}
Configuration file locations:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
If you need to modify the code or prefer running from source:
git clone <repository_url>
cd mcp-virustotal
npm install
npm run build
{
"mcpServers": {
"virustotal": {
"command": "node",
"args": ["--experimental-modules", "/absolute/path/to/mcp-virustotal/build/index.js"],
"env": {
"VIRUSTOTAL_API_KEY": "your-virustotal-api-key"
}
}
}
}
These tools provide comprehensive analysis with automatic relationship data fetching:
get_url_report
url
(required): The URL to analyzeget_file_report
hash
(required): MD5, SHA-1 or SHA-256 hash of the fileget_ip_report
ip
(required): IP address to analyzeget_domain_report
domain
(required): Domain name to analyzerelationships
(optional): Array of specific relationships to includeThese tools allow detailed querying of specific relationship types with pagination:
get_url_relationship
url
(required): URL to analyzerelationship
(required): Relationship type to query (e.g., contacted_domains, downloaded_files)limit
(optional, default: 10): Maximum results (1-40)cursor
(optional): Continuation cursor for paginationget_file_relationship
hash
(required): MD5, SHA-1 or SHA-256 hashrelationship
(required): Relationship type to query (e.g., behaviors, dropped_files)limit
(optional, default: 10): Maximum results (1-40)cursor
(optional): Continuation cursor for paginationget_ip_relationship
ip
(required): IP address to analyzerelationship
(required): Relationship type to query (e.g., communicating_files, resolutions)limit
(optional, default: 10): Maximum results (1-40)cursor
(optional): Continuation cursor for paginationget_domain_relationship
domain
(required): Domain name to analyzerelationship
(required): Relationship type to query (e.g., ssl_certificates, subdomains)limit
(optional, default: 10): Maximum results (1-40)cursor
(optional): Continuation cursor for paginationIf you encounter "Wrong API key" errors:
/tmp/mcp-virustotal-server.log
(on macOS)If you see ES module loading warnings:
--experimental-modules
in the argsThere are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.