pipeworx-io

@pipeworx/pa-dmv

Community pipeworx-io
Updated

PennDOT: quarterly EV, plug-in hybrid and total vehicle registrations by county and ZIP

@pipeworx/pa-dmv

Pennsylvania DMV MCP — registered vehicles and electric-vehicle adoption by county and byZIP code, from PennDOT Driver & Vehicle Services.

Tools

  • pa_dmv_ev_adoption(county?, year?, quarter?, limit?) — battery-electric, plug-inhybrid, fuel-cell and conventional hybrid registrations for each of Pennsylvania's 67counties in one quarter, with plug-in share and a genuine statewide total. Answers "howmany EVs are registered in Pennsylvania", "EV share in Allegheny County", "whichPennsylvania county has the most electric vehicles".
  • pa_dmv_vehicle_registrations(county?, year?, quarter?, limit?) — the whole registeredfleet of every fuel type by county, with a statewide total and each county's share.Rides on the same layer, which carries TOTAL_REG alongside the EV columns.
  • pa_dmv_ev_adoption_by_zip(zip?, year?, quarter?, limit?) — the same drivetrainbreakdown for ~1,830 Pennsylvania ZIP codes. Answers "how many EVs are registered in ZIP19103", "which Pennsylvania ZIP code has the most electric vehicles".

Auth

Keyless.

Data sources

Both layers have maxRecordCount 2000, so a full year fits in a single request and nopaging is needed. Latest published quarter as of 2026-07-29 is 2026 Q2.

Gotcha: quarters are COLUMNS, not rows

Each feature is one county (or ZIP) for one REGISTRATION_YEAR, carrying all fourquarters side by side as separate column groups. Quarters PennDOT has yet to file arepresent as null columns. There is no row to filter on and no date field to sort by, so"the latest data" means walking Q4 → Q1 looking for a quarter that actually carriesvalues.

pickQuarter() does that walk once for the whole result set, not per row. Picking aquarter per row looks harmless on a single-county lookup and is a correctness bug on aranking: you end up comparing one county's Q2 against another's Q1 and summing the mixinto a "statewide total". A quarter is accepted only if at least half as many rows carryit as carry the best-covered quarter, so one early-reporting straggler cannot drag thewhole answer forward.

Gotcha: hybrids sit outside TOTAL_EV

PennDOT's TOTAL_EV = BEV + PHEV + FUEL_CELL. Conventional hybrids (HEV) are reportedseparately and are deliberately excluded — a Prius appears in hybrid_gasoline andnever in plug_in_vehicles. Verified across all 67 counties × both 2026 quarters: zeromismatches between TOTAL_EV and BEV + PHEV + FUEL_CELL.

Gotcha: the ZIP layer's 2026 Q1 columns are wrong upstream

In the ZIP layer only, and in the 2026 Q1 column group only, PennDOT's own derivedcolumns are broken two ways:

  • TOTAL_EV_Q1 folds conventional hybrids in. ZIP 19103 publishes TOTAL_EV_Q1 1291against BEV_Q1 314 + PHEV_Q1 136 + HEV_Q1 841 = 1291.
  • PCT_EV_Q1 is written as a fraction of that inflated number rather than a percent.ZIP 19103 publishes 0.14 where the plug-in share is 4.85%.

Every other year, quarter and layer is internally consistent. So this pack computesplug_in_vehicles and ev_share_pct from the component columns everywhere rather thanreading TOTAL_EV / PCT_EV — which reproduces PennDOT's published values exactlywherever those are sound (Montgomery County 2026 Q1 → 22,606 and 2.87, matching), andquietly repairs them where they are not.

Gotcha: the ZIP file undercounts the state by ~0.5%

Summing every ZIP code gives 12,039,085 registered vehicles for 2026 Q2 against the countylayer's 12,098,320 — a few registrations carry no usable ZIP code. pa_dmv_ev_adoption(county layer) is the authoritative statewide number; the ZIP tool labels its own sumszip_file_total_vehicles rather than claiming a state total.

Verified figures (checked 2026-07-29)

Query Result
pa_dmv_ev_adoption{county:"Montgomery", year:"2026", quarter:"Q1"} BEV 16,243 · PHEV 6,363 · plug-in 22,606 · HEV 45,763 · total 788,762 · share 2.87%
pa_dmv_ev_adoption{county:"Allegheny", year:"2026"} (Q2) plug-in 19,350 · total 965,589
pa_dmv_ev_adoption{} (2026 Q2) statewide 171,670 plug-in of 12,098,320 registered, 1.42%
pa_dmv_ev_adoption_by_zip{zip:"19103", year:"2026"} (Q2) BEV 337 · PHEV 131 · plug-in 468 · total 9,322 · share 5.02%

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "pa-dmv": {
      "url": "https://gateway.pipeworx.io/pa-dmv/mcp"
    }
  }
}

Or connect to the full Pipeworx gateway for access to all 1392+ data sources:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English:

ask_pipeworx({ question: "your question about Pennsylvania DMV (PennDOT) data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

MCP Server · Populars

MCP Server · New

    MaximaLabs

    Dev MCP Suite 🚀

    Five local, file-based MCP servers for solo devs: persistent memory, session handoff/resume, file checkpoints, token-efficient briefings + optional Armada fleet ops. Works with any MCP client.

    Community MaximaLabs
    JollyToday

    Weydub Pro Subtitle Removal

    auto video translation-video translator can auto translate video hard subtitles, auto video translation and dubbing, remove any video text, auto remove video subtitles/text. 自动视频翻译配音,自动翻译视频字幕和回填样式,自动硬字幕翻译。

    Community JollyToday
    kitfunso

    Hippo

    One memory for every agent you'll ever use. Hippo writes what you teach a coding agent into a store in your repo, and your other agents read that same store.

    Community kitfunso
    Avazbek22

    DevProjex: MCP / GUI / CLI / TUI all in one

    Repomix alternative with up to 40% fewer tokens. Turn any codebase or Git repository into safe, token-efficient context for LLM and coding agents like Claude Code, Codex, and Cursor. GUI, TUI, CLI, and a read-only RAG MCP server with Live Context, agent journal, Smart Ignore, secret/PII redaction, and code compression. Windows, macOS, Linux.

    Community Avazbek22
    membaseai

    Membase

    Memory layer for AI agents — SDKs, CLI and MCP server for Membase

    Community membaseai