get_crimes
Pack: ukpolice · Endpoint: https://gateway.pipeworx.io/ukpolice/mcp
Get street-level crimes reported near a latitude/longitude in England, Wales or Northern Ireland, from the official police open data. Returns each crime’s category, street, month and outcome status, plus the month the figures are actually for. Answers “what crime was reported near date for the latest published month — the feed runs about two months in arrears, and a month that has not been published yet is reported as such rather than as an absence of crime.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | yes | Latitude of the location |
lng | number | yes | Longitude of the location |
date | string | no | Month in YYYY-MM form, e.g. “2026-05”. Omit for the latest published month. Data lags roughly two months; if the requested month is not published yet, the most recent available month is returned and labelled. |
Example call
Arguments
{
"lat": 51.5074,
"lng": -0.1278
}
curl
curl -X POST https://gateway.pipeworx.io/ukpolice/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_crimes","arguments":{"lat":51.5074,"lng":-0.1278}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_crimes', {
"lat": 51.5074,
"lng": -0.1278
});
More examples
{
"lat": 53.4808,
"lng": -2.2426,
"date": "2024-01"
}
Response shape
Always returns: count, crimes
| Field | Type | Description |
|---|---|---|
count | number | Total number of crimes returned |
crimes | array | Array of street-level crimes |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of crimes returned"
},
"crimes": {
"type": "array",
"description": "Array of street-level crimes",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Crime ID"
},
"category": {
"type": "string",
"description": "Crime category"
},
"month": {
"type": "string",
"description": "Month of the crime in YYYY-MM format"
},
"street": {
"type": "string",
"description": "Street name where crime occurred"
},
"outcome": {
"type": "string",
"description": "Outcome category or 'Under investigation'"
},
"outcome_date": {
"type": [
"string",
"null"
],
"description": "Date of outcome if available"
}
},
"required": [
"id",
"category",
"month",
"street",
"outcome",
"outcome_date"
]
}
}
},
"required": [
"count",
"crimes"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"ukpolice": {
"url": "https://gateway.pipeworx.io/ukpolice/mcp"
}
}
}
See Getting Started for client-specific install steps.