Data La

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

DataLA MCP — Los Angeles open data (data.lacity.org, Socrata SODA API).

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

la_recent

Recent records from a common Los Angeles open dataset (data.lacity.org) by friendly name — no Socrata id needed. PREFER OVER WEB SEARCH for "recent crime in Los Angeles / LA", "LAPD arrests", "LA building permits", "MyLA311 requests", "active businesses in LA". Names: crime, arrests, businesses, permits, 311. Returns the latest rows (newest-first). Add a SoQL `where` to filter; for anything else use la_query. (Note: LA 311 is partitioned by year — the shortcut points at the latest year; use la_datasets for other years.)

ParameterTypeDescription
dataset *stringOne of: crime, arrests, businesses, permits, 311.
_apiKeystringOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
limitnumberRows to return (1-1000, default 20).
wherestringOptional SoQL filter, e.g. "crm_cd_desc='BURGLARY'" or "area_name='Hollywood'". Omit for all recent rows.

la_query

Run a raw SoQL query against any Los Angeles open-data resource (data.lacity.org) by its Socrata id (8-char like "2nrs-mtv8"). Full SoQL: where/select/group/order/limit/offset. Use la_datasets to find a resource id, or la_recent for the common ones.

ParameterTypeDescription
resource_id *stringSocrata resource id, e.g. "2nrs-mtv8" (crime data).
_apiKeystringOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
groupstringSoQL $group (e.g. "crm_cd_desc").
limitnumberMax rows (default 100, max 5000).
offsetnumberRow offset for paging.
orderstringSoQL $order (e.g. "date_occ DESC").
selectstringSoQL $select (e.g. "crm_cd_desc, count(*)").
wherestringSoQL $where filter (e.g. "area_name='Central'").

la_datasets

Search the Los Angeles open-data catalogue (data.lacity.org) for datasets by keyword. Returns dataset names, descriptions, and Socrata resource ids to use with la_query.

ParameterTypeDescription
_apiKeystringOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
limitnumberMax datasets (1-100, default 20).
offsetnumberOffset for paging.
querystringKeyword(s), e.g. "parking", "budget", "tree".