kcmo_query
Pack: data-kcmo · Endpoint: https://gateway.pipeworx.io/data-kcmo/mcp
Run a raw SoQL query against any Kansas City, MO open-data resource (data.kcmo.org) by its Socrata id (8-char like “vsgj-uufz”). Full SoQL: where/select/group/order/limit/offset. Use kcmo_datasets to find a resource id, or kcmo_recent for the common ones.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Socrata resource id, e.g. “vsgj-uufz”. |
where | string | no | SoQL $where filter. |
select | string | no | SoQL $select. |
group | string | no | SoQL $group. |
order | string | no | SoQL $order. |
limit | number | no | Max rows (default 100, max 5000). |
offset | number | no | Row offset for paging. |
Example call
Arguments
{
"resource_id": "vsgj-uufz",
"select": "report_date, offense_type",
"limit": 100,
"_apiKey": "your-data-kcmo-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/data-kcmo/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"kcmo_query","arguments":{"resource_id":"vsgj-uufz","select":"report_date, offense_type","limit":100,"_apiKey":"your-data-kcmo-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('kcmo_query', {
"resource_id": "vsgj-uufz",
"select": "report_date, offense_type",
"limit": 100,
"_apiKey": "your-data-kcmo-api-key"
});
More examples
{
"resource_id": "xyz12345",
"where": "created_date > '2024-01-01'",
"order": "created_date DESC",
"limit": 250,
"_apiKey": "your-data-kcmo-api-key"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"data-kcmo": {
"url": "https://gateway.pipeworx.io/data-kcmo/mcp"
}
}
}
See Getting Started for client-specific install steps.