io.github.OSSNokalva/asn1-mcp is an MCP server published by io.github.OSSNokalva, hosted at asn1.io. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 4 tools, including encode_asn1_data, decode_asn1_data, compile_asn1_schema, validate_asn1_schema.
ASN.1 tools. Validate, compile ASN.1 schema, encode and decode ASN.1 data.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Encodes an ASN.1 value string into hex or base64 encoded binary data according to the provided schema definition, ASN.1 type name, and encoding rule (DER by default).
| Parameter | Type | Description |
|---|---|---|
| codec | string | The ASN.1 encoding rule to use for encoding. Valid options include 'DER', 'BER', 'PER', 'UPER' or 'CUPER', 'OER' or 'COER', 'JER', 'XML or 'XER' or 'EXER'. Defaults to 'DER'. |
| value * | string | The ASN.1 value string to be encoded (e.g., in ASN.1 value notation). |
| userId | string | The user's email address to look up the asn1.io user account. If unknown, pass an empty string. |
| fileName | string | The name of the schema file. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'. |
| typeName * | string |
None yet. Changes appear after a server's second daily check.
| The ASN.1 type name (PDU) to encode (e.g., 'Rocket'). |
| dataFormat | string | Desired format of the output encoded data: 'hex' or 'base64'. Defaults to 'hex'. |
| schemaContent * | string | Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'. |
{
"name": "encode_asn1_data",
"description": "Encodes an ASN.1 value string into hex or base64 encoded binary data according to the provided schema definition, ASN.1 type name, and encoding rule (DER by default).",
"inputSchema": {
"type": "object",
"required": [
"schemaContent",
"typeName",
"value"
],
"properties": {
"codec": {
"type": "string",
"default": "DER",
"description": "The ASN.1 encoding rule to use for encoding. Valid options include 'DER', 'BER', 'PER', 'UPER' or 'CUPER', 'OER' or 'COER', 'JER', 'XML or 'XER' or 'EXER'. Defaults to 'DER'."
},
"value": {
"type": "string",
"description": "The ASN.1 value string to be encoded (e.g., in ASN.1 value notation)."
},
"userId": {
"type": "string",
"default": "",
"description": "The user's email address to look up the asn1.io user account. If unknown, pass an empty string."
},
"fileName": {
"type": "string",
"default": "schema.asn",
"description": "The name of the schema file. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'."
},
"typeName": {
"type": "string",
"description": "The ASN.1 type name (PDU) to encode (e.g., 'Rocket')."
},
"dataFormat": {
"type": "string",
"default": "hex",
"description": "Desired format of the output encoded data: 'hex' or 'base64'. Defaults to 'hex'."
},
"schemaContent": {
"type": "string",
"description": "Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'."
}
}
}
}Decodes hex or base64 encoded ASN.1 binary data into a decoded ASN.1 value string according to the provided schema definition, ASN.1 type name, and encoding rule (DER by default).
| Parameter | Type | Description |
|---|---|---|
| data * | string | Hex or base64 encoded binary data string to be decoded. |
| codec | string | The ASN.1 encoding rule used to encode the data. Valid options include 'DER', 'BER', 'PER', 'UPER' or 'CUPER', 'OER' or 'COER', 'JER', 'XML or 'XER' or 'EXER'. Defaults to 'DER'. |
| userId | string | The user's email address to look up the asn1.io user account. If unknown, pass an empty string. |
| fileName | string | The name of the schema file. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'. |
| typeName * | string | The ASN.1 type name (PDU) to decode into (e.g., 'Rocket'). |
| dataFormat | string | Format of the input encoded data string: 'hex' or 'base64'. Defaults to 'hex'. |
| schemaContent * | string | Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'. |
{
"name": "decode_asn1_data",
"description": "Decodes hex or base64 encoded ASN.1 binary data into a decoded ASN.1 value string according to the provided schema definition, ASN.1 type name, and encoding rule (DER by default).",
"inputSchema": {
"type": "object",
"required": [
"schemaContent",
"typeName",
"data"
],
"properties": {
"data": {
"type": "string",
"description": "Hex or base64 encoded binary data string to be decoded."
},
"codec": {
"type": "string",
"default": "DER",
"description": "The ASN.1 encoding rule used to encode the data. Valid options include 'DER', 'BER', 'PER', 'UPER' or 'CUPER', 'OER' or 'COER', 'JER', 'XML or 'XER' or 'EXER'. Defaults to 'DER'."
},
"userId": {
"type": "string",
"default": "",
"description": "The user's email address to look up the asn1.io user account. If unknown, pass an empty string."
},
"fileName": {
"type": "string",
"default": "schema.asn",
"description": "The name of the schema file. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'."
},
"typeName": {
"type": "string",
"description": "The ASN.1 type name (PDU) to decode into (e.g., 'Rocket')."
},
"dataFormat": {
"type": "string",
"default": "hex",
"description": "Format of the input encoded data string: 'hex' or 'base64'. Defaults to 'hex'."
},
"schemaContent": {
"type": "string",
"description": "Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'."
}
}
}
}Compiles ASN.1 schema definitions into executable source code. Use this tool whenever a user asks to generate code, compile an ASN.1 schema, or create a codec (e.g., DER, PER, UPER, BER) for a specific programming language. The tool returns the compilation status, error messages, and files containing the generated source code.
| Parameter | Type | Description |
|---|---|---|
| codec | string | The ASN.1 encoding rules to support in the generated code. Valid options include 'uper', 'per', 'der', 'ber', or 'oer'. If the user does not specify a codec, default to 'der'. |
| userId | string | The user's email address to look up the asn1.io user account. If the user's identity is unknown, pass an empty string. |
| fileName | string | The name of the schema file being compiled. This should end in '.asn' (e.g., 'Rocket.asn'). If the user does not provide a filename, invent a logical one based on the schema's main module name. It is used for errors to reference a specific location in the schema . |
| schemaContent | string | Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'. |
| targetLanguage | string | The target programming language for the generated code. Allowed values include 'python' and ‘rust’. Infer this from the user's prompt. If not specified, ask the user before calling the tool. |
{
"name": "compile_asn1_schema",
"description": "Compiles ASN.1 schema definitions into executable source code. Use this tool whenever a user asks to generate code, compile an ASN.1 schema, or create a codec (e.g., DER, PER, UPER, BER) for a specific programming language. The tool returns the compilation status, error messages, and files containing the generated source code.",
"inputSchema": {
"type": "object",
"properties": {
"codec": {
"type": "string",
"default": "der",
"description": "The ASN.1 encoding rules to support in the generated code. Valid options include 'uper', 'per', 'der', 'ber', or 'oer'. If the user does not specify a codec, default to 'der'."
},
"userId": {
"type": "string",
"default": "",
"description": "The user's email address to look up the asn1.io user account. If the user's identity is unknown, pass an empty string."
},
"fileName": {
"type": "string",
"default": "schema.asn",
"description": "The name of the schema file being compiled. This should end in '.asn' (e.g., 'Rocket.asn'). If the user does not provide a filename, invent a logical one based on the schema's main module name. It is used for errors to reference a specific location in the schema ."
},
"schemaContent": {
"type": "string",
"default": "",
"description": "Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'."
},
"targetLanguage": {
"type": "string",
"default": "python",
"description": "The target programming language for the generated code. Allowed values include 'python' and ‘rust’. Infer this from the user's prompt. If not specified, ask the user before calling the tool."
}
}
}
}Validates ASN.1 schema definitions syntax and semantics. Use this tool whenever a user asks to validate, check, or verify an ASN.1 schema without generating source code. The tool returns a list of messages (informational, warnings, and errors).
| Parameter | Type | Description |
|---|---|---|
| fileName | string | The name of the schema file being validated. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'. It is used for errors to reference a specific location in the schema. |
| schemaContent | string | Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'. |
{
"name": "validate_asn1_schema",
"description": "Validates ASN.1 schema definitions syntax and semantics. Use this tool whenever a user asks to validate, check, or verify an ASN.1 schema without generating source code. The tool returns a list of messages (informational, warnings, and errors).",
"inputSchema": {
"type": "object",
"properties": {
"fileName": {
"type": "string",
"default": "schema.asn",
"description": "The name of the schema file being validated. This should end in '.asn' (e.g., 'Rocket.asn'). If not provided, defaults to 'schema.asn'. It is used for errors to reference a specific location in the schema."
},
"schemaContent": {
"type": "string",
"default": "",
"description": "Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'."
}
}
}
}Names, descriptions and schemas were written by the server and are shown as data.