Back to Browse

Fuel Economy Gas Mileage Mpg MCP Server

Developer ToolsModerate6.2MCP RegistryRemote
Free

Server data from the Official MCP Registry

EPA MPG, gas mileage, EV range and annual fuel cost for any car by year, make and model.

About

EPA MPG, gas mileage, EV range and annual fuel cost for any car by year, make and model.

Remote endpoints: streamable-http: https://fuel-economy-gas-mileage-mpg-mcp.lipmichal.workers.dev/mcp

Security Report

6.2
Moderate6.2Moderate Risk

This is a read-only MCP server that queries the public U.S. DOE/EPA fueleconomy.gov web services for fuel economy data, with no API key required and no credentials handled. The only network calls go to fueleconomy.gov through an injected fetch function, and no shell execution, file writes, or data exfiltration patterns were found in the reviewed code. The truncated tools.ts file and the unseen fetch-node.ts/types.ts are the only gaps in coverage. Supply chain analysis found 6 known vulnerabilities in dependencies (0 critical, 4 high severity).

5 files analyzed · 10 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

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

Documentation

View on GitHub

From the project's GitHub README.

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" }
  }
}

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

ToolWhat it returns
fuel_economy_lookupEvery 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_compare2 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_calculatorYearly 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_modelsMakes 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

Reviews

No reviews yet

Be the first to review this server!