montgomery_query
Pack: data-montgomery · Endpoint: https://gateway.pipeworx.io/data-montgomery/mcp
Run a raw SoQL query against any Montgomery County, MD open-data resource (data.montgomerycountymd.gov) by its Socrata id (8-char like “icn6-v9z3”). Full SoQL: where/select/group/order/limit/offset. Use montgomery_datasets to find a resource id, or montgomery_recent for the common ones.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
resource_id | string | yes | Socrata resource id, e.g. “icn6-v9z3”. |
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": "icn6-v9z3",
"where": "status = 'Open'",
"limit": 100,
"_apiKey": "your-data-montgomery-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/data-montgomery/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"montgomery_query","arguments":{"resource_id":"icn6-v9z3","where":"status = '\''Open'\''","limit":100,"_apiKey":"your-data-montgomery-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('montgomery_query', {
"resource_id": "icn6-v9z3",
"where": "status = 'Open'",
"limit": 100,
"_apiKey": "your-data-montgomery-api-key"
});
More examples
{
"resource_id": "p2c7-bxz5",
"select": "permit_type, count(*) as count",
"group": "permit_type",
"order": "count DESC",
"_apiKey": "your-data-montgomery-api-key"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"data-montgomery": {
"url": "https://gateway.pipeworx.io/data-montgomery/mcp"
}
}
}
See Getting Started for client-specific install steps.