Fuel Mcp

cn.pianam.mcp由 mcp.pianam.cn 发布官方发布者v1.0.0更新于 Nov 21, 2026

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

发布方自己的服务:China 12306 Train Tickets MCP

已验证Streamable HTTP可网页运行位置与生活金融

概览

AI 生成的概览

远程 MCP 服务器,让助手按省份查询中国汽油、柴油价格或获取全国油价列表,并给出下一轮调价窗口。

可以做什么
  • 按省份查询油价,支持全称、简称和单字别称
  • 返回 92 号、95 号、98 号汽油与 0 号柴油的元/升价格及数据日期和来源
  • 不传省份时返回全国 31 个省区市的油价列表
  • 同时给出下一轮预计调价窗口
适用场景
适合用户询问某个中国省份或城市的油价、需要全国油价概览,或想了解下一轮调价窗口用于规划或评论时使用。
运行要求
远程 Streamable HTTP 端点,无需安装、账号或 API Key。自托管为可选项,需要 Python 及所列依赖。
安装前请注意
价格为元/升的参考基准价,可能与加油站实际价格不同。联网数据源不可用时会降级到内置静态表,使用前请查看返回的数据日期与来源。仅做只读查询,不索取任何凭据。

AI 概览如何生成和校验

安装

在 SourceWeft 中

  1. 打开 控制台中的 Fuel Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/cn.pianam.mcp%2Ffuel-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "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 (刘扶阳)

来源:README.md,提交 bd1ae39

工具

1

query_oil_price

Query Oil Price

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

输入参数province

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

这个评分如何计算

其他 Pianam 集成