Skip to main content
Glama

re-kaitai

MCP server exposing Kaitai Struct for custom binary format reverse engineering.

Tools

Tool

What it does

check_compiler

Confirm kaitai-struct-compiler is installed

list_known_formats

List bundled .ksy formats

download_format

Download a .ksy from the kaitai-formats gallery

compile_format

Compile .ksy → Python at runtime

parse_with_format

Parse a binary with a compiled or precompiled format

visualize

Same as parse_with_format, named for the intent

diff_parses

Parse two files and return a structural diff

Related MCP server: mcp-pwntools

Install

# System dependency
brew install kaitai-struct-compiler   # macOS
scoop install kaitai-struct-compiler  # Windows
# Linux: download prebuilt from https://github.com/kaitai-io/kaitai_struct_compiler/releases

# Python
pip install kaitaistruct
pip install -e ./servers/re-kaitai

Usage pattern (in Claude Code)

1. "Decode this firmware blob"
2. Claude identifies the file magic (e.g. LZMA header)
3. Claude downloads the matching .ksy: download_format("lzma")
4. Claude compiles: compile_format("/path/lzma.ksy")
5. Claude parses: parse_with_format(path="/path/blob", ksy_path="/path/lzma.ksy")
6. Claude inspects the parse tree, iterates on the .ksy, re-parses

The Kaitai workflow is iterative: compile → parse → fix the schema → re-compile → parse again.

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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/Heretek-RE/re-kaitai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server