City of Chicago Data Portal (data.cityofchicago.org) API and MCP server for AI agents
Let Claude, ChatGPT or your own agent read City of Chicago Data Portal (data.cityofchicago.org). No City of Chicago Data Portal (data.cityofchicago.org) API key needed.
Add to your agent
Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.
Read https://bowmark.ai/sites/data_cityofchicago.md and add Bowmark's City of Chicago Data Portal (data.cityofchicago.org) MCP server to my agent.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-data-cityofchicago https://api.bowmark.ai/mcp/site/data_cityofchicagoPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-data-cityofchicago": {
"url": "https://api.bowmark.ai/mcp/site/data_cityofchicago"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-data-cityofchicago","type":"http","url":"https://api.bowmark.ai/mcp/site/data_cityofchicago"}'Run this in a terminal.
codex mcp add bowmark-data-cityofchicago --url https://api.bowmark.ai/mcp/site/data_cityofchicagoIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/data_cityofchicagoIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/data_cityofchicagoAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/data_cityofchicagoFunctions
Open a function to see its parameters and run it with your own API key.
getDatasetRead one data.cityofchicago.org dataset's metadata by id (or its dataset URL): name, description, category, license, tags, update dates, and every…POST /v1/sites/data_cityofchicago/getDataset
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/data_cityofchicago/getDataset \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":"4ijn-s7e5"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.data_cityofchicago.getDataset("4ijn-s7e5");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.data_cityofchicago.getDataset("4ijn-s7e5"))Responsereturns data_cityofchicagoDatasetDetailinterface data_cityofchicagoColumn { fieldName: string; // the name SoQL $select/$where/$order take label: string | null; type: string | null; description: string | null; } interface data_cityofchicagoDatasetDetail { id: string; name: string; description: string | null; category: string | null; license: string | null; attribution: string | null; tags: string[]; createdAt: string | null; dataUpdatedAt: string | null; columns: data_cityofchicagoColumn[]; url: string; }queryDatasetRead rows from one data.cityofchicago.org dataset by id with SoQL: $select, $where, $group, $order, $q full-text, limit/offset, or exact-match…POST /v1/sites/data_cityofchicago/queryDataset
Parameters
Four-by-four id like "4ijn-s7e5", or a dataset URL.
SoQL $order, e.g. "inspection_date DESC".
Default 25, max 5000.
curl -X POST https://api.bowmark.ai/v1/sites/data_cityofchicago/queryDataset \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"datasetId":"4ijn-s7e5","order":"inspection_date DESC","limit":1}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.data_cityofchicago.queryDataset({ datasetId: "4ijn-s7e5", order: "inspection_date DESC", limit: 1 });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.data_cityofchicago.queryDataset({ "datasetId": "4ijn-s7e5", "order": "inspection_date DESC", "limit": 1 }))Responsereturns data_cityofchicagoQueryResultinterface data_cityofchicagoQueryResult { datasetId: string; rows: Record<string, unknown>[]; // keys are column fieldNames (or $select aliases); every value is a string soql: Record<string, string>; // the SoQL clauses that ran }searchDatasetsStart here: searchDatasets({ query: "food inspections" }) searches the City of Chicago data portal (data.cityofchicago.org) catalog by keyword (also…POST /v1/sites/data_cityofchicago/searchDatasets
Parameters
curl -X POST https://api.bowmark.ai/v1/sites/data_cityofchicago/searchDatasets \ -H "Authorization: Bearer $BOWMARK_API_KEY" \ -H "Content-Type: application/json" \ -d '{"args":{"query":"food inspections","limit":3}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.data_cityofchicago.searchDatasets({ query: "food inspections", limit: 3 });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.data_cityofchicago.searchDatasets({"query": "food inspections", "limit": 3}))Responsereturns data_cityofchicagoSearchResultinterface data_cityofchicagoDataset { id: string; // the id getDataset and queryDataset take name: string; description: string | null; category: string | null; attribution: string | null; updatedAt: string | null; dataUpdatedAt: string | null; columnNames: string[]; // SoQL field names of the table's columns url: string; } interface data_cityofchicagoSearchResult { total: number | null; datasets: data_cityofchicagoDataset[]; }