← Back to search

io.github.daedalus/mcp-python-bitcoinlib

daedalus Scanned 25d ago

An MCP server that exposes the python-bitcoinlib API

B
88 / 100

Versions

0.1.0latest
first seen May 19, 2026
PermissionsTool SafetyAuthAnnotationsCode QualityStabilitySpecVuln HistoryAuthorTransparencyCommunity

Tools 20

generate_private_key
annotations: none low

Generate a random private key and return it as a 32-byte hex string.

privkey_to_wif
annotations: none low

Convert a private key (hex) to WIF format. Args: privkey: Private key as a 32-byte hex string. compressed: Whether to produce a compressed WIF (default: True). Returns: WIF-encoded private key.

privkey str compressed bool
wif_to_privkey
annotations: none low

Convert a WIF-encoded private key back to hex. Args: wif: WIF-encoded private key. Returns: Private key as a 32-byte hex string.

wif str
privkey_to_pubkey
annotations: none low

Get the public key from a private key. Args: privkey: Private key as a 32-byte hex string. compressed: Whether to produce a compressed public key (default: True). Returns: Public key as a hex string.

privkey str compressed bool
pubkey_to_address
annotations: none low

Convert a public key to an address. Args: pubkey: Public key as a hex string (33 or 65 bytes). address_type: Address type - "p2pkh", "p2sh", "p2wpkh", or "p2wsh". Returns: Bitcoin address.

pubkey str address_type str
pubkey_to_p2sh_p2wpkh_redeemscript
annotations: none low

Get the P2SH-P2WPKH redeemScript for a public key. Args: pubkey: Public key as a hex string. Returns: The redeemScript as hex.

pubkey str
address_to_script
annotations: none low

Get the script from an address. Args: address: Bitcoin address. Returns: The script as hex.

address str
create_transaction
annotations: none low

Create an unsigned Bitcoin transaction. Args: outputs: List of dicts with 'address' and 'satoshi' keys. fee: Transaction fee in satoshis (default: 1000). version: Transaction version (default: 2). Returns: Dictionary with transaction hex and details.

fee int outputs string version int
serialize_transaction
annotations: none low

Serialize and deserialize a transaction. Args: tx_hex: Transaction as hex string. Returns: Dictionary with transaction details.

tx_hex str
sign_transaction
annotations: none low

Sign a transaction input with a private key. Args: tx_hex: Transaction as hex string. privkey: Private key as hex string. sighash_type: Sighash type (default: 1 = SIGHASH_ALL). Returns: Signed transaction as hex.

tx_hex str privkey str sighash_type int
parse_script
annotations: none low

Parse a script into its opcodes. Args: script_hex: Script as hex string. Returns: List of opcode names and data.

script_hex str
create_p2pkh_script
annotations: none low

Create a P2PKH script from a public key hash. Args: pubkey_hash: Public key hash as hex. Returns: P2PKH script as hex.

pubkey_hash str
create_p2wpkh_script
annotations: none low

Create a P2WPKH script from a public key hash. Args: pubkey_hash: Public key hash as hex. Returns: P2WPKH script as hex.

pubkey_hash str
sha256_hex
annotations: none low

Compute SHA256 hash. Args: data: Input data as hex string. Returns: SHA256 hash as hex.

data str
ripemd160_hex
annotations: none low

Compute RIPEMD160 hash. Args: data: Input data as hex string. Returns: RIPEMD160 hash as hex.

data str
hash160_hex
annotations: none low

Compute Hash160 (SHA256 then RIPEMD160). Args: data: Input data as hex string. Returns: Hash160 as hex.

data str
hash256_hex
annotations: none low

Compute double SHA256. Args: data: Input data as hex string. Returns: Double SHA256 as hex.

data str
verify_signature
annotations: none low

Verify an ECDSA signature. Args: signature: Signature as hex. pubkey: Public key as hex. message: Message that was signed. Returns: True if signature is valid.

pubkey str message str signature str
sign_message
annotations: none low

Sign a message with a private key. Args: message: Message to sign. privkey: Private key as hex. Returns: Signature as hex.

message str privkey str
validate_address
annotations: none low

Validate a Bitcoin address for a given network. Args: address: Bitcoin address to validate. network: Network name - "main", "testnet", "signet" (default: "main"). Returns: Dictionary with validation result and details.

address str network str

Permissions 0

No permissions indexed yet.

Scan Findings 55

low
Tool 'wif_to_privkey' has no annotations annotation_checker · 100%
low
Tool 'generate_private_key' has no annotations annotation_checker · 100%
low
Tool 'privkey_to_wif' has no annotations annotation_checker · 100%
low
Tool 'privkey_to_pubkey' has no annotations annotation_checker · 100%
low
Tool 'pubkey_to_address' has no annotations annotation_checker · 100%
low
Tool 'pubkey_to_p2sh_p2wpkh_redeemscript' has no annotations annotation_checker · 100%
low
Tool 'address_to_script' has no annotations annotation_checker · 100%
low
Tool 'create_transaction' has no annotations annotation_checker · 100%
low
Tool 'serialize_transaction' has no annotations annotation_checker · 100%
low
Tool 'sign_transaction' has no annotations annotation_checker · 100%
low
Tool 'parse_script' has no annotations annotation_checker · 100%
low
Tool 'create_p2pkh_script' has no annotations annotation_checker · 100%
low
Tool 'create_p2wpkh_script' has no annotations annotation_checker · 100%
low
Tool 'sha256_hex' has no annotations annotation_checker · 100%
low
Tool 'ripemd160_hex' has no annotations annotation_checker · 100%
low
Tool 'hash160_hex' has no annotations annotation_checker · 100%
low
Tool 'hash256_hex' has no annotations annotation_checker · 100%
low
Tool 'verify_signature' has no annotations annotation_checker · 100%
low
Tool 'sign_message' has no annotations annotation_checker · 100%
low
Tool 'validate_address' has no annotations annotation_checker · 100%
info
Sandbox failed to start for behavioral verification behavioral_verifier · 100%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/conftest.py:6 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/conftest.py:11 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/test_server.py:27 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/test_server.py:62 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/test_server.py:70 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/test_server.py:78 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/test_server.py:85 entropy_analyzer · 70%
medium
Hex string literal (>50 chars) in daedalus-mcp-python-bitcoinlib-78d9301/tests/test_server.py:162 entropy_analyzer · 70%
medium
High-entropy string (5.86 bits/char) in daedalus-mcp-python-bitcoinlib-78d9301/src/mcp_python_bitcoinlib/_server.py:29 entropy_analyzer · 52%
medium
High-entropy string (5.86 bits/char) in daedalus-mcp-python-bitcoinlib-78d9301/src/mcp_python_bitcoinlib/_server.py:41 entropy_analyzer · 52%
info
pyproject.toml metadata manifest_parser · 100%
info
Tool: generate_private_key manifest_parser · 90%
info
Tool: privkey_to_wif manifest_parser · 90%
info
Tool: wif_to_privkey manifest_parser · 90%
info
Tool: privkey_to_pubkey manifest_parser · 90%
info
Tool: pubkey_to_address manifest_parser · 90%
info
Tool: pubkey_to_p2sh_p2wpkh_redeemscript manifest_parser · 90%
info
Tool: address_to_script manifest_parser · 90%
info
Tool: create_transaction manifest_parser · 90%
info
Tool: serialize_transaction manifest_parser · 90%
info
Tool: sign_transaction manifest_parser · 90%
info
Tool: parse_script manifest_parser · 90%
info
Tool: create_p2pkh_script manifest_parser · 90%
info
Tool: create_p2wpkh_script manifest_parser · 90%
info
Tool: sha256_hex manifest_parser · 90%
info
Tool: ripemd160_hex manifest_parser · 90%
info
Tool: hash160_hex manifest_parser · 90%
info
Tool: hash256_hex manifest_parser · 90%
info
Tool: verify_signature manifest_parser · 90%
info
Tool: sign_message manifest_parser · 90%
info
Tool: validate_address manifest_parser · 90%
info
Sandbox failed to start for output poisoning scan output_poisoning · 100%
info
No dependency files found for SBOM generation sbom_generator · 100%
medium
No build provenance detected (SLSA L0) slsa_assessor · 90%