md-dmv
Provides Maryland DMV monthly vehicle registration counts and electric/plug-in hybrid adoption by county and ZIP code, with accurate totals and flexible querying.
README
@pipeworx/md-dmv
Maryland DMV MCP — monthly registered-vehicle counts and electric/plug-in hybrid adoption by county and ZIP code, from the Maryland Motor Vehicle Administration (MVA).
Tools
md_dmv_vehicle_registrations(county?, month?, limit?)— registered vehicles by county for one month, with a genuine statewide total and each county's share of it. Answers "how many vehicles are registered in Montgomery County Maryland", "which Maryland county has the most registered vehicles", "how many cars are registered in Maryland".md_dmv_ev_adoption(county?, zip?, month?, group_by?, limit?)— battery-electric and plug-in hybrid registrations by county or by ZIP code for one month, with a Maryland total for context. Answers "how many EVs are registered in Montgomery County Maryland", "EV registrations in ZIP 20852", "which Maryland ZIP codes have the most EVs".
Auth
Keyless.
Data sources
- https://opendata.maryland.gov/resource/db8v-9ewn.json — MDOT MVA registered vehicles by
county, monthly. Fields:
year_month("2026/06"),county,vehicle_count. 25 rows per month (23 counties, Baltimore City, and aNULLbucket for registrations the MVA could not assign). - https://opendata.maryland.gov/resource/qtcv-n3tc.json — MDOT MVA electric and plug-in
hybrid registrations by county, monthly. Fields:
year_month,fuel_category("Electric" | "Plug-In Hybrid"),county,count. ~464 rows per month. - https://opendata.maryland.gov/resource/tugr-unu9.json — same, by ZIP code. Fields:
year_month,fuel_category,zip_code,count. ~2,065 rows per month.
All three run monthly from 2020/07 to 2026/06 (latest as of 2026-07-29).
Gotcha: the Maryland WAF rejects query shapes, not queries
opendata.maryland.gov sits behind a Cloudflare WAF that answers certain SoQL query
shapes with a "Just a moment..." interstitial — HTTP 403 with an HTML body — instead of
data. It is reproducible, and it is specific to this one domain: data.ny.gov,
data.wa.gov and data.ct.gov all accept the identical clauses without complaint. It was
first hit from a deployed Cloudflare Worker, and has since been reproduced from a laptop
too, so it is a property of the request, not of the caller's IP.
Confirmed to trip it:
| Shape | Example |
|---|---|
any like '%x%' wildcard clause |
$where=upper(county) like '%MONTGOMERY%' |
a $where with two conditions joined by AND |
$where=year_month='2026/06' AND county='MONTGOMERY' |
a $select with two aggregate expressions |
$select=min(year_month) as mn, max(year_month) as mx |
Confirmed to work:
| Shape | Example |
|---|---|
a single year_month equality condition |
$where=year_month='2026/06' |
a $select with one aggregate |
$select=max(year_month) as mx |
So this pack sends exactly one condition, pulls the whole month (at most ~2,100 rows), and does all county/ZIP narrowing, aggregation and sorting in code. That is cheap, and it is the difference between the pack returning data and returning an HTML challenge page. Do not "optimise" the filtering back onto the server.
A side benefit: because the complete month is always in hand, statewide_total_vehicles
and maryland_plug_in_vehicles are real totals rather than sums of whatever survived
limit. The row-level sum is reported separately as sum_of_returned_rows.
Gotcha: the same county is spelled two different ways
The registration file and the EV files disagree on punctuation for the same places:
| Place | db8v-9ewn (registrations) |
qtcv-n3tc / tugr-unu9 (EV) |
|---|---|---|
| Prince George's County | PRINCE GEORGE'S |
PRINCE GEORGES |
| St. Mary's County | ST. MARY'S |
ST MARYS |
| Queen Anne's County | QUEEN ANNE'S |
QUEEN ANNES |
Both tools fold punctuation away before matching, so a caller can pass either spelling.
Gotcha: the EV files carry out-of-state counties
Maryland records the registrant's county (or ZIP) of residence, so qtcv-n3tc carries
~300 non-Maryland counties with small counts — ADAMS, ALAMEDA, ALBEMARLE and so on — mixed
in with the 24 Maryland jurisdictions. Every county row is flagged in_maryland, and
maryland_plug_in_vehicles counts only the Maryland ones.
The nastiest instance: Virginia's PRINCE GEORGE sits right next to Maryland's
PRINCE GEORGES, and Virginia's is the exact match for the phrase "Prince George". The
county resolver therefore returns both rows (flagged) rather than silently picking the
one-vehicle Virginia county over the 17,899-vehicle Maryland one.
Verified figures (2026/06, checked 2026-07-29)
| Query | Result |
|---|---|
md_dmv_vehicle_registrations{county:"Montgomery"} |
804,525 vehicles |
md_dmv_vehicle_registrations{} |
5,190,640 statewide |
md_dmv_ev_adoption{county:"Montgomery"} |
36,477 Electric + 12,319 Plug-In Hybrid |
md_dmv_ev_adoption{zip:"20852"} |
1,660 Electric + 566 Plug-In Hybrid |
md_dmv_ev_adoption{} |
153,463 Maryland plug-in vehicles |
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"md-dmv": {
"url": "https://gateway.pipeworx.io/md-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 Maryland MVA data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。