Malware Analysis MCP Server
Enables AI assistants to access real-time threat intelligence, malware sample metadata, and security analysis tools via integration with MalwareBazaar, VirusTotal, and Telegram.
README
Advanced Malware Analysis MCP Server

A professional, modular, and secure Model Context Protocol (MCP) server providing real-time threat intelligence and malware sample metadata for AI assistants (like Claude, Cursor, and Windsurf).
It integrates MalwareBazaar, VirusTotal, and Telegram, along with 10+ offline analysis and crypto utilities, enabling AI models to autonomously aid in defensive malware research.
🔒 Security First: This server provides metadata and IOCs only. The downloading of live malware binaries is permanently disabled by design. Path traversal protections ensure safe local file hashing.
🌟 Capabilities
- Real-Time Threat Intel: Query MalwareBazaar for recent samples, info by hash, or tags.
- VirusTotal Integration: Pull analysis stats, reputation, and file types with built-in API rate limiting.
- Advanced IOC Extraction: Extract and defang/refang IPs, Domains, URLs, Hashes, and Emails from unstructured text.
- YARA generation: Ask the AI to generate a template YARA rule based on a sample's exact signatures.
- Offline Crypto Lab: AES-GCM encryption (PBKDF2 600k iterations), SHA256/MD5 hashing, Shannon entropy analysis, and Hexdumps.
- Alerting: Dispatch findings directly to a Telegram channel.
- Secure Local Hashing: safely compute the SHA256 of local files to check against threat databases, strictly chrooted to allowed directories.
🚀 A-to-Z Installation & Deployment Guide
This server works with any standard MCP client. Below are instructions for building the project and deploying it either to Claude Desktop (Mac/Windows) or testing it visually on Linux/Ubuntu using the MCP Inspector.
Step 1: Prerequisites & Build
Ensure you have Node.js (v18 or newer) installed on your machine.
# 1. Clone the repository
git clone https://github.com/SaeidSec/Malware-Analysis-MCP-server.git
cd Malware-Analysis-MCP-server
# 2. Install dependencies
npm install
# 3. Build the TypeScript files
npm run build
Step 2: Obtain API Keys
MB_AUTH_KEY(Required): Get your free Auth-Key at auth.abuse.ch.VT_API_KEY(Optional): VirusTotal API forvt_lookup. The free tier works perfectly (the server handles the 4 requests/minute limit).TG_BOT_TOKEN&TG_CHAT_ID(Optional): Telegram bot token and chat ID for thesend_alerttool.ALLOWED_SCAN_DIRS(Highly Recommended): A comma-separated list of absolute paths (e.g.,/home/user/Downloads,/tmp/malware). This strictly limits thecheck_local_filetool to prevent the AI from arbitrarily hashing personal files.
Deployment Option A: Claude Desktop (Mac / Windows)
Claude Desktop is currently the most popular way to use MCP servers.
-
Open your Claude Desktop config file:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac:
-
Add the server configuration, pointing to your local built
dist/index.js:
{
"mcpServers": {
"malware-analysis-mcp": {
"command": "node",
"args": [
"/absolute/path/to/Malware-Analysis-MCP-server/dist/index.js"
],
"env": {
"MB_AUTH_KEY": "YOUR_ABUSECH_AUTH_KEY",
"VT_API_KEY": "YOUR_VT_API_KEY",
"ALLOWED_SCAN_DIRS": "/Users/name/Downloads,/tmp/malware"
}
}
}
}
- Restart Claude Desktop completely. You can now prompt Claude to use your new threat intelligence tools!
Deployment Option B: Linux / Ubuntu (Web GUI via MCP Inspector)
Since Claude Desktop does not have an official Linux client yet, the best way to deploy and test the server on Ubuntu is using Anthropic's official MCP Inspector.
- Create your environment variable file from the example:
cp example.env .env
nano .env # Add your API keys here
- Run the MCP server directly into the Inspector:
npx -y @modelcontextprotocol/inspector node dist/index.js
- Open the provided
http://localhost:5173link in your web browser and click Connect. You will be presented with a beautiful UI where you can visually test tools likeget_recentorextract_iocsmanually.
🛠️ Available MCP Tools
Threat Intelligence
get_recent- Fetch latest MalwareBazaar entriesget_info- Fetch precise sample metadata by SHA256get_taginfo- Fetch samples by tag (e.g., "TrickBot")virustotal_lookup- VT V3 detection stats and reputationsuggest_analysis_blogs- Links to Malpedia, MITRE, and writeups
Advanced Analysis
extract_iocs- Pulls domains, IPs, MS5/SHA256, Emails from textbulk_hash_check- Check multiple hashes against MalwareBazaar at oncethreat_summary- Generates a curated Markdown report for a specific samplegenerate_yara_template- Creates a starting point for YARA rules based on metadatadefang_iocs/refang_iocs- Safe IOC sharing (e.g.,1[.]1[.]1[.]1)check_local_file- Securely hash a local file and query VT/MB
Offline Lab Utilities
- Encoding:
base64_encode,base64_decode,url_encode,url_decode,hex_encode,hex_decode - Compression:
gzip_compress,gzip_decompress - Crypto:
aes_gcm_encrypt,aes_gcm_decrypt,hash_text - Analysis:
entropy(Shannon),hexdump_text
Alerting
send_alert- Push message to Telegram (TG_BOT_TOKENandTG_CHAT_IDenv vars required)
🔒 Security Architecture
- No Live Binaries: The
get_filetool is disabled. The server cannot be tricked into executing or saving payload binaries. - Path Traversal Protection: Requests to
check_local_fileare resolved, normalized, and strictly checked againstALLOWED_SCAN_DIRS. - Hardened Crypto: The AES implementation uses PBKDF2 with 600,000 iterations (OWASP 2023 standard) and 16-byte random salts.
- Rate Limiting: Protects your free-tier VirusTotal API key from accidental exhaustion by looping LLMs.
- Streaming Hashing: Memory-safe streaming is used for hashing local files, preventing gigabyte-scale OOM crashes.
🧑💻 Development
# Install dependencies
npm install
# Run typechecker
npm run typecheck
# Build the project
npm run build
# Run in dev mode
npm run dev
See CONTRIBUTING.md for full guidelines.
License
MIT License. See LICENSE for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。