Skip to main content

MCP server for ECDSA cryptography

Project description

mcp-ecdsa

MCP server for ECDSA cryptography

PyPI Python Ruff

mcp-name: io.github.daedalus/mcp-ecdsa

Install

pip install mcp-ecdsa

Usage

As MCP Server

Configure in your MCP client:

{
  "mcpServers": {
    "mcp-ecdsa": {
      "command": "mcp-ecdsa"
    }
  }
}

Python API

from mcp_ecdsa import generate_key, sign_data, verify_signature

# Generate key pair
result = await generate_key({"curve": "NIST256p"})
data = json.loads(result[0].text)

# Sign data
sign_result = await sign_data({
    "private_key": data["private_key"],
    "data": "Hello, World!"
})

# Verify signature
verify_result = await verify_signature({
    "public_key": data["public_key"],
    "signature": json.loads(sign_result[0].text)["signature"],
    "data": "Hello, World!"
})

Tools

Tool Description
generate_key Generate ECDSA key pair
sign_data Sign data (with hashing)
sign_digest Sign pre-hashed digest
verify_signature Verify signature over data
verify_digest_signature Verify signature over digest
import_private_key Import from PEM/DER/base64
import_public_key Import from PEM/DER/base64
export_private_key Export to PEM/DER/base64/SSH
export_public_key Export to PEM/DER/base64/SSH
get_key_info Get key information
recover_public_key Recover public keys from signature

Supported Curves

  • NIST192p, NIST224p, NIST256p, NIST384p, NIST521p
  • SECP256k1
  • Ed25519, Ed448

Supported Hash Functions

  • SHA1, SHA224, SHA256, SHA384, SHA512
  • SHA3-256, SHA3-384, SHA3-512

Development

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

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_ecdsa-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_ecdsa-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_ecdsa-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_ecdsa-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_ecdsa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b4cead04f8539edd862f0e02bfeee03ff54a82af5191cb0a932119b0c869d43
MD5 e49855f117c140a5285160600a321fb2
BLAKE2b-256 e05cfe877867e65ed7b33cb451122cc6f5e087e0517d6ea7e4d7a874ea7d9bd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_ecdsa-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-ecdsa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_ecdsa-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_ecdsa-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_ecdsa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8395524e67b1b8369375ea991755caa686531cfeb5b3450f784ef94f84a6f159
MD5 e79c0eb001ea07d7b1685256c646e97a
BLAKE2b-256 548bdcdf435a88fe1364b3286089038f22217b342d9c4eddeeed54a0161407f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_ecdsa-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-ecdsa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page