UK Police
liveGovernmentQuery street-level crime data, police forces, and crime outcomes from the UK Police open data API
3tools
0msauth
free tier50 calls/day
Tools
get_crimesrequired: lat, lngGet street-level crimes near a latitude/longitude for a given month. Returns crime category, location, and outcome status.
Parameters
NameTypeDescription
latreqnumberLatitude of the locationlngreqnumberLongitude of the locationdateoptstringMonth to query in YYYY-MM format (e.g. "2024-01"). Defaults to latest available.Try it
Response
get_forcesList all police forces in England, Wales, and Northern Ireland. Returns force ID and name.
No parameters required.
Try it
Response
get_outcomesrequired: lat, lngGet outcomes for crimes at a location for a given month. Returns outcome category and date for each crime.
Parameters
NameTypeDescription
latreqnumberLatitude of the locationlngreqnumberLongitude of the locationdateoptstringMonth to query in YYYY-MM format (e.g. "2024-01"). Defaults to latest available.Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/ukpolice/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/ukpolice/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_crimes","arguments":{"lat": 37.7749, "lng": -122.4194}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("get_crimes", {"lat":"example","lng":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("query street-level crime data, police forces, and crime outcomes from the uk police open data api");