本项目 mcp-virustotal
集成了 VirusTotal API,支持对文件、URL 和 IP 地址进行威胁情报查询,还具备自动化的关系分析功能,能实现多源威胁检测,同时支持结果导出和日志记录。
要安装并运行 mcp-virustotal
,请执行以下命令:
npm install mcp-virustotal
~/.config/mcp-virustotal/config.json
config.json
mcp-virustotal config --key VT_PUBLIC_KEY=your_api_key_here
npm install -g mcp-virustotal
mcp-virustotal config init
mcp-virustotal config --key VT_PUBLIC_KEY=your_api_key_here
mcp-virustotal start
本项目提供了多种功能模块,以下是一些基础的使用示例:
mcp-virustotal report file --hash 0a1b2c3d4e5f6a7b8c9d
mcp-virustotal report url --url http://example.com
mcp-virustotal report ip --ip 192.168.1.1
mcp-virustotal relationship url --url http://example.com --type communicating_files
mcp-virustotal relationship file --hash 0a1b2c3d4e5f6a7b8c9d --type dropped_files
{
"key": "your_api_key_here",
"proxy": {
"enabled": false,
"url": "http://proxy.example.com:1080"
},
"logging": {
"level": "info",
"file": "/var/log/mcp-virustotal.log"
}
}
mcp-virustotal report file --hash
mcp-virustotal report url --url
mcp-virustotal report ip --ip
mcp-virustotal relationship file --hash --type
mcp-virustotal relationship url --url --type
API 请求失败
配置文件错误
src/
:核心业务逻辑代码config/
:配置管理模块logger/
:日志记录组件api/
:API 请求处理函数git clone https://github.com/virus-total/mcp-virustotal.git
npm install
npm test
本项目遵循 MIT 协议。详情请访问: MIT License