# City of Chicago Data Portal (data.cityofchicago.org) API and MCP server for AI agents (/sites/data_cityofchicago)

An API for City of Chicago Data Portal (data.cityofchicago.org): let Claude, ChatGPT or your own code read City of Chicago Data Portal (data.cityofchicago.org) through 3 functions, over MCP, HTTP, Node or Python. No City of Chicago Data Portal (data.cityofchicago.org) API key needed.

- Site: https://data.cityofchicago.org
- Functions: 3
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- City of Chicago Data Portal (data.cityofchicago.org) only, one tool per function: `https://api.bowmark.ai/mcp/site/data_cityofchicago` (name it `bowmark-data-cityofchicago`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-data-cityofchicago https://api.bowmark.ai/mcp/site/data_cityofchicago`
- Codex: `codex mcp add bowmark-data-cityofchicago --url https://api.bowmark.ai/mcp/site/data_cityofchicago`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/data_cityofchicago" }` under the name `bowmark-data-cityofchicago` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getDataset`: Read one data.cityofchicago.org dataset's metadata by id (or its dataset URL): name, description, category, license, tags, update dates, and every…
- `queryDataset`: Read rows from one data.cityofchicago.org dataset by id with SoQL: $select, $where, $group, $order, $q full-text, limit/offset, or exact-match…
- `searchDatasets`: Start here: searchDatasets({ query: "food inspections" }) searches the City of Chicago data portal (data.cityofchicago.org) catalog by keyword (also…

## Call one

In a Bowmark script, each function is `bowmark.providers.data_cityofchicago.<name>`. Ask `get_library` for data.cityofchicago.org to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on data.cityofchicago.org, and with which arguments?
get_library({ query: "data.cityofchicago.org" })

// 2. Call it in a script
const result = await bowmark.providers.data_cityofchicago.getDataset({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
