chinakit-cli
v1.0.0
Published
Official CLI & MCP client for ChinaKit (chinakit.io): work permit points, customs medication checker, expat IIT calculator, 240h TWOV transit, Hague Apostille & CAAC powerbank limits.
Maintainers
Readme
chinakit-cli
Official zero-dependency terminal CLI and Model Context Protocol (MCP) client for ChinaKit (chinakit.io). Connects directly to the stateless production MCP server (https://chinakit.io/api/mcp) covering China work-permit points, border medication legality, expatriate IIT taxation, 240h TWOV transit rules, Hague Apostille workflows, CAAC powerbank compliance, and 331 verified city/attraction guides.
Quick CLI Commands
# List all 8 read-only MCP tools
npx -y [email protected] tools
# Run a live CAAC cabin watt-hour & Alipay ¥200 split simulation
npx -y [email protected] demo
# Invoke any tool with JSON arguments
npx -y [email protected] call check_china_customs_medication_legality '{"medicationQuery":"Adderall"}'Available MCP Tools (8 Read-Only)
| Tool Name | Purpose & Deterministic Engine | Key Parameters | Safety |
| :--- | :--- | :--- | :---: |
| calculate_china_work_permit_points | Score an applicant under the China SAFIEA work permit rubric (Category A >=85, Category B >=60, Category C <60), detect 6x local average wage or | age, education, topUniversityGrad, workExperienceYears* (+9 more) | readOnly |
| check_china_customs_medication_legality | Screen personal prescription drugs and over-the-counter remedies by English brand, generic ingredient, or Chinese alias against China Customs Cla | medicationQuery, categoryFilter | readOnly |
| calculate_china_expat_iit_and_bonus | Simulate annual expatriate individual income tax liability in Mainland China comparing Seven Tax-Exempt Allowances (housing, schooling, home leav | monthlyGrossSalary, annualBonusRMB, bonusTaxTreatment, citySocialSecurityScheme (+8 more) | readOnly |
| validate_china_transit_and_visa_free_entry | Inspect unilateral 15/30-day visa-waiver eligibility or 54-nation Transit Without Visa (TWOV) admissibility, verify A-B-C third-region flight com | nationality, originCountry, transitPortCode, destinationCountry* (+5 more) | readOnly |
| query_china_document_apostille_steps | Retrieve country-specific legalization workflows for background checks, diplomas, TEFL, and marriage certificates used in China visa filings, fla | countryIso, docTypeId | readOnly |
| recommend_china_essential_apps_and_payment | Search curated step-by-step setup guides for Alipay, WeChat Pay, Didi, 12306 rail booking, Amap navigation, and eSIM apps using foreign passports | appSlugOrQuery, category | readOnly |
| lookup_china_destination_foreigner_guide | Query verified attraction entry requirements across China cities (Beijing, Shanghai, Chengdu, Macau, etc.), returning turnstile passport scanning | cityOrAttraction, limit | readOnly |
| calculate_caac_powerbank_and_alipay_split | Compute lithium battery watt-hours (mAh * V / 1000) against Civil Aviation Administration of China 100Wh/160Wh carry-on prohibitions AND split an | capacityMah, voltageV, paymentAmountRmb | readOnly |
Live Production Sample Output
{
"powerbank": {
"capacityMah": 20000,
"voltageV": 3.7,
"wattHours": 74,
"caacStatus": "ALLOWED_UNRESTRICTED",
"maxAllowedUnits": 2,
"checkedBaggageAllowed": false,
"caacRule": "Carry-on cabin luggage allowed without airline pre-approval (≤ 100Wh). Checked baggage is strictly forbidden; mAh/Wh label must remain clearly legible.",
"toolUrl": "https://chinakit.io/tools/powerbank-calculator"
},
"alipayFeeOptimizer": {
"totalAmountRmb": 480,
"feeExemptionThresholdRmb": 200,
"singleTransaction3PctFeeRmb": 14.4,
"recommendedSplitTransactionsRmb": [
200,
200,
80
],
"splitTransactionFeeRmb": 0,
"netFeeSavedRmb": 14.4,
"toolUrl": "https://chinakit.io/tools/fee-splitter"
}
}Connect in Claude Desktop / Cursor / Windsurf
{
"mcpServers": {
"chinakit": {
"type": "streamable-http",
"url": "https://chinakit.io/api/mcp"
}
}
}Statutory Reference Specifications
Work Permit Category A/B/C City Wage Benchmarks (SAFIEA Matrix)
| City Tier | Representative Cities | Monthly Avg Wage (RMB) | 6x Direct Category A Annual Threshold (RMB) |
| :--- | :--- | :---: | :---: |
| Tier 1 Mega (tier1_super) | Beijing, Shanghai | ¥12,183 | ¥877,200 / yr (¥73,100 / mo) |
| Tier 1 (tier1) | Shenzhen, Guangzhou, Hangzhou, Suzhou | ¥11,000 | ¥792,000 / yr (¥66,000 / mo) |
| Tier 2 (tier2) | Chengdu, Wuhan, Xi'an, Qingdao | ¥8,500 | ¥612,000 / yr (¥51,000 / mo) |
| Other Regions (other) | Haikou, Kunming, Dalian, Ningbo | ¥6,500 | ¥468,000 / yr (¥39,000 / mo) |
CAAC Aviation Lithium Battery & Alipay Foreign Card Thresholds
| Compliance Rule | Statutory Formula / Threshold | Operational Rule for Travelers |
| :--- | :---: | :--- |
| CAAC Unrestricted Carry-On | Wh = (mAh * V) / 1000 <= 100 Wh | Permitted in cabin baggage without pre-approval; checked luggage strictly prohibited |
| CAAC Airline-Approved Carry-On | 100 Wh < Wh <= 160 Wh | Requires airline check-in approval; maximum 2 spare power banks per passenger |
| CAAC Cabin & Train Ban | > 160 Wh or unmarked capacity | Confiscated at airport security; strictly banned from aircraft cabin and cargo |
| Alipay / WeChat Foreign Card | <= ¥200 RMB per transaction | 0% international surcharge (3% fee applies automatically above ¥200 single swipe) |
Controlled Medication & Hague Apostille Quick Reference
| Subject | Critical Compliance Threshold | Source Engine / Statutory Trap |
| :--- | :--- | :--- |
| Class I Psychotropic (Adderall / Ritalin) | Maximum 7-day personal supply | Must declare at Customs Red Channel with stamped English medical diagnosis |
| Class II Psychotropic (Xanax / Zolpidem) | Maximum 7-day personal supply | Original pharmacy bottle with matching passport name required |
| US FBI Identity History Summary | Federal Apostille (~25 days) | Trap: State-level Apostille is rejected by Chinese PSB; requires U.S. Dept. of State |
| Unilateral 15/30d vs 240h TWOV | FRA / DEU / KOR / AUS vs USA / GBR | Unilateral waiver nations bypass A-B-C transit checks; TWOV strictly requires A != C |
Official Web Tools & Deep Links
- ChinaKit Official Portal — All-in-One Inbound Compliance Hub —
https://chinakit.io - China Work Permit Category A/B/C Points Calculator —
https://chinakit.io/tools/points-calculator - China Customs Controlled Medication & ADHD Prescription Checker —
https://chinakit.io/tools/meds-checker - Expatriate China Individual Income Tax (IIT) & Fringe Optimizer —
https://chinakit.io/tools/tax-calculator - China 240-Hour Visa-Free Transit (TWOV) & Airport Cluster Checker —
https://chinakit.io/tools/transit-check - Hague Apostille & Consular Document Legalization Workflow Tool —
https://chinakit.io/tools/document-checker - CAAC Flight Cabin Power Bank Watt-Hour Compliance Calculator —
https://chinakit.io/tools/powerbank-calculator - Alipay & WeChat Pay ¥200 International Card Fee-Waiver Splitter —
https://chinakit.io/tools/fee-splitter
Source & License
- GitHub MCP Repository: https://github.com/AbigailDavised/chinakit-mcp
- License: MIT © ChinaKit
