
Japan Fuel Price Mcp
io.github.atushi1841v0.1.0Updated Oct 4, 2026
Japan fuel prices by prefecture (METI weekly data). Tools: current, history, cheapest.
Overview
Lets an assistant look up Japanese weekly retail fuel prices by prefecture, including latest prices, history and cheapest-prefecture rankings.
- What it does
- Provides official METI weekly retail price data for gasoline, diesel and kerosene across Japan's 47 prefectures and nationwide. Tools cover the latest weekly average with week-over-week change and gasoline tax breakdown, weekly history with min/max/average, a cheapest-to-most-expensive prefecture ranking, multi-product national trends, and a list of queryable regions, products and units. Prefecture names are accepted in kanji, romaji or with the 都/府/県 suffix. Prices are tax-inclusive, in yen per litre for gasoline and diesel and yen per 18 litres for kerosene.
- When to use it
- Useful when an assistant needs current or historical Japanese fuel price figures, for example comparing prefectures, tracking weekly price movements, or supplying fuel cost inputs for budgeting, travel cost or macro analysis. It is a read-only statistics source, not a live station-level price feed or a purchasing tool. Skip it if you need prices outside Japan or real-time pump prices rather than the weekly METI survey.
- Requirements
- Runs as a local process over stdio, distributed as an mcpb package; desktop only, no web executable. The README's local development path needs Python 3 with pip and the requirements.txt dependencies (openpyxl for parsing XLSX), and network access to fetch the weekly METI XLSX file with a browser user agent. No accounts, API keys or environment variables are declared in the manifest; the README's optional Apify Standby deployment uses an APIFY_TOKEN bearer credential.
Installation
In SourceWeft
- Open Japan Fuel Price Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Japan Fuel Price MCP — METI Weekly Gasoline / Diesel / Kerosene
MCPサーバー: 日本のガソリン・軽油・灯油の週次小売価格を、資源エネルギー庁(METI)公式統計XLSXからAIエージェントに提供します。
- データソース: 資源エネルギー庁 給油所小売価格調査 公式XLSX(毎週更新、1990年〜の全国・都道府県別平均現金価格)
- 利用規約: 政府標準利用規約2.0(出典明示で商用利用可)
- 単位: ガソリン・軽油 = 円/L、灯油 = 円/18L(消費税込み)
Tools
prefecture は漢字・ローマ字・「都/府/県」付きのいずれでも可(東京 / tokyo / 東京都)。北海道・沖縄はMETI調査の局単位データを都道府県として提供。
動作
- 初回呼び出しで最新
YYMMDDs5.xlsxを取得(ブラウザUA必須)、openpyxlでパースしJSONキャッシュ化 - 以後6時間はキャッシュから即答、TTL切れで新週ファイルをチェック
- METIのレート制限/障害時はビルド時同梱のシードキャッシュ(
data/fuel_prices.json)にフォールバック — ツールが500になることはない
MCP接続
Apify Standby モード(streamable HTTP):
ローカル開発
シード更新(週1回、木曜の公開後):
Deploy
GitHub連携 Apify Actor(usesStandbyMode, webServerMcpPath=/mcp)。push後にビルドAPIを叩く:
出典表記
Source: Agency for Natural Resources and Energy (METI), Petroleum Products Price Survey. Government Standard Terms of Use 2.0.
Source: README.md at commit 7b804f4
Tools
0Version history
1- v0.1.0LatestOct 4, 2026