npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

chinamedscheck-cli

v1.0.0

Published

Official CLI & MCP client for ChinaMedsCheck (chinamedscheck.com): GACC Decree 442 medication legality, CAAC sharps limits & 4 airport Red Channel desks.

Readme

chinamedscheck-cli

Official zero-dependency terminal CLI and Model Context Protocol (MCP) client for ChinaMedsCheck (chinamedscheck.com). Connects directly to the stateless production MCP server (https://chinamedscheck.com/api/mcp) covering 38 regulated medications under China Customs GACC Decree 442, CAAC aviation sharps/cold-chain carry-on rules, 4 flagship airport Red Channel desks (PVG, PEK, CAN, PKX), and bilingual Simplified Mandarin pharmacist cards.

Quick CLI Commands

# List all 8 read-only MCP tools
npx -y [email protected] tools

# Run live Concerta 7-day cap & Red-Channel allowance calculation
npx -y [email protected] demo

# Screen Adderall or query PVG T2 airport Red-Channel desk
npx -y [email protected] call screen_medication_gacc_customs_legality '{"medicationQuery":"Adderall"}'

Available MCP Tools (8 Read-Only)

| Tool Name | Purpose & Deterministic Engine | Key Parameters | Safety | | :--- | :--- | :--- | :---: | | screen_medication_gacc_customs_legality | Match prescription brands, active ingredients, CAS numbers, RxNorm CUIs, Chinese names, or Russian/Japanese/Korean/Vietnamese aliases against 38 | medicationQuery, statusFilter | readOnly | | calculate_medication_supply_allowance | Compute whether carried medication quantities fall within legal Class I psychotropic (7-day), Class II (15-day), or maintenance prescription (90- | medicationQuery, carriedSupplyDays, stayDurationDays | readOnly | | evaluate_caac_cabin_sharps_and_cold_chain | Inspect Civil Aviation Administration of China cabin rules for insulin pens, EpiPen auto-injectors, medical needles, refrigerated cold packs, and | medicationQuery, filterMode | readOnly | | generate_bilingual_china_pharmacy_card | Produce printable simplified Mandarin doctor/pharmacist consultation notes, Pinyin pronunciation, domestic brand equivalents, and customs officer | medicationQuery, passengerName, daysOfSupply | readOnly | | check_china_hospital_refill_and_clinic_pathway | Determine if a foreign prescription can be legally re-prescribed inside Chinese Tier-3 hospitals or expat clinics, listing required department sp | medicationQuery* | readOnly | | audit_multi_medication_travel_bag_manifest | Evaluate an entire packed toiletry or travel bag containing multiple medications simultaneously to pinpoint any single banned trigger, aggregate | bagItems, stayDurationDays | readOnly | | query_airport_red_channel_meds_walkthrough | Look up customs pre-inspection CT lock procedures, exact Red Channel declaration counters, operating hours, and arrival baggage steps across PVG, | airportQuery, locale | readOnly | | lookup_therapeutic_substitute_mesh | Traverse the curated 38-drug therapeutic similarity graph to surface legal Chinese-approved substitutes and side-by-side risk comparisons when a | medicationQuery* | readOnly |

Live Production Sample Output

{
  "sourceEngine": "components/tools/AllowanceCalculatorWidget.tsx (GACC Decree 442)",
  "matchedMedication": {
    "slug": "ritalin-concerta-in-china",
    "brandNames": [
      "Ritalin",
      "Concerta",
      "Medikinet",
      "Daytrana",
      "Equasym"
    ],
    "genericName": "Methylphenidate",
    "chineseName": "哌甲酯 (利他林 / 专注达)",
    "status": "YELLOW",
    "officialUrl": "https://chinamedscheck.com/drugs/ritalin-concerta-in-china"
  },
  "classification": "CONTROLLED_CAT1",
  "verdict": "COMPLIANT",
  "recommendedChannel": "RED_CHANNEL",
  "statutoryMaxDays": 7,
  "carriedSupplyDays": 7,
  "stayDurationDays": 14,
  "compliant": true,
  "needsLocalRefill": true,
  "summary": "Within Class I Psychotropic 7-day cap; MUST declare at Customs Red Channel with stamped clinic prescription & diagnosis.",
  "localAlternative": "Prescriptions can be refilled in major Chinese cities (Beijing, Shanghai, Guangzhou, Shenzhen, Chengdu) by visiting the psychiatric outpatient department of a Tier-3 public hospital or an accredited international hospital (e.g., Jiahui Health, United Family Healthcare).",
  "calculatorUrl": "https://chinamedscheck.com/calculator"
}

Connect in Claude Desktop / Cursor / Windsurf

{
  "mcpServers": {
    "chinamedscheck": {
      "type": "streamable-http",
      "url": "https://chinamedscheck.com/api/mcp"
    }
  }
}

Statutory Compliance & Border Check Tables

GACC Decree 442 Medication Border Classification Matrix

| Border Status | Statutory Substance Category | Maximum Carry-In Allowance | Mandatory Arrival Channel & Compliance Rule | | :--- | :--- | :---: | :--- | | RED (Prohibited) | Amphetamine (Adderall), THC / CBD oil, Oxycodone, Fentanyl | 0 days (Banned) | Strictly forbidden: zero foreign prescription exemption (PRC Criminal Law Art. 347 & 357) | | YELLOW (Class I Psychotropic) | Methylphenidate (Concerta / Ritalin), Modafinil | <= 7 days | Mandatory Red Channel: original pharmacy bottle + stamped clinic diagnosis | | YELLOW (Class II / Controlled) | Alprazolam (Xanax), Zolpidem (Ambien), Diazepam | <= 15 days | Mandatory Red Channel: signed prescription + round-trip itinerary | | GREEN (Maintenance / OTC) | Metformin, Ozempic, Ibuprofen, Loratadine | <= 90 days | Green Channel: personal-use dosage in original sealed blister/box |

Airport Red Channel & Automated CT Pre-Screen Lock Walkthrough (PVG, PEK, CAN, PKX)

| Arrival Port | IATA | Customs Declaration Counter Location | Inspection Mechanism & Electronic Seal Rule | | :--- | :---: | :--- | :--- | | Shanghai Pudong (T2) | PVG | 1F Baggage Claim Exit Red Channel Desk | High-speed Pre-Arrival CT scan places yellow electronic lock on flagged luggage | | Beijing Capital (T3) | PEK | T3-E Arrivals Hall Customs Declaration Desk | Dual baggage X-ray + physical prescription/hospital letter check | | Guangzhou Baiyun (T2) | CAN | T2 International Arrivals Customs Desk | Strict cold-chain & pseudoephedrine screening for Southern entries | | Beijing Daxing | PKX | 1F International Arrivals Customs Channel | Direct red/green channel segregation beside NIA biometric gates |

CAAC Aviation Security & Local Hospital Substitute Reference

| Medication / Equipment | CAAC Cabin / Checked Rule | Legal In-China Refill Pathway | | :--- | :--- | :--- | | Insulin Pens & Cold Chain | Carry-on permitted with doctor certificate & medical cooling case | Tier-3 public hospitals & international clinics refill standard insulins | | ADHD (Adderall Blocked) | Banned on all incoming PRC flights | Transition to Concerta (红处方 Class I) or non-stimulant Strattera (择思达) | | Benzodiazepines (Xanax) | Carry in original labeled vial inside cabin carry-on | Hospital psychiatry/sleep clinic short-term prescription matching passport ID |

Official Web Tools & Medication Guides

Source & License

  • GitHub MCP Repository: https://github.com/AbigailDavised/chinamedscheck-mcp
  • License: MIT © ChinaMedsCheck