DIE (Detect It Easy) MCP Server
Overview
This project provides an MCP (Model Context Protocol) server that allows AI agents to use Detect It Easy (DIE) to analyze executable files. The server acts as a bridge between AI models and the DIE command-line tool.
Server Structure
die_server.py- Main MCP server implementationrequirements.txt- Project dependenciesexamples/- Optional example clients and usage demonstrations
Quick Start
- Install DIE (Detect It Easy) command-line tool
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python die_server.py --die-path "path/to/diec.exe" --transport stdio
Server Options
--transport {stdio,sse}: Transport mode (stdio or sse). Default: stdio--host HOST: Host to bind to (for SSE mode). Default: 0.0.0.0--port PORT: Port to listen on (for SSE mode). Default: 8080--die-path DIE_PATH: Path to the DIE command-line executable (diec.exe)
Available MCP Tools
The server exposes these DIE functionalities through MCP:
analyze_file
Analyzes an executable file with DIE.
{
"file_path": "path/to/file",
"json_output": true,
"deep_scan": false,
"entropy": false,
"verbose": false
}
show_special_info
Gets special file info for a specific method.
{
"file_path": "path/to/file",
"method": "Hash" # or other methods like "Entropy", "Info"
}
list_available_methods
Lists all available special methods for a file.
{
"file_path": "path/to/file"
}
Example Usage
See the examples/ directory for sample clients and usage demonstrations.
Metadata
Release files for iflow-mcp-lazy-importer-die 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iflow_mcp_lazy_importer_die-0.1.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iflow_mcp_lazy_importer_die-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / iflow_mcp_lazy_importer_die-0.1.0.tar.gz
| Download URL | iflow_mcp_lazy_importer_die-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9eb8ebc0317c932b359960080ec8934b45bdff13af8e15099158e0696c2640f
|
|
BLAKE2b-256 checksum How to use checksums |
29139171e21f7fe06a68180513b79850f24b46ecc4ee912fa5cb2d821cd645f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_lazy_importer_die-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_lazy_importer_die-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2c4ad5588e36822eb7b279321cd6a282fecb88aa017788bbf12aa69c25e7ca0
|
|
BLAKE2b-256 checksum How to use checksums |
a45450cc9e8c4fd4d4810fd58689f08938e4ba4e3856cf662c9e29239f492626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|