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.1.tar.gz (5.7 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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_ecdsa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 96aab9b83f6f2be423c60329b9dabc7abddaab4fddc351e70024101541f06e4d
MD5 f19fc046f026d769c891317c5254f72f
BLAKE2b-256 b6d1538aec7e73f9bf222d7c040c5b61d3f9371a5d85ff1692090420b7f70aaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_ecdsa-0.1.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mcp_ecdsa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ca070799cb823444df57bc6e1ee1616ddba75333f324b72042250c274009be2
MD5 2f3769800a97eece23ed175d42e61722
BLAKE2b-256 8bc6e0f0b52a68b7d9b34b562359404632cb1ba3ad92c6958571652a28af04d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_ecdsa-0.1.1-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