MCP server for ECDSA cryptography
Project description
mcp-ecdsa
MCP server for ECDSA cryptography
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96aab9b83f6f2be423c60329b9dabc7abddaab4fddc351e70024101541f06e4d
|
|
| MD5 |
f19fc046f026d769c891317c5254f72f
|
|
| BLAKE2b-256 |
b6d1538aec7e73f9bf222d7c040c5b61d3f9371a5d85ff1692090420b7f70aaa
|
Provenance
The following attestation bundles were made for mcp_ecdsa-0.1.1.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-ecdsa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_ecdsa-0.1.1.tar.gz -
Subject digest:
96aab9b83f6f2be423c60329b9dabc7abddaab4fddc351e70024101541f06e4d - Sigstore transparency entry: 1263410551
- Sigstore integration time:
-
Permalink:
daedalus/mcp-ecdsa@5a4c0f31e89ee2438d07a93426043a09cff61dd4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5a4c0f31e89ee2438d07a93426043a09cff61dd4 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ca070799cb823444df57bc6e1ee1616ddba75333f324b72042250c274009be2
|
|
| MD5 |
2f3769800a97eece23ed175d42e61722
|
|
| BLAKE2b-256 |
8bc6e0f0b52a68b7d9b34b562359404632cb1ba3ad92c6958571652a28af04d2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_ecdsa-0.1.1-py3-none-any.whl -
Subject digest:
6ca070799cb823444df57bc6e1ee1616ddba75333f324b72042250c274009be2 - Sigstore transparency entry: 1263410623
- Sigstore integration time:
-
Permalink:
daedalus/mcp-ecdsa@5a4c0f31e89ee2438d07a93426043a09cff61dd4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5a4c0f31e89ee2438d07a93426043a09cff61dd4 -
Trigger Event:
release
-
Statement type: