npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mcp-server-police-uk

v1.0.1

Published

MCP server for police.uk API - access UK crime data, police forces, neighbourhoods, and stop-and-search incidents

Readme

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

Installation

Install directly from npm:

npm install -g mcp-server-police-uk

Or use with npx (no installation required):

npx mcp-server-police-uk

Usage

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": ["mcp-server-police-uk"]
    }
  }
}

With other MCP clients

npx mcp-server-police-uk

Available Tools

Crime Data

  • get_street_level_crimes - Retrieve street-level crimes by location or area
  • get_crimes_at_location - Get crimes at a specific location
  • get_crimes_no_location - Retrieve crimes that couldn't be mapped to a location
  • get_crime_categories - Get valid crime categories
  • get_last_updated - Get the date when crime data was last updated
  • get_outcomes_for_crime - Get outcomes for a specific crime
  • get_street_level_outcomes - Retrieve outcomes by location or area

Police Forces

  • get_list_of_forces - Get all police forces
  • get_force_details - Get details for a specific police force
  • get_senior_officers - Get senior officers for a police force

Neighbourhoods

  • get_neighbourhoods - Get neighbourhoods for a police force
  • get_neighbourhood_details - Get details for a specific neighbourhood
  • get_neighbourhood_boundary - Get boundary coordinates for a neighbourhood
  • get_neighbourhood_team - Get team members for a neighbourhood
  • get_neighbourhood_events - Get scheduled events for a neighbourhood
  • get_neighbourhood_priorities - Get policing priorities for a neighbourhood
  • locate_neighbourhood - Find neighbourhood team for given coordinates

Stop and Search

  • get_stop_searches_by_area - Get stop and searches within an area
  • get_stop_searches_by_location - Get stop and searches at a specific location
  • get_stop_searches_no_location - Get stop and searches with no location
  • get_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 submit a Pull Request.

License

MIT License - see LICENSE file for details.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.