Japan Fuel Price MCP
Deploys the MCP server as a GitHub-linked Apify Actor, so the repository can be connected to GitHub and builds of the Actor/standby MCP endpoint can be triggered from the repo.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Japan Fuel Price MCPWhat's the latest gasoline price in Tokyo with week-over-week change?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Japan Fuel Price MCP — METI Weekly Gasoline / Diesel / Kerosene
MCPサーバー: 日本のガソリン・軽油・灯油の週次小売価格を、資源エネルギー庁(METI)公式統計XLSXからAIエージェントに提供します。
データソース: 資源エネルギー庁 給油所小売価格調査 公式XLSX(毎週更新、1990年〜の全国・都道府県別平均現金価格)
利用規約: 政府標準利用規約2.0(出典明示で商用利用可)
単位: ガソリン・軽油 = 円/L、灯油 = 円/18L(消費税込み)
Tools
Tool | 説明 |
| 指定都道府県(または全国)の最新週平均価格 + 前週比 + ガソリン税内訳 |
| 週次履歴(都道府県は直近260週、全国は1990年〜)+ min/max/avg |
| 47都道府県 最安〜最高値ランキング |
| 全国平均の複数製品トレンド(インフレ/マクロ指標用) |
| 照会可能な地域(漢字+ローマ字)・製品・単位のリスト |
prefecture は漢字・ローマ字・「都/府/県」付きのいずれでも可(東京 / tokyo / 東京都)。北海道・沖縄はMETI調査の局単位データを都道府県として提供。
Related MCP server: gasolineras-mcp
動作
初回呼び出しで最新
YYMMDDs5.xlsxを取得(ブラウザUA必須)、openpyxlでパースしJSONキャッシュ化以後6時間はキャッシュから即答、TTL切れで新週ファイルをチェック
METIのレート制限/障害時はビルド時同梱のシードキャッシュ(
data/fuel_prices.json)にフォールバック — ツールが500になることはない
MCP接続
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 pushDeploy
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 server cannot be deployed
Maintenance
Related MCP Connectors
Gas and fuel prices by station and area, as structured data via a hosted MCP server.
Real-time fuel prices, alerts, and cheapest gas stations across 38+ countries.
Real-time electricity price signals for AI agents. Spot prices, cheapest hours, and contract recommendations. 31 countries across Europe and Oceania. No authentication required.
Raw Japanese regulatory data for AI agents: pension, gazette, gBizINFO. x402-metered (USDC).
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to Korea Petroleum Corporation's Opinet fuel price API for South Korea. Enables querying of current national and regional fuel averages, recent price trends, lowest-price stations, and nearby gas station details through natural language.MIT
- AlicenseAqualityAmaintenanceProvides real-time fuel prices at gas stations in Spain using the government's public API. Enables users to find the cheapest fuel in a municipality or list stations sorted by price.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to query real-time fuel station availability and summaries across Thailand via MCP tools.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and chatbots to retrieve real market price ranges for used cars from carsensor.net, based on model and year, returning min/max/median prices, sample size, and confidence.ISC