mcpField
M
mcp-python-bitcoinlib

mcp-python-bitcoinlib

Local
github.com/daedalusFinance0Updated 27w ago

About mcp-python-bitcoinlib

mcp-python-bitcoinlib makes the python-bitcoinlib API available to clients as Bitcoin-focused tools. It is intended for applications that need key, address, transaction, script, and cryptographic operations.

Key features

  1. 01Private-key generation and conversion
  2. 02P2PKH, P2SH, P2WPKH, and P2WSH addresses
  3. 03Transaction creation and signing
  4. 04Bitcoin script parsing and creation
  5. 05Hash functions and ECDSA operations

Use cases

  1. 01Generate a private key and convert its format
  2. 02Create an address for a Bitcoin script type
  3. 03Build and sign a Bitcoin transaction
  4. 04Parse a script or perform hash and signature operations

MCP support

The MCP server exposes Bitcoin tools based on the python-bitcoinlib API to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"daedalus-mcp-python-bitcoinlib": {
"command": "uvx",
"args": [
"mcp-python-bitcoinlib"
]
}
}
}
Run commanduvx mcp-python-bitcoinlib

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimcp-python-bitcoinlib0.1.0

Tools

20

Saved tool list · updated 3w ago

This tool takes no parameters.

Details

From the project README

mcp-python-bitcoinlib

An MCP server that exposes the python-bitcoinlib API

PyPI Python Coverage Ruff

Install

pip install mcp-python-bitcoinlib

Usage

mcp-python-bitcoinlib

MCP Configuration

mcp-name: io.github.daedalus/mcp-python-bitcoinlib

For Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-python-bitcoinlib": {
      "command": "mcp-python-bitcoinlib",
      "env": {}
    }
  }
}

Tools

The server exposes the following Bitcoin tools:

  • Key Management: Generate private keys, convert between WIF and hex
  • Address Generation: P2PKH, P2SH, P2WPKH, P2WSH addresses
  • Transaction Building: Create and sign transactions
  • Script Operations: Parse and create Bitcoin scripts
  • Cryptography: SHA256, RIPEMD160, Hash160, Hash256, ECDSA signing/verification

Development

git clone https://github.com/daedalus/mcp-python-bitcoinlib.git
cd mcp-python-bitcoinlib
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mcp-python-bitcoinlib src/

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.