Metadata-Version: 2.4
Name: mcp-python-bitcoinlib
Version: 0.1.0
Summary: An MCP server that exposes the python-bitcoinlib API
Project-URL: Homepage, https://github.com/daedalus/mcp-python-bitcoinlib
Project-URL: Repository, https://github.com/daedalus/mcp-python-bitcoinlib
Project-URL: Issues, https://github.com/daedalus/mcp-python-bitcoinlib/issues
Author-email: Dario Clavijo <clavijodario@gmail.com>
License: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: ecdsa
Requires-Dist: fastmcp
Requires-Dist: python-bitcoinlib
Provides-Extra: all
Requires-Dist: hatch; extra == 'all'
Requires-Dist: hypothesis; extra == 'all'
Requires-Dist: mypy; extra == 'all'
Requires-Dist: pytest; extra == 'all'
Requires-Dist: pytest-asyncio; extra == 'all'
Requires-Dist: pytest-cov; extra == 'all'
Requires-Dist: pytest-mock; extra == 'all'
Requires-Dist: ruff; extra == 'all'
Provides-Extra: dev
Requires-Dist: hatch; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: lint
Requires-Dist: mypy; extra == 'lint'
Requires-Dist: ruff; extra == 'lint'
Provides-Extra: test
Requires-Dist: hypothesis; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-asyncio; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: pytest-mock; extra == 'test'
Description-Content-Type: text/markdown

# mcp-python-bitcoinlib

> An MCP server that exposes the python-bitcoinlib API

[![PyPI](https://img.shields.io/pypi/v/mcp-python-bitcoinlib.svg)](https://pypi.org/project/mcp-python-bitcoinlib/)
[![Python](https://img.shields.io/pypi/pyversions/mcp-python-bitcoinlib.svg)](https://pypi.org/project/mcp-python-bitcoinlib/)
[![Coverage](https://codecov.io/gh/daedalus/mcp-python-bitcoinlib/branch/main/graph/badge.svg)](https://codecov.io/gh/daedalus/mcp-python-bitcoinlib)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

## Install

```bash
pip install mcp-python-bitcoinlib
```

## Usage

```bash
mcp-python-bitcoinlib
```

## MCP Configuration

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

### For Claude Desktop

Add to your `claude_desktop_config.json`:

```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

```bash
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/
```
