Japan Trade Statistics (customs data)
Japan export and import customs statistics (Ministry of Finance) by code. No API key required.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 get_item 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"jp-trade-stats": {
"url": "https://data.washutrading.com/mcp"
}
}
}遠端端點
https://data.washutrading.com/mcpstreamable-http它能做什麼
工具清單
工具(7)
🟢search_items(q, flow, level, lang, limit)
Find items by name or code. Use this first when you do not know the code. 9-digit codes differ between exports and imports; check each result's flow. / 品名やコードから品目を探します。品目コードが分からないときに最初に使います。9桁の番号は輸出と輸入で体系が違うため、結果の flow でどちらの番号かを確かめてください。
輸入結構描述
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "検索語(品名の一部かコードの先頭) / Part of a name or the start of a code"
},
"flow": {
"type": "string",
"enum": [
"export",
"import"
],
"description": "省略時は両方 / Both if omitted"
},
"level": {
"type": "string",
"enum": [
"hs9",
"hs6",
"hs4",
"chapter",
"section"
],
"description": "区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted)"
},
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"q"
]
}🟢get_item(code, flow, level, lang)
Item details: parent and child levels, unit, and the months covered. Use this to navigate the hierarchy. / 品目の詳細(上位・下位の区切り、単位、データのある期間)を返します。下位の品目をたどるときに使います。
輸入結構描述
{
"type": "object",
"properties": {
"code": {
"type": "string"
},
"flow": {
"type": "string",
"enum": [
"export",
"import"
],
"description": "export=輸出、import=輸入 / export or import"
},
"level": {
"type": "string",
"enum": [
"hs9",
"hs6",
"hs4",
"chapter",
"section"
],
"description": "区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted)"
},
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
}
},
"required": [
"code",
"flow"
]
}🟢get_series(code, flow, level, country, from, ...)
Monthly series for an item (value, quantity, unit price, YoY, MoM, preliminary/revised). With flow=both, exports, imports and the balance side by side. Chapters and sections start in 1988; 9-, 6- and 4-digit codes start in 2022. Use freq=year for long-term trends, or set from for older months (without from, months start in January 2022). / 品目の月ごとの推移(金額・数量・単価・前年比・前月比・速報/確報)。flow=both なら輸出・輸入・差し引きを並べます。類・部は1988年から、9桁・6桁・4桁は2022年から。長期の推移は freq=year、月ごとの過去分は from を付けます(from を省くと2022年1月から)。
輸入結構描述
{
"type": "object",
"properties": {
"code": {
"type": "string"
},
"flow": {
"type": "string",
"enum": [
"export",
"import",
"both"
],
"description": "export=輸出、import=輸入、both=両方と差し引き(6桁以上のみ) / export, import, or both with the balance (6-digit level and above only)"
},
"level": {
"type": "string",
"enum": [
"hs9",
"hs6",
"hs4",
"chapter",
"section"
],
"description": "区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted)"
},
"country": {
"type": "string",
"pattern": "^[0-9]{3}$",
"description": "国コード(税関の3桁。000=全世界) / Country code (3-digit customs code, 000 = world)"
},
"from": {
"type": "string",
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
"description": "YYYY-MM"
},
"to": {
"type": "string",
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
"description": "YYYY-MM"
},
"freq": {
"type": "string",
"enum": [
"month",
"year"
],
"description": "month=月ごと(既定)、year=年ごとの合計 / month (default) or yearly totals"
},
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
}
},
"required": [
"code",
"flow"
]
}🟢get_partners(code, flow, level, month, window, ...)
Partner-country breakdown and shares for an item (one month or the last 12 months): destinations for exports, origins for imports. / 品目の相手国の内訳とシェア(その月、または直近12か月)。輸出なら輸出先、輸入なら輸入元。
輸入結構描述
{
"type": "object",
"properties": {
"code": {
"type": "string"
},
"flow": {
"type": "string",
"enum": [
"export",
"import"
],
"description": "export=輸出、import=輸入 / export or import"
},
"level": {
"type": "string",
"enum": [
"hs9",
"hs6",
"hs4",
"chapter",
"section"
],
"description": "区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted)"
},
"month": {
"type": "string",
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
"description": "YYYY-MM"
},
"window": {
"type": "integer",
"enum": [
1,
12
]
},
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
}
},
"required": [
"code",
"flow"
]
}🟢get_ranking(flow, level, month, by, order, ...)
Item ranking. For export or import, by value or yoy; for both, by balance (order=asc for the largest deficits). Set country to rank trade with one country. / 品目のランキング。export・import は金額(value)か前年比(yoy)、both は差し引き(balance、order=asc で輸入超過の大きい順)。country を指定するとその国との取引での順位。
輸入結構描述
{
"type": "object",
"properties": {
"flow": {
"type": "string",
"enum": [
"export",
"import",
"both"
],
"description": "export=輸出、import=輸入、both=両方と差し引き(6桁以上のみ) / export, import, or both with the balance (6-digit level and above only)"
},
"level": {
"type": "string",
"enum": [
"hs9",
"hs6",
"hs4",
"chapter",
"section"
],
"description": "区切り(省略時はコードの桁数で判断) / Level (inferred from the code length if omitted)"
},
"month": {
"type": "string",
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
"description": "YYYY-MM"
},
"by": {
"type": "string",
"enum": [
"value",
"yoy",
"balance"
]
},
"order": {
"type": "string",
"enum": [
"desc",
"asc"
]
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"country": {
"type": "string",
"pattern": "^[0-9]{3}$",
"description": "国コード(税関の3桁。000=全世界) / Country code (3-digit customs code, 000 = world)"
},
"min_value": {
"type": "integer",
"minimum": 0,
"description": "yoy の対象にする最小の金額(円) / Minimum value (JPY) for yoy"
},
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
}
},
"required": [
"flow",
"level"
]
}🟢get_country_summary(country, month, window, lang)
Use this for the overall picture of trade with one country: exports, imports, balance, YoY and the main items, in one call. / ある国との貿易の全体像(輸出額・輸入額・差し引き・前年比・主な品目)を1回で知りたいときに使います。
輸入結構描述
{
"type": "object",
"properties": {
"country": {
"type": "string",
"pattern": "^[0-9]{3}$",
"description": "国コード(税関の3桁。000 は不可) / 3-digit customs country code (not 000)"
},
"month": {
"type": "string",
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
"description": "YYYY-MM"
},
"window": {
"type": "integer",
"enum": [
1,
12
]
},
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
}
},
"required": [
"country"
]
}🟢get_meta(lang)
Latest month and each month's status for exports and imports, the latest month common to both, the first month of data for each level (chapters and sections from 1988), and sources. / 輸出・輸入それぞれの最新の月と各月の速報/確報、両方にある最新の月、区切りごとのデータの開始月(類・部は1988年から)、出典を返します。
輸入結構描述
{
"type": "object",
"properties": {
"lang": {
"type": "string",
"enum": [
"ja",
"en"
]
}
},
"required": []
}社群
證據