# htsapi.dev > An MCP server and REST API that give an importer's own AI agent what a customs classifier reads: the US tariff schedule with its legal notes and the General Rules of Interpretation, CBP rulings with their status, what CBP's rulings quote and decide on a heading, and what importers paid on a code (US Census). The agent classifies; the importer decides. Guidance from public sources, not legal advice or a binding ruling. ## Connect - MCP server (Streamable HTTP): https://htsapi.dev/mcp. The read tools work without a key. - REST API: https://htsapi.dev/v1, key in the X-API-Key header. Reference: https://htsapi.dev/docs - How to connect Claude, Claude Code, Cursor and other clients: https://htsapi.dev/developer-guide ## MCP tools - lookup_hts_code: the schedule one level at a time (sections, a chapter's headings, a heading's subheadings, a line's rates and rulings) - get_notes: a code's section and chapter notes; without a code, the General Rules of Interpretation - heading_scope: what CBP's rulings quote and decide on a heading (fragments, mostly from the WCO Explanatory Notes, with the rulings and what CBP concluded); give the product to rank what decides for it first - search_rulings: CBP rulings for a product described in plain words, with status - rulings_under_code: every ruling under a code, and rulings CBP revoked off it with where the goods went - get_ruling: one ruling's full text, status, what revoked or modified it, and what it cites - importers_paid: what importers from a country paid on a code in the latest 3 Census months (history, not the duty owed; anti-dumping and countervailing duties not included) - classify_product: our own classifier's suggestion, a second opinion (needs a key, 1 credit) - Prompt classification_file: the method and the sections of a broker's classification file ## Pages - What it is and the price: https://htsapi.dev/ - The method, and why sources rather than a code (CBP rulings HQ H350722, HQ 114654): https://htsapi.dev/method - What's inside, counts, freshness and what is missing: https://htsapi.dev/corpus - How well it works (measured on 54 CBP cases): https://htsapi.dev/classification-accuracy - Section 301 tariffs on goods from China, how to check a code: https://htsapi.dev/section-301-tariffs ## Contact hello@htsapi.dev