Fuel Mcp

cn.pianam.mcpPublished by mcp.pianam.cnOfficial publisherv1.0.0Updated Nov 21, 2026

China fuel prices: gasoline and diesel across all 31 provinces with adjustment forecast.

The publisher's own server: China 12306 Train Tickets MCP

VerifiedStreamable HTTPWeb executableLocation & LifestyleFinance

Overview

AI-generated overview

Remote MCP server that lets an assistant look up China's gasoline and diesel prices by province, or the full national list, plus the next price-adjustment…

What you can do
  • Query fuel prices for one Chinese province, accepting full names, short names or one-character abbreviations
  • Return 92#, 95#, 98# gasoline and 0# diesel prices in CNY per liter with data date and source
  • List prices for all 31 provincial-level regions when no province is given
  • Report the next expected price-adjustment window alongside the prices
When to use it
Useful when someone asks what fuel costs in a Chinese province or city, wants a national price overview, or needs the upcoming adjustment window for planning or commentary.
Requirements
A remote Streamable HTTP endpoint; no install, account or API key is needed. Self-hosting is optional and requires Python with the listed dependencies.
Before you install
Prices are reference benchmark figures in CNY per liter and may differ from actual pump prices. When live sources fail, the server falls back to a bundled static table, so check the returned data date and source before relying on figures. Read-only lookups; no credentials are requested.

How AI overviews are written and checked

Installation

In SourceWeft

  1. Open Fuel Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/cn.pianam.mcp%2Ffuel-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "fuel": {
      "type": "http",
      "url": "https://mcp.pianam.cn/fuel-mcp/mcp"
    }
  }
}

README

China Fuel Price MCP

[License: MIT] [MCP] [Remote]

China domestic refined-fuel (gasoline & diesel) prices for AI agents: query pump prices for 92# / 95# / 98# gasoline and 0# diesel in any of China's 31 provincial-level regions, or get the full national list, plus the next expected price-adjustment window.

  • Try it in 30 seconds: a free public MCP endpoint is already running — just paste the URL into your MCP client (no install, no API key).
  • Or self-host: a small FastMCP server. A bundled static price table (clearly dated) guarantees answers even when no live source is reachable.

⚡ Use the hosted endpoint (no setup)

https://mcp.pianam.cn/fuel-mcp/mcp

Transport: Streamable HTTP (MCP 2025-03-26 compatible). No authentication required.

🔌 Client configuration

Add this to your MCP client's mcpServers configuration (Claude Desktop, Cursor, Cline, Cherry Studio, etc.):

{
  "mcpServers": {
    "fuel": {
      "type": "http",
      "url": "https://mcp.pianam.cn/fuel-mcp/mcp"
    }
  }
}

Clients that do not accept "type": "http" accept the same entry with just "url".

🧰 Tools

| Tool | Parameters | Returns | |

[fuel-mcp MCP server]

---|---|---| | query_oil_price(province="") | province: optional region name — full (山东省), short (山东), or one-character abbreviation (鲁/京). Omit to get all regions. | Single region: 92#/95#/98# gasoline and 0# diesel prices (CNY/liter), data date, data source, next adjustment window. No argument: prices for all 31 provincial-level regions, with data date and next adjustment window. |

Examples

  • "山东今天 92 号汽油多少钱?" → Shandong fuel prices.
  • "广东油价" → Guangdong prices.
  • "全国油价列表" → all regions.

📡 Data

  • The server attempts live sources in order (CNPC official site, NDRC announcements, WallStreetCN commodities); when none yields structured data it falls back to a bundled static price table whose date is always returned in the response (data_date / data_source fields).
  • Region names accept full names, short names and traditional one-character abbreviations (京/沪/鲁/粤…).
  • Prices are reference benchmark prices in CNY per liter; actual pump prices may vary by station and promotions. No API key required.

Adjust the bundled table (STATIC_OIL_PRICES / STATIC_DATA_DATE in fuel_server.py) to refresh figures between releases.

🐢 Self-hosting

git clone https://github.com/boy-373/fuel-mcp.git
cd fuel-mcp
pip install -r requirements.txt
python server.py
# listens on 127.0.0.1:8000 by default; override with:
#   MCP_HOST=0.0.0.0 MCP_PORT=9000 python server.py
# behind a reverse proxy, allow your public hostname:
#   MCP_ALLOWED_HOSTS="your-domain.com,your-domain.com:*" python server.py

Then point your MCP client at http://127.0.0.1:8000/mcp.

With uv:

uv venv && uv pip install -r requirements.txt
uv run python server.py

🗂️ Files

  • fuel_server.py — the MCP server: price table, province-name normalization, live-source attempts with static fallback, FastMCP tool definition.
  • server.py — standalone Streamable HTTP entry point (serves the MCP app at /mcp).
  • requirements.txt — Python dependencies.
  • LICENSE — MIT.

🇨🇳 中文说明

国内油价 MCP:查询全国 31 个省区市的 92/95/98 号汽油与 0 号柴油价格(元/升),支持省名全称、简称与单字别称(鲁→山东、京→北京);不传省份返回全国列表,并给出下一轮调价窗口预估。

在线直连(免费、无需 Key):https://mcp.pianam.cn/fuel-mcp/mcp

联网数据源不可用时自动降级到内置静态油价表(响应中始终标注数据日期与来源)。价格为参考基准价,实际以当地加油站为准。

📄 License

MIT © 2026 boy-373 (刘扶阳)

Source: README.md at commit bd1ae39

Tools

1

query_oil_price

Query Oil Price

查询国内成品油价格(92号/95号/98号汽油、0号柴油)。传入省份名查该省油价,如"山东";不传则返回全国31个省区市油价列表。返回下一轮调价窗口日期。

Parametersprovince

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

How this score is calculated

Other Pianam integrations