About mcp-ecdsa
mcp-ecdsa is an MCP server for ECDSA key and signature operations. It supports key import and export, signature verification, and public-key recovery across listed curves and hash functions.
Key features
- 01Generate ECDSA key pairs
- 02Sign data or pre-hashed digests
- 03Verify signatures over data or digests
- 04Import and export keys in multiple formats
- 05Inspect keys and recover public keys
Use cases
- 01Create keys for ECDSA signing
- 02Sign data or digests with supported hashes
- 03Verify signatures and inspect key details
- 04Import or export keys in PEM, DER, base64, or SSH
MCP support
Exposes ECDSA key generation, signing, verification, key import and export, key information, and public-key recovery as tools for MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-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/
Comments
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.