MCP server exposing Capstone 5.0.7 disassembly framework
Project description
mcp-capstone
MCP server that exposes Capstone 5.0.7 disassembly framework functionalities as tools and resources, enabling LLMs to perform binary disassembly, reverse engineering, and instruction analysis.
Install
pip install mcp-capstone
Usage
CLI
mcp-capstone
Python
from mcp_capstone import disasm, get_version
# Get version
version = get_version()
print(f"Capstone {version['major']}.{version['minor']}")
# Disassemble x86-64 code
instructions = disasm("8b440404", arch="x86", mode="64")
for insn in instructions:
print(f"0x{insn['address']:x}: {insn['mnemonic']} {insn['op_str']}")
Supported Architectures
- x86 (16/32/64-bit)
- ARM (ARM, Thumb, ARM mode)
- AArch64 (ARMv8)
- MIPS (MIPS32/64, MIPS2/3, R6)
- PowerPC (32/64-bit, SPE, QPX)
- RISC-V (RV32/64GC)
- SPARC (V8/V9)
- SystemZ
- M68K (68000-68060)
- M680X (6301/6309/6800/6805/6808/6809/6811/CPU12/HCS08)
- TriCore
- TMS320C64X
- WebAssembly
- XCore
- BPF (Classic/Extended)
- EVM (Ethereum Virtual Machine)
Tools
| Tool | Description |
|---|---|
get_version |
Get Capstone version |
check_support |
Check architecture support |
list_architectures |
List all architectures |
disasm |
Full disassembly with details |
disasm_lite |
Lightweight disassembly |
disasm_quick |
Quick disassembly |
get_architectures |
All architecture constants |
get_modes |
All mode constants |
get_options |
All option constants |
get_operands |
All operand type constants |
get_groups |
All instruction group constants |
get_errors |
All error constants |
Development
git clone https://github.com/daedalus/mcp-capstone.git
cd mcp-capstone
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
mcp-name: io.github.daedalus/mcp-capstone
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_capstone-0.1.0.tar.gz.
File metadata
- Download URL: mcp_capstone-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0d3c9dde30f49341c660225a714d8ccff3645e0ae7ef64bed40db47e0b64ada
|
|
| MD5 |
531dc91706ce5d81616c63ec6cfc307a
|
|
| BLAKE2b-256 |
d79f8344b5da120db8ec79b399f2e9120d7baef73ff4bc5073cdeb51366b1a06
|
Provenance
The following attestation bundles were made for mcp_capstone-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-capstone
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_capstone-0.1.0.tar.gz -
Subject digest:
d0d3c9dde30f49341c660225a714d8ccff3645e0ae7ef64bed40db47e0b64ada - Sigstore transparency entry: 1263380656
- Sigstore integration time:
-
Permalink:
daedalus/mcp-capstone@9c095fb1b6224cd49e874ad3d930349d94e51ef2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@9c095fb1b6224cd49e874ad3d930349d94e51ef2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_capstone-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_capstone-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b1a9e2a04a91ee01c966cb966a13deef8cd1f4ea15ab659accfba8c5a8374a4
|
|
| MD5 |
0ee468fcbc6c5104ab5d1c0bbb62cf49
|
|
| BLAKE2b-256 |
c48f717c33c606158b31a08d263e7414bed0b52ae10418cfc2032d16d8898908
|
Provenance
The following attestation bundles were made for mcp_capstone-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/mcp-capstone
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_capstone-0.1.0-py3-none-any.whl -
Subject digest:
2b1a9e2a04a91ee01c966cb966a13deef8cd1f4ea15ab659accfba8c5a8374a4 - Sigstore transparency entry: 1263380754
- Sigstore integration time:
-
Permalink:
daedalus/mcp-capstone@9c095fb1b6224cd49e874ad3d930349d94e51ef2 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@9c095fb1b6224cd49e874ad3d930349d94e51ef2 -
Trigger Event:
release
-
Statement type: