mcpField
C
Chestnyi Znak MCP Server

Chestnyi Znak MCP Server

Local
github.com/woyaxniniBusiness & Marketing3Updated 28w ago

About Chestnyi Znak MCP Server

Chestnyi Znak MCP Server gives AI assistants access to Russia’s product-marking True API. It is for teams checking marking codes, documents, and stock, and provides 10 query tools using a JWT token for either production or sandbox access.

Key features

  1. 01List documents and view document details
  2. 02Find codes included in documents
  3. 03Search marking codes by criteria
  4. 04Look up products and participant status
  5. 05Check code and warehouse balances
  6. 06List withdrawal receipts by product group

Use cases

  1. 01Verify marking codes and related documents
  2. 02Review stock for a product group
  3. 03Look up product information by GTIN
  4. 04Check a company’s registration status

MCP support

The MCP server exposes 10 Chestnyi Znak query tools to AI clients for documents, marking codes, products, balances, and participant data. Access requires a configured Chestnyi Znak JWT token and production or sandbox environment.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"woyaxnini-chestnyi-znak": {
"command": "npx",
"args": [
"-y",
"@woyax/mcp-chestnyi-znak"
],
"env": {
"CHZ_TOKEN": "<CHZ_TOKEN>"
}
}
}
}
Run commandnpx -y @woyax/mcp-chestnyi-znak
Environment variables to set
CHZ_TOKENSecretChestnyi Znak API token. Obtain in your personal cabinet at markirovka.crpt.ru. IMPORTANT: token expires every 8–10 hours and must be refreshed.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@woyax/mcp-chestnyi-znak0.1.1

Tools

10

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
pgstringYesProduct group code, e.g. "books", "milk", "shoes"
limitintegerNoNumber of records to return (1–1000)

Details

From the project README

@woyax/mcp-chestnyi-znak

License: MIT + Commons Clause

MCP server for Chestnyi Znak (Честный Знак) — Russia's national product labelling system (True API).

Enables AI assistants (Claude, Cursor, etc.) to query marking codes, documents, warehouse balances, and participant data directly via natural language.

First MCP server for Chestnyi Znak True API.


Tools (10 total)

Documents & Marking Codes
ToolDescription
chz_doc_listList documents for a product group
chz_doc_infoGet details of a specific document by ID
chz_doc_cis_listList marking codes included in a document
chz_cis_searchSearch marking codes by filter criteria
chz_cis_infoGet public info for a list of CIS codes
chz_product_infoGet product card by GTIN
Balance & Reference
ToolDescription
chz_balance_allBalance of marking codes across all product groups
chz_warehouse_balanceVirtual warehouse balance for a product group
chz_participant_checkCheck company registration status by INN
chz_receipt_listList withdrawal receipts for a product group

Development of new tools is ongoing.


Getting a Token

This server requires a JWT token from your Chestnyi Znak personal account. Token acquisition involves GOST cryptography (КриптоПро + УКЭП) and is outside the scope of this package.

Token retrieval can be automated — using a local КриптоПро script, a signing microservice, USB-over-IP with a hardware token, or a cloud HSM. It can also be done manually via the Chestnyi Znak web interface. The right approach depends on your infrastructure, OS, certificate type, and security requirements. Because the options and constraints vary significantly from case to case, this is treated as a separate integration task. We handle this kind of setup as well — feel free to reach out.

Token lifetime: ~8–12 hours. Update the file when it expires — the server picks it up automatically without restart.


Installation & Configuration

Claude Desktop

Add to your claude_desktop_config.json:

Sandbox:

{
  "mcpServers": {
    "chestnyi-znak": {
      "command": "npx",
      "args": ["-y", "@woyax/mcp-chestnyi-znak"],
      "env": {
        "CHZ_TOKEN_FILE": "/path/to/your/token",
        "CHZ_ENV": "sandbox"
      }
    }
  }
}

Production:

{
  "mcpServers": {
    "chestnyi-znak": {
      "command": "npx",
      "args": ["-y", "@woyax/mcp-chestnyi-znak"],
      "env": {
        "CHZ_TOKEN_FILE": "/path/to/your/token"
      }
    }
  }
}

CHZ_ENV defaults to "prod" if not set.

Important: the token file and the CHZ_ENV value must match — a sandbox token won't work on the production endpoint and vice versa.


Environment Variables

VariableRequiredDefaultDescription
CHZ_TOKEN_FILEYes—Absolute path to file containing the JWT token
CHZ_ENVNoprodContour: sandbox or prod

Author & Support

Built by Oleg Alekseev — ERP/AI integration architect.

Need help integrating AI agents with your ERP, CRM, or Chestnyi Znak? Custom MCP servers, n8n workflows, AI automation — contact me.


License

MIT + Commons Clause © Oleg Alekseev

Free to use for personal and corporate purposes. Selling as a hosted service requires author's permission. See LICENSE for details.

Comments

Markdown supported

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.