MCP Server Police UK
This server provides access to the UK's official police.uk API, enabling queries on crimes, police forces, neighbourhoods, and stop-and-search incidents across England, Wales, and Northern Ireland.
Crime Data
Retrieve street-level crimes by coordinates, custom polygon area, or location ID
Get crimes at a specific location or fetch unmapped crimes by force and category
Look up outcomes for a specific crime (by persistent ID) or street-level outcomes by area
Retrieve valid crime categories for a given date and check when data was last updated
Police Forces
List all police forces, get detailed information for a specific force, and retrieve senior officers
Neighbourhoods
List neighbourhoods for a given force; get details, boundary coordinates, team members, events, and policing priorities for a specific neighbourhood
Locate the neighbourhood policing team responsible for a given set of coordinates
Stop and Search
Query stop and search incidents by radius or polygon area, at specific locations, those not mapped to a location, or reported by a particular police force
Reliability & Integration
Built with the official MCP TypeScript SDK, with comprehensive error handling, type safety, and respect for police.uk API rate limits, making it easy to integrate with MCP-compatible systems including Claude Desktop.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server Police UKshow me recent crimes near London Bridge"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server Police UK
A Model Context Protocol (MCP) server providing tools to access and interact with the police.uk API, offering comprehensive data on crimes, police forces, neighbourhoods, and stop-and-search incidents across the UK.
Features
21 distinct tools for querying police.uk API endpoints
Retrieve street-level crimes, neighbourhood details, force information, stop-and-search records, and more
Built with the official MCP TypeScript SDK
Easy integration with MCP-compatible systems
Comprehensive error handling and type safety
Related MCP server: Property Price Search MCP Server
Installation
Install directly from npm:
npm install -g mcp-server-police-ukOr use with npx (no installation required):
npx mcp-server-police-ukUsage
With Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"police-uk": {
"command": "npx",
"args": ["-y", "mcp-server-police-uk"]
}
}
}Development
To contribute or run locally:
# Clone the repository
git clone https://github.com/dwain-barnes/police-uk-api-mcp-server.git
cd police-uk-api-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run locally
npm startWith other MCP clients
npx mcp-server-police-ukAvailable Tools
Crime Data
get_street_level_crimes- Retrieve street-level crimes by location or areaget_crimes_at_location- Get crimes at a specific locationget_crimes_no_location- Retrieve crimes that couldn't be mapped to a locationget_crime_categories- Get valid crime categoriesget_last_updated- Get the date when crime data was last updatedget_outcomes_for_crime- Get outcomes for a specific crimeget_street_level_outcomes- Retrieve outcomes by location or area
Police Forces
get_list_of_forces- Get all police forcesget_force_details- Get details for a specific police forceget_senior_officers- Get senior officers for a police force
Neighbourhoods
get_neighbourhoods- Get neighbourhoods for a police forceget_neighbourhood_details- Get details for a specific neighbourhoodget_neighbourhood_boundary- Get boundary coordinates for a neighbourhoodget_neighbourhood_team- Get team members for a neighbourhoodget_neighbourhood_events- Get scheduled events for a neighbourhoodget_neighbourhood_priorities- Get policing priorities for a neighbourhoodlocate_neighbourhood- Find neighbourhood team for given coordinates
Stop and Search
get_stop_searches_by_area- Get stop and searches within an areaget_stop_searches_by_location- Get stop and searches at a specific locationget_stop_searches_no_location- Get stop and searches with no locationget_stop_searches_by_force- Get stop and searches by police force
Examples
Get crimes near a location
// Get crimes within 1 mile of coordinates
get_street_level_crimes({
lat: 51.5074,
lng: -0.1278,
date: "2024-01"
})Find your local police team
// Find neighbourhood team for coordinates
locate_neighbourhood({
lat: 51.5074,
lng: -0.1278
})Get force information
// Get details about Metropolitan Police
get_force_details({
force_id: "metropolitan"
})API Rate Limits
This server respects the police.uk API rate limits. The API is free to use but has usage limits in place to ensure fair access for all users.
Data Source
All data is sourced from the official police.uk API, which provides open data about policing in England, Wales, and Northern Ireland. The data is typically updated monthly.
Contributing
Contributions are welcome! Please feel free to:
Report issues on GitHub Issues
Submit Pull Requests
Suggest new features or improvements
Repository
License
MIT License - see LICENSE file for details.
Support
If you encounter any issues or have questions:
File an issue on GitHub Issues
Check the police.uk API documentation for API-specific questions
Author
Created by Dwain Barnes
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dwain-barnes/police-uk-api-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server