re-yara
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@re-yarascan /tmp/suspicious.bin using compiled rules from /etc/yara/rules"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
re-yara
MCP server wrapping the YARA pattern-matching engine for binary triage.
re-yara is intentionally rule-agnostic: the server compiles
whatever rule directory the analyst points it at, then scans files
or directories against the compiled rules. No rules are bundled
with the plugin — YARA rules describe categories of binary
behaviour (e.g. encrypted-VM bytecode interpreter dispatcher,
MBA-obfuscated arithmetic routine, legacy disc-based protection
handshake) and writing them is an analyst decision, not a plugin
one.
Tools
Tool | What it does |
| Health check — return YARA version + whether |
| Compile all |
| Run a compiled ruleset against a single file |
| Walk a directory and run the compiled ruleset against every file |
Related MCP server: secureaudit-mcp
Install
Part of the RE-AI plugin; ./install.sh installs the package. To
install standalone:
pip install -e ./servers/re-yaraRequires the yara C library (libyara) at runtime — yara-python
links against it. Most package managers ship yara as a system
package; on Debian/Ubuntu:
sudo apt-get install yara libyara-devRun
re-yara # stdio transport (default for MCP)
python -m re_yara # equivalentWorkflow
Author or download a directory of
*.yarfiles. Each rule describes a category of behaviour the analyst wants to find.Call
compile_rules(rules_dir=<path>)to validate + compile.Call
scan_binary(path=<file>, rules_dir=<path>)for a single file, orscan_directory(path=<dir>, rules_dir=<path>)for a whole tree.
compile_rules is the heavy step (parses every rule file). The
scan tools re-compile as needed — they're cheap if the rules
haven't changed.
Why no bundled rules
YARA rules are an analyst artefact: they describe what you are
looking for, which is a question only the user can answer. The
plugin gives the engine; the user brings the policies. The
server is also compatible with the signature-base and
[MalwareBazaar] rule collections — point rules_dir at any of
them.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Official VirusTotal MCP server: threat reports, file and URL submissions, and analysis recovery.
MCP server for static security analysis of Android source code
MCP server for the Vulners.com API
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables AI assistants to perform YARA rule-based threat analysis on files and URLs, supporting comprehensive rule management and detailed scanning results.23MIT
- AlicenseAqualityCmaintenanceAn AppSec-focused MCP server that performs static analysis scans on C/C++ source code for memory-safety vulnerabilities and parses compiled PE/ELF binary headers locally to audit active defensive compiler mitigations (ASLR, DEP/NX, PIE).41MIT
- AlicenseAqualityCmaintenanceMCP server exposing LIEF for cross-format binary analysis, enabling parsing, section listing, imports/exports, disassembly, and string extraction for PE, ELF, MachO, DEX, ART, and OAT files.17MIT
- FlicenseAqualityDmaintenanceMCP server for read-only forensic analysis of evidence files using local utilities (file, ExifTool, strings, Volatility).3-