A server for CrimeWatch location risk and city comparisons.
Project details
CrimeWatch MCP serves as a robust Model Context Protocol server that connects local clients to the CrimeWatch API. It enables police-reported location risk assessments and facilitates city comparisons through a user-friendly interface. Enjoy support for Node.js 22 and later with ample free tier API calls.
The CrimeWatch MCP is an efficient Model Context Protocol server designed to connect local clients to the CrimeWatch API for accessing crucial data related to police-reported location risks, city comparisons, and data coverage.
To integrate CrimeWatch MCP into a compatible client, use the following JSON entry for local MCP server support:
{
"mcpServers": {
"crimewatch": {
"command": "npx",
"args": ["-y", "@crimewatches/mcp-server@0.1.1"]
}
}
}
Alternatively, for MCP bundles, download crimewatch.mcpb or access the versioned npm tarball through the GitHub releases.
The server provides a variety of tools for analyzing location data. Below are sample arguments for some key tools:
| Tool | Sample Arguments |
|---|---|
list_covered_cities | {"country_code":"CA","query":"toronto","limit":1} |
score_location_risk | {"lat":43.6534,"lng":-79.3841,"city_id":"toronto","radius_km":1,"days":30} |
compare_cities_risk | {"city_a":"toronto","city_b":"us-ny-new-york","days":30} |
An anonymous request can be tested against the hosted service without requiring a client installation:
curl --fail-with-body https://www.crimewatches.com/api/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_covered_cities","arguments":{"query":"toronto","limit":1}}}'
Verify releases with the following command:
npm test
CRIMEWATCH_LIVE_SMOKE=1 npm test
npm pack --dry-run
This ensures all components are synchronized and function correctly with the CrimeWatch API, providing confidence in expected performance and reliability.
For detailed explanations of methodologies and limitations regarding the data, please refer to the CrimeWatch Methodology. This documentation encapsulates the project’s commitment to offering accurate and contextual environmental data, fostering informed decision-making based on location risk assessments.
Comments
0Start the conversation
Share the first comment.