Skip to main content
Glama
PKI Studio MCP

PKI Studio MCP

Official
by pkistudio

PKI Studio MCP

PKI Studio MCP is a local MCP server for AI-assisted PKI, ASN.1, DER, PEM, X.509 certificate, CSR, key, and PKCS#12 workflows. It exposes PKI Studio family libraries as MCP tools for AI assistants through stdio and Streamable HTTP transports.

Documentation: https://github.com/pkistudio/pkistudiomcp/wiki

Maintainer-facing design documentation: docs/README.md

Current version: 0.7.2

The server is designed for local assistant workflows first. Certificate parsing, ASN.1 parsing, key recognition, and PKCS#12 processing run inside the MCP server process. Network fetching is limited to the explicit fetch_certificate_network_resources tool.

Features

  • stdio MCP server for local VS Code, GitHub Copilot, Claude Desktop, and other MCP clients.

  • Streamable HTTP MCP server for local, containerized, or controlled remote deployments.

  • ASN.1 / DER / BER / PEM parsing, summaries, node extraction, and decoded node values.

  • OBJECT IDENTIFIER encoding, decoding, and name resolution through PkiStudioJS.

  • X.509 certificate parsing through CertGadgets, including CDP/AIA/OCSP resource plans without automatic network access.

  • PKCS#8 private key and SPKI public key recognition, key pair generation, key verification, certificate/key matching, CSR creation, and self-signed certificate creation through Private Key Gadgets.

  • PKCS#12 / PFX import and export helpers for certificate and key bundles.

  • ASN.1 Instance Builder tools for parsing supported ASN.1 definitions, validating schema/instance JSON, and building DER.

  • ASN.1 Definition Sifter tools for ranking likely ASN.1 type definitions for DER/TLV data.

  • MCP workflow prompts for certificate inspection, certificate/key comparison, and PKCS#12 analysis.

  • Docker image for the Streamable HTTP server.

See the Wiki for details:

Related MCP server: tshark-mcp

What Can I Ask?

  • Parse this PEM certificate and summarize the issuer, subject, validity, extensions, and ASN.1 structure.

  • Show all OIDs found in this DER data and resolve their names.

  • Check whether this certificate matches this private key.

  • Read this PKCS#12/PFX file and list contained certificates and keys.

  • Generate a test key pair, CSR, or self-signed certificate.

  • Identify likely ASN.1 type definitions for this DER data.

  • Build DER from this ASN.1 definition and JSON instance.

For a longer prompt list, see Getting Started.

Tool Areas

  • Certificate inspection: parse_certificate, parse_asn1, summarize_asn1, resolve_oid.

  • DER / ASN.1 inspection: parse_asn1, summarize_asn1, describe_node, extract_asn1_node, asn1_node_value.

  • OID utilities: encode_oid, decode_oid_value, resolve_oid.

  • Key material: recognize_key_material, generate_key_pair, verify_key_pair, certificate_matches_key.

  • CSR and test certificates: create_csr, create_self_signed_certificate.

  • PKCS#12 / PFX: read_pkcs12, write_pkcs12.

  • ASN.1 Definition Sifter: sift_asn1_definition_candidates, sift_pki_asn1_definition_candidates.

  • ASN.1 Instance Builder: parse_asn1_definition, validate_asn1_schema, validate_asn1_instance, create_asn1_instance.

For all purpose-to-tool mappings, see the Tool Guide.

Install

Run the stdio MCP server from npm:

npx -y @pkistudio/pkistudiomcp

Run the Streamable HTTP MCP server from npm:

npx -y --package @pkistudio/pkistudiomcp pkistudiomcp-http

Package commands:

  • pkistudiomcp: stdio MCP server.

  • pkistudiomcp-http: Streamable HTTP MCP server.

MCP Client Quick Start

VS Code / GitHub Copilot .vscode/mcp.json:

{
  "servers": {
    "pkistudio": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@pkistudio/pkistudiomcp"]
    }
  }
}

Claude Desktop configuration:

{
  "mcpServers": {
    "pkistudio": {
      "command": "npx",
      "args": ["-y", "@pkistudio/pkistudiomcp"]
    }
  }
}

After configuring your client, try one of the prompts in What Can I Ask?. For client-specific details, see MCP Client Configuration.

Docker

Run the published Docker image:

docker run --rm -p 3000:3000 pkistudio/pkistudiomcp:latest

The Docker image starts the Streamable HTTP server by default. The MCP endpoint is http://127.0.0.1:3000/mcp, and health checks are available at http://127.0.0.1:3000/healthz and http://127.0.0.1:3000/readyz.

Pin a release version when reproducibility matters:

docker run --rm -p 3000:3000 pkistudio/pkistudiomcp:0.7.2

For HTTP deployment controls, see HTTP Deployment and Security Notes.

Development

Run local checks with:

npm install
npm run check
npm run test

Run the stdio server locally:

npm start

Run the HTTP server locally:

npm run start:http

For package or release-related changes, also run:

npm pack --dry-run

For standard checks, MCP smoke coverage, package preview, local Wiki clone conventions, and release workflow notes, see Testing and Development.

PKI Studio Family Dependencies

PKI Studio MCP imports the published PKI Studio family npm packages rather than vendoring their source:

  • @pkistudio/pkistudiojs

  • @pkistudio/certgadgets

  • @pkistudio/pvkgadgets

  • @pkistudio/asn1instancebuilder

  • @pkistudio/asn1defsifter

Keep these dependencies aligned with the latest compatible PKI Studio family releases when updating MCP tool coverage or documentation.

License

PKI Studio MCP is licensed under the MIT License. See LICENSE.

Available Tools

28 tools
asn1_node_valueASN.1 Node ValueB

Return the decoded display value and raw value bytes for one parsed ASN.1 node.

Inputs: data (required), nodeId (required), format, encoding.

certificate_matches_keyCertificate Matches KeyB

Check whether an X.509 certificate public key matches supplied public key bytes or a PKCS#8 private key.

Inputs: certificate (required), certificateFormat, privateKey, privateKeyFormat, +3 more.

create_asn1_instanceCreate ASN.1 InstanceB

Build DER bytes from JSON instance input and a selected type in a supported ASN.1 definition subset or Schema Model JSON.

Inputs: typeName (required), input (required), definition, schema, +2 more.

create_csrCreate CSRA

Create a PKCS#10 certificate signing request from a PKCS#8 private key, SPKI public key, and subject DN.

Inputs: privateKey (required), publicKey (required), subjectDn (required), privateKeyFormat, +3 more.

create_self_signed_certificateCreate Self-Signed CertificateB

Create a self-signed X.509 certificate from a PKCS#8 private key, SPKI public key, and subject DN.

Inputs: privateKey (required), publicKey (required), subjectDn (required), privateKeyFormat, +5 more.

decode_oid_valueDecode OID ValueB

Decode ASN.1 OBJECT IDENTIFIER value bytes into dotted object identifier text.

Inputs: value (required), encoding.

describe_nodeDescribe ASN.1 NodeC

Describe a parsed ASN.1 node by node id.

Inputs: data (required), nodeId (required), format, includeRawValue, +2 more.

encode_oidEncode OIDA

Encode an object identifier string into ASN.1 OBJECT IDENTIFIER value bytes.

Inputs: oid (required).

extract_asn1_nodeExtract ASN.1 NodeB

Extract a parsed ASN.1 node and its subtree by node id as DER bytes.

Inputs: data (required), nodeId (required), format, encoding.

fetch_certificate_network_resourcesFetch Certificate Network ResourcesA

Fetch HTTP(S) CDP/AIA/OCSP-related resources discovered in an X.509 certificate. Parsing itself is local; this tool performs external network access.

Inputs: data (required), format, sourceName, resourceKinds, +5 more.

generate_key_pairGenerate Key PairA

Generate a key pair and return the private key as PKCS#8 DER and public key as SPKI DER.

Inputs: algorithm (required), label, encoding.

list_asn1_builder_featuresList ASN.1 Builder FeaturesA

List the supported ASN.1 Instance Builder subset, JSON input shapes, and known limitations.

Inputs: no named parameters.

list_asn1_definition_sifter_featuresList ASN.1 Definition Sifter FeaturesA

List ASN.1 Definition Sifter tool scope, PKI profiles, and candidate report options.

Inputs: no named parameters.

list_supported_key_algorithmsList Supported Key AlgorithmsA

List WebCrypto key pair algorithms supported by this runtime for key generation.

Inputs: no named parameters.

normalize_asn1_inputNormalize ASN.1 InputA

Decode DER, BER, PEM, HEX, or base64 input and return round-trip re-encoded ASN.1 bytes.

Inputs: data (required), format, encoding.

parse_asn1Parse ASN.1A

Parse ASN.1 DER, BER, PEM, HEX, or base64 text and return a JSON tree.

Inputs: data (required), format, maxDepth, includeRawValue, +2 more.

parse_asn1_definitionParse ASN.1 DefinitionB

Parse a supported ASN.1 definition subset into ASN.1 Instance Builder Schema Model JSON and return defined type names.

Inputs: definition (required).

parse_certificateParse CertificateA

Parse an X.509 certificate with CertGadgets and return its structure, details, and CDP/AIA/OCSP resource plans without network access.

Inputs: data (required), format, sourceName, maxDepth, +2 more.

read_pkcs12Read PKCS#12A

Read PKCS#12/PFX data and return contained private keys, public keys, and certificates.

Inputs: data (required), password (required), format, sourceName, +1 more.

recognize_key_materialRecognize Key MaterialA

Recognize a PKCS#8 private key or SPKI public key and return its key family, label, and capabilities.

Inputs: data (required), kind (required), format.

resolve_oidResolve OIDB

Resolve an object identifier using the OID names bundled with PkiStudioJS.

Inputs: oid (required).

sift_asn1_definition_candidatesSift ASN.1 Definition CandidatesA

Rank ASN.1 definition candidates for ASN.1 data using custom ASN.1 definitions or the built-in PKI component corpus.

Inputs: data (required), format, definition, definitions, +9 more.

sift_pki_asn1_definition_candidatesSift PKI ASN.1 Definition CandidatesB

Rank PKI ASN.1 definition candidates using the built-in ASN.1 Definition Sifter PKI corpus and optional profile filters.

Inputs: data (required), format, profiles, maxResults, +8 more.

summarize_asn1Summarize ASN.1A

Parse ASN.1 input and return a compact summary of tags, OIDs, and top-level nodes.

Inputs: data (required), format, maxTopLevelNodes.

validate_asn1_instanceValidate ASN.1 InstanceC

Validate JSON instance input against a selected type in a supported ASN.1 definition subset or Schema Model JSON.

Inputs: typeName (required), input (required), definition, schema.

validate_asn1_schemaValidate ASN.1 SchemaB

Validate a supported ASN.1 definition subset or ASN.1 Instance Builder Schema Model JSON and return schema diagnostics.

Inputs: definition, schema.

verify_key_pairVerify Key PairA

Verify that a PKCS#8 private key matches an SPKI public key by signing and verifying sample data.

Inputs: privateKey (required), publicKey (required), privateKeyFormat, publicKeyFormat.

write_pkcs12Write PKCS#12B

Create PKCS#12/PFX data from one or more private keys and optional X.509 certificates.

Inputs: keys (required), password (required), encoding.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 28 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose within PKI operations, from ASN.1 parsing and building to certificate creation, key management, and OID resolution. Even closely related tools like sift_asn1_definition_candidates and sift_pki_asn1_definition_candidates are differentiated by scope (general vs. PKI-specific).

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern (e.g., create_asn1_instance, decode_oid_value, generate_key_pair). No mixing of conventions or vague verbs.

    Tool Count4/5

    With 28 tools, the count is on the higher side but still justified by the broad PKI domain covering ASN.1, certificates, keys, OIDs, and PKCS#12. Each tool earns its place, though a few could potentially be consolidated.

    Completeness5/5

    The tool set comprehensively covers core PKI workflows: key generation, certificate creation (CSR, self-signed), parsing (certificates, ASN.1), validation, OID handling, PKCS#12 support, and network resource fetching. No obvious gaps for a PKI studio.

    Maintenance

    ActivityInactive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that lets AI assistants read and visually analyze local documents — PDFs, Excel spreadsheets, CSV files, Word documents, PowerPoint presentations, and images.
      4
      57 npm
      75 PyPI
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that exposes TShark as tools for AI-assisted network packet analysis, supporting PCAP analysis, live capture, TLS decryption, and telecom/SS7 signaling protocols.
      25
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server for Evertrust Stream, a PKI platform, allowing LLM clients to manage certificate authorities, issue/revoke X.509 and SSH certificates, and operate PKI infrastructure through natural language.
      65 npm
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides AI clients with 26 security and developer tools, enabling tasks like JWT decoding, HTTP header analysis, and phishing URL inspection.
      -