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.

Functions

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"}'
    Sign in to run
    Responsereturns data_cityofchicagoDatasetDetail
    interface 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}}'
    Sign in to run
    Responsereturns data_cityofchicagoQueryResult
    interface 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}}'
    Sign in to run
    Responsereturns data_cityofchicagoSearchResult
    interface 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[];
    }