X-Ways MCP
Click on "Install 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., "@X-Ways MCPvalidate XWFIM cache at C:\xwfim\Temp"
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.
X-Ways MCP Server
An MCP server for X-Ways Forensics triage, installation validation, and controlled automation.
This repo follows the same general idea as bethington/ghidra-mcp: put a
specialist desktop analysis tool behind a structured MCP surface so agents can
inspect state, run repeatable workflows, and keep a useful audit trail. The first
version is intentionally a safe control plane. A future X-Tension bridge can add
in-process X-Ways case and evidence-object access.
Current Capabilities
Discover X-Ways Forensics, WinHex, X-Ways Imager, and XWFIM executables.
Validate XWFIM
Tempdownloads and detect truncated ZIPs such as a badviewer.zip.Hash evidence and downloaded packages with MD5/SHA-1/SHA-256.
Create repeatable case workspace folders.
Build read-only triage inventories for mounted folders or exports.
Run a forensic harness that writes case manifests, report stubs, status JSON, and audit logs compatible with
Donovoi/forensic-copilot.Create disposable synthetic test environments for Windows, Linux, macOS, and generic evidence fixtures.
Build X-Ways launch commands without executing them.
Optionally launch X-Ways when explicitly enabled.
Fetch public X-Ways release information for quick version checks.
Safety Model
Read-only and dry-run behavior is the default.
launch_xways will not execute unless both conditions are true:
XWAYS_MCP_ALLOW_EXECUTE=1the tool call passes
confirm=true
This avoids accidentally starting analysis, imaging, or script workflows while an agent is still planning.
Requirements
Python 3.10+
X-Ways Forensics, WinHex, X-Ways Imager, or XWFIM installed separately
Windows for real X-Ways launching and executable version inspection
The server itself can run on other platforms for archive validation, hashing, and folder inventory work.
Quick Start
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e ".[dev]"
pytest
python -m xways_mcp --transport stdioRun the MCP stdio smoke test:
python scripts\smoke_mcp.py --search-root "<XWFIM_ROOT>" --public-releaseRun a forensic-copilot-compatible harness preflight:
python -m xways_mcp.harness xwfim-preflight `
--case-name CASE-001 `
--xwfim-root "<XWFIM_ROOT>" `
--staging-root artifacts `
--output-root reports `
--evidence-os Windows `
--evidence-mode portable-toolingBuild disposable synthetic fixtures for every supported evidence OS:
python -m xways_mcp.testenv build --name CASE-001 --evidence-os all --root test-envs --force
python -m xways_mcp.testenv destroy --name CASE-001 --evidence-os all --root test-envs --missing-okConfigure your MCP client with:
{
"mcpServers": {
"xways-mcp": {
"command": "python",
"args": ["-m", "xways_mcp", "--transport", "stdio"],
"env": {
"XWAYS_HOME": "C:\\xwf",
"XWAYS_MCP_SEARCH_ROOTS": "<XWAYS_ROOT>;<XWFIM_ROOT>",
"XWAYS_MCP_ALLOW_EXECUTE": "0",
"PYTHONIOENCODING": "utf-8"
}
}
}
}Useful Tools
environmentpublic_xways_releasediscover_installationsinspect_xwfim_cachevalidate_archivehash_filecreate_workspacetriage_inventorybuild_launch_commandlaunch_xwaysharness_init_caseharness_xwfim_preflightharness_folder_triagetestenv_createtestenv_buildtestenv_runtestenv_destroytestenv_list
See docs/TOOLS.md for details.
See docs/FORENSIC_COPILOT.md for integration with
Donovoi/forensic-copilot.
See docs/TEST_ENVIRONMENTS.md for disposable
synthetic fixture testing.
XWFIM Validation Example
inspect_xwfim_cache(path="<XWFIM_ROOT>")This reports each ZIP in Temp, whether it can be opened, and whether the ZIP
end-of-central-directory record is missing. That is the signal for a truncated
download.
Roadmap
Stabilize the Python MCP control plane.
Add stronger X-Ways script templates for repeatable triage.
Build a small X-Tension DLL bridge for in-process case/evidence metadata.
Dynamically register X-Tension-backed tools when X-Ways is open.
Add reporting workflows for timeline, search hit, and tagged-file exports.
References
X-Ways X-Tensions API: https://www.x-ways.net/forensics/x-tensions/api.html
X-Ways scripting: https://www.x-ways.net/winhex/scripting.html
X-Ways command-line setup notes: https://www.x-ways.net/winhex/setup.html
X-Ways release mailing list: https://www.x-ways.net/winhex/mailings/
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Donovoi/X-Ways-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server