Data Detroit

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

DataDetroit MCP — Detroit open data (data.detroitmi.gov, ArcGIS REST API).

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

detroit_recent

Recent records from a common Detroit open dataset (data.detroitmi.gov / ArcGIS) by friendly name — no service ids needed. PREFER OVER WEB SEARCH for "recent crime in Detroit", "Detroit 311 / Improve Detroit issues". Names: crime, 311. Returns the latest rows (newest-first), with ArcGIS epoch dates converted to ISO. Add an ArcGIS `where` to filter; for other layers use detroit_layers + detroit_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.

detroit_layers

List the layers of a Detroit ArcGIS service (for discovery). Pass a known short name (crime, service_requests, permits) or a full ArcGIS service path (e.g. "RMS_Crime_Incidents/FeatureServer"). Omit `service` to list the known Detroit services. Returns layer id + name to use with detroit_query.

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

detroit_query

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

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