# MCP Ecdsa

> MCP Ecdsa is an open-source MCP server for security. MCP server giving AI clients ECDSA key generation, signing and signature verification. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/daedalus/mcp-ecdsa
- **MCP Registry name:** io.github.daedalus/mcp-ecdsa
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

The README describes mcp-ecdsa as a Python package that exposes elliptic curve signing operations over the Model Context Protocol. Once it is configured in an MCP client, the client can generate ECDSA key pairs, sign data or pre-computed digests, verify signatures, and import or export keys in PEM, DER, base64 or SSH formats.

The server covers a range of curves, including the NIST prime curves, SECP256k1, and Ed25519 and Ed448, and supports several SHA-1, SHA-2 and SHA-3 hash functions. It also offers a recover_public_key tool for deriving candidate public keys from a signature. It runs over stdio and is installed with pip.

The project suits developers who want an AI assistant to handle cryptographic key and signature tasks through tool calls rather than writing the code themselves. The README also includes a Python API example for calling the same functions directly.

## Features

- **Key pair generation:** Creates ECDSA key pairs on a selected named curve.
- **Data and digest signing:** Signs raw data with hashing or signs an already hashed digest.
- **Signature verification:** Checks signatures over data or digests against a public key.
- **Key import and export:** Converts keys between PEM, DER, base64 and SSH formats.
- **Public key recovery:** Recovers candidate public keys from a signature.
- **Broad curve and hash support:** Handles NIST, SECP256k1, Ed25519 and Ed448 curves with several hash functions.

## Good for

- Generating key pairs for testing signing workflows from an AI assistant
- Signing a message and verifying the signature within an agent pipeline
- Converting keys between PEM, DER, base64 and SSH formats
- Recovering the public key that produced a given signature

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-ecdsa -- uvx mcp-ecdsa
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-ecdsa": {
      "command": "uvx",
      "args": [
        "mcp-ecdsa"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-ecdsa": {
      "command": "uvx",
      "args": [
        "mcp-ecdsa"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-ecdsa": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-ecdsa"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-ecdsa": {
      "command": "uvx",
      "args": [
        "mcp-ecdsa"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-ecdsa": {
      "command": "uvx",
      "args": [
        "mcp-ecdsa"
      ]
    }
  }
}
```

## Tools

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

## FAQ

### How is the server installed?

The README says to install it with pip install mcp-ecdsa and then configure the mcp-ecdsa command in the MCP client.

### Which curves are supported?

The README lists NIST192p, NIST224p, NIST256p, NIST384p, NIST521p, SECP256k1, Ed25519 and Ed448.

### Which hash functions can be used?

The README lists SHA1, SHA224, SHA256, SHA384, SHA512, SHA3-256, SHA3-384 and SHA3-512.

### Is MCP Ecdsa free?

Yes. MCP Ecdsa is open source, so you can use and self-host it for free.

### How do I add MCP Ecdsa to Claude Code?

Run this command in your terminal: claude mcp add mcp-ecdsa -- uvx mcp-ecdsa

### What are the best alternatives to MCP Ecdsa?

The closest alternatives to MCP Ecdsa are mcp-agent-template, Agent Passport System — Cryptographic Identity for AI Agents and MCP Server Auth Template.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [mcp-agent-template](https://ai-powered.com/mcp/mcp-agent-template): mcp-agent-template is an open-source MCP server for security.
- [Agent Passport System — Cryptographic Identity for AI Agents](https://ai-powered.com/mcp/agent-passport-system-cryptographic-identity-for-ai-agents): Agent Passport System — Cryptographic Identity for AI Agents is an open-source MCP server for security.
- [MCP Server Auth Template](https://ai-powered.com/mcp/mcp-server-auth-template): MCP Server Auth Template is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/mcp-ecdsa
