gas-prices-today-mcp
Gas prices today for AI assistants. Ask for this week's price per gallon in your state or city and get the U.S. Energy Information Administration (EIA) average for regular, midgrade, premium or diesel, the change from last week, last month and a year ago, and what a fill-up or a trip costs.
This is a Model Context Protocol (MCP) server. It reads the EIA weekly retail gasoline and diesel survey at call time and needs no API key.
Tools
Every result has structured JSON, a one-paragraph summary, as_of, source and more (a page on mcpstamp.com). Every tool is marked read-only.
What it knows that your model does not
- This week's price. EIA publishes new averages every Monday, so a remembered number is stale.
- Which places EIA prices itself. It covers the US, five regions with sub-regions, nine states (California, Colorado, Florida, Massachusetts, Minnesota, New York, Ohio, Texas, Washington) and ten cities. For any other state the server says so and returns the EIA region that contains it.
- The price a year ago, read from the EIA weekly history file.
Install
Hosted (Claude.ai custom connector, ChatGPT developer mode)
Paste this URL. No token, no sign-up.
Claude Code
Claude Desktop
Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.
Cursor
Add to ~/.cursor/mcp.json.
VS Code
Add to .vscode/mcp.json.
Local stdio
The npm package is not published. Build it from this repository with Node 20 or newer.
Example prompts
- "What are gas prices today?"
- "How much is a gallon of regular in Texas right now, and what was it a year ago?"
- "Which state EIA surveys has the most expensive gas?"
- "What is the diesel price in California this week?"
- "What will a 300 mile trip cost at 30 miles per gallon?"
Data sources
Full list with fetch dates in DATA_SOURCES.md.
Limitations
- State, city and regional averages from a retail survey, not the price at your station.
- EIA prices nine states and ten cities directly. Other states get their region's average.
- Diesel is priced for the US, the regions and California only.
- The hosted server caches EIA pages for up to 15 minutes.
More
More MCP servers that answer questions your assistant cannot answer alone are on mcpstamp.com.
Part of the Zovo MCP collection at https://mcp.zovo.one
Built by theluckystrike.
Development
License
MIT