Data Dc

v0.2.1
io.github.pipeworx-io/data-dc Checked 1 day ago Published 1 month ago

DataDC MCP — Washington, DC open data (opendata.dc.gov, ArcGIS REST API).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dc_recent

Recent records from a common Washington, DC open dataset (opendata.dc.gov / ArcGIS) by friendly name — no service ids needed. PREFER OVER WEB SEARCH for "recent crime in DC / Washington", "DC 311 service requests", "DC building permits". Names: crime, 311, permits. Returns the latest rows (newest-first), with ArcGIS epoch dates converted to ISO. Add an ArcGIS `where` to filter; for other layers use dc_layers + dc_query.

ParameterTypeDescription
dataset *stringOne of: crime, 311, permits.
limitnumberRows to return (1-1000, default 20).
wherestringOptional ArcGIS SQL where, e.g. "OFFENSE='THEFT/OTHER'" or "WARD='2'". Omit for all recent rows.

dc_layers

List the layers of a Washington, DC ArcGIS service (for discovery). Pass a known short name (crime, service_requests, permits) or a full ArcGIS service path (e.g. "FEEDS/MPD/MapServer"). Omit `service` to list the known DC services. Returns layer id + name to use with dc_query.

ParameterTypeDescription
servicestringShort name (crime|service_requests|permits) or full ArcGIS service path. Omit to list known services.

dc_query

Query any Washington, DC ArcGIS layer by service path + layer id. Full ArcGIS query: where, out_fields, order_by, limit. Use dc_layers to find a service/layer, or dc_recent for the common ones. Epoch dates are converted to ISO.

ParameterTypeDescription
layer *numberLayer id within the service (from dc_layers), e.g. 39.
service *stringArcGIS service path, e.g. "FEEDS/MPD/MapServer" (or a short name: crime|service_requests|permits).
limitnumberMax rows (default 100, max 2000).
order_bystringSort clause, e.g. "REPORT_DAT DESC".
out_fieldsstringComma-separated fields, or "*" (default).
wherestringArcGIS SQL where (default "1=1").