# pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving

> pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving is an open-source MCP server for security. Inspect, verify and issue X.509, CMS, OCSP and time-stamps; key bytes never leave. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows
- **Repository:** https://github.com/nizoka/pkinative-mcp
- **MCP Registry name:** io.github.Nizoka/pkinative-mcp
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-16

## About

pkinative-mcp is a PKI toolkit with 34 tools and 7 prompts, built on the author's zero-dependency TypeScript engine that uses Web Crypto for signatures. It inspects certificates, CSRs, CRLs, OCSP responses, CMS SignedData and RFC 3161 time-stamps, decodes ASN.1, PEM and OIDs, builds and validates certificate chains with RFC 5280 path validation, and creates certificates, CSRs, CMS signatures and time-stamp or OCSP requests.

Keys are handled defensively. PKCS#8 and PKCS#12 files are opened as non-extractable Web Crypto keys and never returned, private-key blocks are refused by the encoding tools, and an optional sandbox directory limits file reads and writes with symlink checks. Verdict tools return valid plus reasons rather than an error for a negative result. The README says there is no network access, so revocation checks use CRL and OCSP bytes you supply.

It runs over stdio, with an optional loopback HTTP mode protected by a bearer token. A pinned-time setting makes verdicts reproducible.

## Features

- **Chain verification:** Checks a path to your trust anchors with RFC 5280 rules and supplied revocation data.
- **Certificate issuance:** Creates X.509 certificates and CSRs signed by a non-extractable key.
- **Key safety:** Never returns key bytes from PKCS#8 or PKCS#12 files.
- **Verdict results:** Negative verdicts return reasons rather than errors.
- **ASN.1 tools:** Decodes and encodes DER, PEM and OIDs.
- **No network:** Operates offline using only material you supply.

## Good for

- Inspect a certificate's extensions and fingerprints
- Verify a server certificate chain against your own roots
- Create a CSR or test certificate without exposing the key
- Decode an unknown ASN.1 structure

## Install

### Claude Code (Terminal)

```sh
claude mcp add pkinative-mcp --env PKINATIVE_MCP_HTTP_TOKEN='<PKINATIVE_MCP_HTTP_TOKEN>' --env PKINATIVE_MCP_PASSWORD='<PKINATIVE_MCP_PASSWORD>' -- npx -y pkinative-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pkinative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkinative-mcp"
      ],
      "env": {
        "PKINATIVE_MCP_HTTP_TOKEN": "<PKINATIVE_MCP_HTTP_TOKEN>",
        "PKINATIVE_MCP_PASSWORD": "<PKINATIVE_MCP_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pkinative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkinative-mcp"
      ],
      "env": {
        "PKINATIVE_MCP_HTTP_TOKEN": "<PKINATIVE_MCP_HTTP_TOKEN>",
        "PKINATIVE_MCP_PASSWORD": "<PKINATIVE_MCP_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "pkinative-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pkinative-mcp"
      ],
      "env": {
        "PKINATIVE_MCP_HTTP_TOKEN": "<PKINATIVE_MCP_HTTP_TOKEN>",
        "PKINATIVE_MCP_PASSWORD": "<PKINATIVE_MCP_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pkinative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkinative-mcp"
      ],
      "env": {
        "PKINATIVE_MCP_HTTP_TOKEN": "<PKINATIVE_MCP_HTTP_TOKEN>",
        "PKINATIVE_MCP_PASSWORD": "<PKINATIVE_MCP_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pkinative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pkinative-mcp"
      ],
      "env": {
        "PKINATIVE_MCP_HTTP_TOKEN": "<PKINATIVE_MCP_HTTP_TOKEN>",
        "PKINATIVE_MCP_PASSWORD": "<PKINATIVE_MCP_PASSWORD>"
      }
    }
  }
}
```

## Tools

- `convert_pem`: Decodes or encodes PEM blocks.
- `resolve_oid`: Names, validates, encodes and decodes object identifiers.
- `compute_fingerprint`: Computes fingerprints and key identifiers.
- `decode_asn1`: Decodes the ASN.1 node tree of a DER object.
- `encode_asn1`: Encodes a JSON node spec to DER.
- `inspect_certificate`: Reports a certificate's fields and extensions.
- `create_certificate`: Issues an X.509 v3 certificate.
- `encode_x509_structure`: Encodes an X.509 building block.
- `decode_extension`: Decodes one certificate extension by OID.
- `check_certificate_name`: Checks a certificate's identity match for a host or IP.
- `check_certificate_purpose`: Checks whether a certificate may be used for a purpose.
- `inspect_csr`: Reports a PKCS#10 request and its proof of possession.
- `create_csr`: Creates a signed PKCS#10 request.
- `verify_certificate_chain`: Returns a trust verdict for a chain with revocation data.
- `build_certificate_path`: Discovers intermediates from a leaf to an anchor.

## FAQ

### Does it make network calls?

No, the README says no network, ever.

### Can it reveal private keys?

No, key-bearing files are read by key tools only and never returned or served.

### How many tools does it have?

34 tools and 7 prompts.

### How does it run?

Over stdio, or optionally over loopback HTTP with a bearer token.

### Is pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving free?

Yes. pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving is open source, so you can use and self-host it for free.

### How do I add pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving to Claude Code?

Run this command in your terminal: claude mcp add pkinative-mcp --env PKINATIVE_MCP_HTTP_TOKEN='<PKINATIVE_MCP_HTTP_TOKEN>' --env PKINATIVE_MCP_PASSWORD='<PKINATIVE_MCP_PASSWORD>' -- npx -y pkinative-mcp

### What are the best alternatives to pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving?

The closest alternatives to pkinative MCP — X.509, CMS, OCSP, time-stamps and PKCS#12 without a key byte leaving are IDigiTrust SSL Toolkit, Tracekit MCP gateway, mcp-pin, RugSnare and Toolproof.

## Where this comes from

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

## Alternatives

- [IDigiTrust SSL Toolkit](https://ai-powered.com/mcp/idigitrust-ssl-toolkit): IDigiTrust SSL Toolkit is a free MCP server for security.
- [Tracekit MCP gateway](https://ai-powered.com/mcp/tracekit-mcp-gateway): Tracekit MCP gateway is an open-source MCP server for security.
- [mcp-pin](https://ai-powered.com/mcp/mcp-pin): mcp-pin is an open-source MCP server for security.
- [RugSnare](https://ai-powered.com/mcp/rugsnare): RugSnare is an open-source MCP server for security.
- [Toolproof](https://ai-powered.com/mcp/toolproof): Toolproof is a free MCP server for security.
- [SkillTriage](https://ai-powered.com/mcp/skilltriage): SkillTriage is a free MCP server for security.
- [pinright](https://ai-powered.com/mcp/pinright): pinright is an open-source MCP server for developer tools.
- [pkgxray](https://ai-powered.com/mcp/pkgxray): pkgxray is a free MCP server for security.

---
Source: https://ai-powered.com/mcp/pkinative-mcp-x-509-cms-ocsp-time-stamps-and-pkcs-12-without
