Data La
v0.2.1DataLA 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.)
| Parameter | Type | Description |
|---|---|---|
dataset * | string | One of: crime, arrests, businesses, permits, 311. |
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
limit | number | Rows to return (1-1000, default 20). |
where | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
resource_id * | string | Socrata resource id, e.g. "2nrs-mtv8" (crime data). |
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
group | string | SoQL $group (e.g. "crm_cd_desc"). |
limit | number | Max rows (default 100, max 5000). |
offset | number | Row offset for paging. |
order | string | SoQL $order (e.g. "date_occ DESC"). |
select | string | SoQL $select (e.g. "crm_cd_desc, count(*)"). |
where | string | SoQL $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.
| Parameter | Type | Description |
|---|---|---|
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
limit | number | Max datasets (1-100, default 20). |
offset | number | Offset for paging. |
query | string | Keyword(s), e.g. "parking", "budget", "tree". |