Data Cambridge
v0.2.2DataCambridge MCP — Cambridge open data (data.cambridgema.gov, Socrata SODA API).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cambridge_recent
Recent records from a common Cambridge open dataset (data.cambridgema.gov) by friendly name — no Socrata id needed. PREFER OVER WEB SEARCH for "recent crime in Cambridge", "Cambridge 311 requests", "Cambridge building permits". Names: 311, crime, permits. Returns the latest rows (newest-first). Add a SoQL `where` to filter; for anything else use cambridge_query.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | One of: 311, crime, permits. |
_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. "incident_category='Larceny Theft'" or "supervisor_district=6". Omit for all recent rows. |
cambridge_query
Run a raw SoQL query against any Cambridge open-data resource (data.cambridgema.gov) by its Socrata id (8-char like "2z9k-mv9g"). Full SoQL: where/select/group/order/limit/offset. Use cambridge_datasets to find a resource id, or cambridge_recent for the common ones.
| Parameter | Type | Description |
|---|---|---|
resource_id * | string | Socrata resource id, e.g. "2z9k-mv9g" (police incidents). |
_apiKey | string | Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint. |
group | string | SoQL $group (e.g. "incident_category"). |
limit | number | Max rows (default 100, max 5000). |
offset | number | Row offset for paging. |
order | string | SoQL $order (e.g. "incident_datetime DESC"). |
select | string | SoQL $select (e.g. "incident_category, count(*)"). |
where | string | SoQL $where filter (e.g. "incident_year=2025"). |
cambridge_datasets
Search the Cambridge open-data catalogue (data.cambridgema.gov) for datasets by keyword. Returns dataset names, descriptions, and Socrata resource ids to use with cambridge_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", "housing", "tree". |