Skip to main content
Glama
fuel-economy-gas-mileage-mpg-mcp

fuel-economy-gas-mileage-mpg-mcp

fuel-economy-gas-mileage-mpg-mcp

EPA city, highway and combined MPG, EV range and annual fuel cost for any car by year, make and model, from fueleconomy.gov, as an MCP server. Free and hosted: no API key, no sign-up.

Hosted MCP URL (Streamable HTTP):

https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp

Quick start

Claude

Claude Desktop or claude.ai: Settings > Connectors > Add custom connector, then paste the URL above.

Claude Code:

claude mcp add --transport http fuel-economy-mpg https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp

Claude Desktop config file (claude_desktop_config.json), through the mcp-remote bridge:

{
  "mcpServers": {
    "fuel-economy-mpg": { "command": "npx", "args": ["-y", "mcp-remote", "https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp"] }
  }
}

Cursor

Add to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "fuel-economy-mpg": { "url": "https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp" }
  }
}

Related MCP server: WhichTrim

About

Fuel economy and gas mileage for AI assistants: the EPA city, highway and combined MPG of any car, truck, hybrid or EV by year, make and model, its EV range, what it costs to fuel a year, and side-by-side comparisons. Ask what MPG a 2026 RAV4 gets, whether a Model Y is cheaper to run than an F-150 hybrid, or what your 28 MPG car costs in gas a month.

This is a Model Context Protocol (MCP) server. It reads the U.S. Department of Energy and EPA fueleconomy.gov web services at call time. It needs no API key.

Tools

Tool

What it returns

fuel_economy_lookup

Every version of a year, make and model: EPA city, highway and combined MPG (MPGe, kWh/100 mi and range for an EV; gas MPG, electric MPGe and electric range for a plug-in hybrid), EPA annual fuel cost, 5-year savings against the average new car, CO2, EPA scores and the MPG real drivers report.

fuel_economy_compare

2 to 4 vehicles side by side: MPG or MPGe, range, and the yearly and 5-year fuel cost difference at current national average prices for your miles.

fuel_cost_calculator

Yearly and monthly fuel cost and cost per mile from an MPG figure, a kWh/100 mi figure or a vehicle, at national average prices or your own. Plug-in hybrids get gas-only, electric-only and an EPA utility-factor blend.

fuel_economy_models

Makes with EPA ratings for a model year, the models of a make, or every version of a model (transmission, cylinders, engine) with its fueleconomy.gov id.

Every result has structured JSON, a plain-text 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

  • The EPA label numbers for each version, not a rounded model average: a 2026 RAV4 runs from 38 to 43 combined MPG depending on the version.

  • Current national average fuel and electricity prices from fueleconomy.gov, so fuel cost answers use today's prices rather than a training-time guess.

  • Model years up to next year as soon as the EPA lists them, plus the average MPG that real drivers report on fueleconomy.gov when there are reports.

Other clients and local install

Hosted (custom connector, ChatGPT developer mode, any remote MCP client)

Paste this URL. No token, no sign-up.

https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp

VS Code

Add to .vscode/mcp.json.

{
  "servers": {
    "fuel-economy-mpg": { "type": "http", "url": "https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp" }
  }
}

Local stdio

The npm package is not published. Build it from this repository with Node 20 or newer, then point your MCP client at node /path/to/fuel-economy-gas-mileage-mpg-mcp/dist/stdio.js.

git clone https://github.com/theluckystrike/fuel-economy-gas-mileage-mpg-mcp && cd fuel-economy-gas-mileage-mpg-mcp
npm install && npm run build
node dist/stdio.js

Example prompts

  • "What gas mileage does a 2026 Toyota RAV4 get?"

  • "Is a 2025 Tesla Model Y cheaper to run than a 2026 Ford F-150 hybrid if I drive 12,000 miles a year?"

  • "How much will I spend on gas a month with a 28 MPG car and 1,000 miles a month?"

  • "What is the electric range of the 2026 Ford Escape plug-in hybrid?"

Data sources

Full list in DATA_SOURCES.md.

Limitations

  • US-market vehicles rated by the EPA only, model years 1984 to next year.

  • A make and model query picks the matching fueleconomy.gov models by name; a very broad name (Corolla) reads the first 10 matching models and 12 versions. Add a trim word or use a version id to be exact.

  • Annual costs use national average prices and the EPA assumptions (15,000 miles, 55% city) unless you pass your own; local prices differ.

  • My MPG averages are voluntary driver reports and exist for only some vehicles.

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

npm install
npm test                              # builds, then runs the fixture tests and an offline stdio test
node scripts/stdio-transcript.mjs     # live stdio round trip, writes .live/stdio-transcript.jsonl

CI (.github/workflows/bundle.yml) runs the tests, the type check and wrangler deploy --dry-run --outdir out, and uploads the Worker bundle as an artifact.

License

MIT

Available Tools

4 tools
fuel_cost_calculatorFuel cost calculatorA
Read-onlyIdempotent
Inspect

Yearly and monthly fuel cost and cost per mile for your driving, from an MPG figure, a kWh per 100 miles figure (EV) or a vehicle (year, make, model or id), at the national average gas, diesel and electricity prices fueleconomy.gov uses, or at your own price. Plug-in hybrids get gas-only, electric-only and an EPA utility-factor blend.

Inputs: mpg, fuel, vehicle, city_percent, +4 more.

fuel_economy_compareCompare fuel economyA
Read-onlyIdempotent
Inspect

Compare 2 to 4 vehicles side by side: MPG or MPGe, range, and the yearly fuel cost at current national average prices for your miles, with how much more each costs per year and over 5 years than the cheapest. Each vehicle is a year, make and model (best match) or a fueleconomy.gov id.

Inputs: vehicles (required), city_percent, miles_per_year.

fuel_economy_lookupFuel economy and MPG lookupA
Read-onlyIdempotent
Inspect

EPA fuel economy for every version of a vehicle by year, make and model: city, highway and combined MPG (MPGe, kWh per 100 miles and range for an EV; gas MPG, electric MPGe and electric range for a plug-in hybrid), EPA annual fuel cost, 5-year savings against the average new car, tailpipe CO2, EPA fuel economy and greenhouse gas scores, and the average MPG real drivers report on fueleconomy.gov when there is one.

Inputs: make (required), model (required), trim, year.

fuel_economy_modelsMakes, models and versionsA
Read-onlyIdempotent
Inspect

What fueleconomy.gov lists for a model year: with no make, every make with EPA ratings; with a make, every model; with a make and model, every version (transmission, cylinders, engine size) with its fueleconomy.gov id for exact lookups and comparisons. Years 1984 to next year.

Inputs: make, year, model.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct core job: detailed ratings for one vehicle (lookup), catalog browsing (models), multi-vehicle comparison (compare), and cost math (calculator). There is mild overlap since lookup, models, and compare all accept year/make/model and both compare and calculator report annual costs, but the descriptions make the boundaries reasonably clear.

    Naming Consistency4/5

    Three tools share the fuel_economy_ prefix with a clear noun/verb pattern (lookup, models, compare), but the fourth breaks to fuel_cost_calculator, which is a minor but noticeable deviation. All names are snake_case and readable, so the set is coherent overall.

    Tool Count5/5

    Four tools is a tight, well-scoped surface for an EPA fuel economy lookup service, with no filler. Each tool (lookup, browse, compare, calculate) earns its place and covers a distinct user need.

    Completeness4/5

    The set covers the core lifecycle: find a vehicle, browse model years, compare options, and compute real-world costs, including EV/PHEV specifics. Minor gaps exist, such as no VIN-based lookup or class/best-in-class MPG ranking queries, but agents can work around these via year/make/model.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search and aggregate used-vehicle listings across Cars.com, Autotrader, and KBB, with filters for price, mileage, dealer information, and CARFAX-style history conditions.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables natural-language queries over U.S. vehicle records, including recalls, service bulletins, diagnostic trouble codes, VIN decoding, fuel economy, and crash ratings.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to read public vehicle data such as NHTSA recalls, complaints, and crash ratings, EPA engines and fuel economy, Transport Canada dimensions, and published bilingual automotive guides through search and retrieval tools.
      96 npm
      MIT