MXIK codes (Uzbekistan)

السجل الرسمي البحث والويب

Search MXIK (IKPU) product codes of Uzbekistan on tasnif.soliq.uz. Unofficial.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package mxik-mcp
Claude Code
claude mcp add mxik-codes-uzbekistan -- npx -y mxik-mcp@0.1.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "mxik-codes-uzbekistan": {
            "command": "npx",
            "args": [
                "-y",
                "mxik-mcp@0.1.1"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. mxik
  2. Install
  3. Quick start
  4. API
  5. Options
  6. Cache
  7. Errors
  8. CLI
  9. MCP server
  10. Good to know
  11. Migrating from 1.1
  12. License

mxik

Unofficial typed JavaScript client for tasnif.soliq.uz, the national catalogue of goods and services of Uzbekistan. Find MXIK (IKPU) codes by keyword, barcode, brand or certificate number.

Not affiliated with the Tax Committee of Uzbekistan or tasnif.soliq.uz.

  • Zero dependencies, about 4 kB gzipped
  • ESM and CommonJS, runs in Node 20+, Bun, Deno, browsers and edge runtimes
  • Returns plain data instead of raw API envelopes, with pagination, language selection, timeouts and AbortSignal
  • Optional cache, in memory or your own implementation (Redis, KV)

Documentation · API reference · Changelog

Install

npm i mxik

Quick start

import { createMxik } from 'mxik'

const mxik = createMxik()

const { items } = await mxik.search('кофе')
console.log(items[0].mxikCode, items[0].name)

API

MethodReturnsDescription
search(query, options?)Page<SearchItem>Full-text search over the catalog
get(code, options?)`MxikDetails \null`Full card of a code, null if not found
filter(filters, options?)Page<CatalogItem>Search by text, brand, code, barcode
dvCert(number, options?)Page<CatalogItem>Codes linked to a certificate number
card(code, options?)`MxikCard \null`Card with barcode, tax benefit and packages
searchSubpositions(query)Page<CatalogItem>Search by product type, without a brand
children(code?, options?)Page<CatalogNode>Next level of the catalog tree
childrenAll(code?, options?)AsyncGenerator<CatalogNode>Every child, pages fetched lazily
stats(), units(), taxBenefits()CatalogStats, Unit[], TaxBenefit[]Reference data
searchAll(query, options?)AsyncGenerator<SearchItem>Every search result, pages fetched lazily
filterAll(filters, options?)AsyncGenerator<CatalogItem>Every filter result, pages fetched lazily
cache.clear()Promise<void>Drop cached results
// Pagination and language, per request or as client defaults
const page = await mxik.search('кофе', { page: 2, size: 50, lang: 'uz' })
page.items
page.total
page.hasNext

// A single code
const details = await mxik.get('00406001001232001')

// By fields
await mxik.filter({ brand: 'Samsung' })
await mxik.filter({ barcode: '6934177746536' })

// All results
for await (const item of mxik.filterAll({ brand: 'Xiaomi' }))
  console.log(item.mxikCode)

Also exported: isMxikCode(value) to validate the 17-digit format, and every type (SearchItem, CatalogItem, MxikDetails, Page, Filters and others).

Options

const mxik = createMxik({
  lang: 'ru', // 'ru' | 'uz'
  pageSize: 20,
  timeout: 10_000, // ms, 0 disables it
  cache: false, // true, or a cache implementation
  baseURL: 'https://tasnif.soliq.uz/api/cls-api',
  fetch: globalThis.fetch,
  headers: {},
})

All options are optional, the values above are the defaults.

Cache

Off by default. The catalog changes rarely, so caching saves a lot of requests.

import { createMemoryCache, createMxik } from 'mxik'

createMxik({ cache: true }) // in memory, 1 hour TTL, 500 entries
createMxik({ cache: createMemoryCache({ ttl: 10 * 60 * 1000, max: 2000 }) })
createMxik({ cache: new Map() }) // any MxikCache: get, set, delete, clear

Successful results and "not found" are cached, errors are not. See Cache for a Redis example.

Errors

What happenedWhat you get
HTTP error, non-JSON body, success: falseMxikError (status, reason)
Code not found in get()null
Nothing matchedEmpty page
Timeout or aborted signalTimeoutError or AbortError
Network failureTypeError from fetch
import { MxikError } from 'mxik'

try {
  await mxik.search('кофе')
}
catch (error) {
  if (error instanceof MxikError)
    console.log(error.status, error.reason)
}

CLI

npx mxik search кофе
npx mxik filter --barcode 6934177746536
npx mxik card 00901001001048023 --json

See CLI for all commands.

MCP server

mxik-mcp lets Claude, Cursor and other AI assistants search codes:

claude mcp add mxik -- npx -y mxik-mcp

See MCP server for other clients.

Good to know

  • It uses the public API behind tasnif.soliq.uz, which isn't documented and may change.
  • The API may not respond to servers outside Uzbekistan. Check connectivity before deploying, or use a proxy via baseURL.

Migrating from 1.1

MxikClient, createMxikClient() and fetchBy* still work but are deprecated and will be removed in 2.0. See the migration guide.

License

MIT

الأسئلة الشائعة

ما هو MXIK codes (Uzbekistan)؟

Search MXIK (IKPU) product codes of Uzbekistan on tasnif.soliq.uz. Unofficial.

كيف أثبّت MXIK codes (Uzbekistan)؟

يعمل على جهازك. في Claude Code: claude mcp add mxik-codes-uzbekistan -- npx -y mxik-mcp@0.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج MXIK codes (Uzbekistan) إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل MXIK codes (Uzbekistan) مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون MXIK codes (Uzbekistan)؟

ينشره azabroflovski. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.