Japan fuel prices by prefecture (METI weekly data). Tools: current, history, cheapest.
MCPサーバー: 日本のガソリン・軽油・灯油の週次小売価格を、資源エネルギー庁(METI)公式統計XLSXからAIエージェントに提供します。
| Tool | 説明 |
|---|---|
get_latest_fuel_price(prefecture, product) | 指定都道府県(または全国)の最新週平均価格 + 前週比 + ガソリン税内訳 |
get_fuel_price_history(prefecture, product, weeks) | 週次履歴(都道府県は直近260週、全国は1990年〜)+ min/max/avg |
cheapest_prefectures(product, limit) | 47都道府県 最安〜最高値ランキング |
national_fuel_trend(products, weeks) | 全国平均の複数製品トレンド(インフレ/マクロ指標用) |
list_fuel_regions() | 照会可能な地域(漢字+ローマ字)・製品・単位のリスト |
prefecture は漢字・ローマ字・「都/府/県」付きのいずれでも可(東京 / tokyo / 東京都)。北海道・沖縄はMETI調査の局単位データを都道府県として提供。
YYMMDDs5.xlsx を取得(ブラウザUA必須)、openpyxlでパースしJSONキャッシュ化data/fuel_prices.json)にフォールバック — ツールが500になることはないApify Standby モード(streamable HTTP):
https://api.apify.com/v2/acts/<ACTOR_ID>/mcp
Authorization: Bearer <APIFY_TOKEN>
pip install -r requirements.txt
python3 -m pytest tests/ -q # 14 tests, network-stubbed, seed cache
PORT=3999 python3 -m src.main & # shim経由でApify SDK不要
python3 tests/http_smoke.py http://localhost:3999/mcp
シード更新(週1回、木曜の公開後):
python3 scripts/refresh_seed.py # METIから取得して data/fuel_prices.json 再生成
python3 scripts/refresh_seed.py path/to/YYMMDDs5.xlsx # 手元DL分から生成(レート制限回避)
git add data/fuel_prices.json && git commit -m "data: seed refresh" && git push
GitHub連携 Apify Actor(usesStandbyMode, webServerMcpPath=/mcp)。push後にビルドAPIを叩く:
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/builds?version=0.1&tag=latest&token=$APIFY_TOKEN"
Source: Agency for Natural Resources and Energy (METI), Petroleum Products Price Survey. Government Standard Terms of Use 2.0.
This listing does not have a supported local package template. Use the maintainer’s documentation for its hosted endpoint, authentication, and client-specific setup. No install command has been inferred.
https://github.com/atushi1841/japan-fuel-price-mcp/releases/download/v0.1.0/server.mcpbotherio.github.atushi1841/japan-fuel-price-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.