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": []
}社区
证据