Get the FREE Ultimate OpenClaw Setup Guide →

police-uk-api

official MCP TypeScript SDK server providing tools to access and interact with the police.uk API, offering data on crimes, police forces, neighbourhoods, and stop-and-search incidents.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio dwain-barnes-police-uk-api-mcp-server npx -y mcp-server-police-uk

How to use

This MCP server provides a collection of tools to interact with the official police.uk API, exposing crime data, police force information, neighbourhood details, and stop-and-search records through a consistent MCP interface. It acts as a bridge between MCP-compatible clients and police.uk endpoints, offering 21 distinct tools such as get_street_level_crimes, get_force_details, get_neighbourhood_details, get_stop_searches_by_area, and more. You can query data by location, area, or ID, receive structured responses with type safety, and integrate these capabilities into agents, copilots, or other MCP-enabled workflows. To use it, run the server via MCP tooling (for example with npx) and then call the available tools through your MCP client, passing the appropriate parameters defined by each tool’s schema.

How to install

Prerequisites:

  • Node.js and npm installed on your machine
  • Internet access to fetch the package from npm

Installation options:

  1. Quick start (no local install, run via npx):

    • Ensure Node.js is installed
    • Run: npx mcp-server-police-uk
  2. Global install (optional, for persistent access):

    • Ensure Node.js is installed
    • Run: npm install -g mcp-server-police-uk
    • Start the server: mcp-server-police-uk
  3. Development or local testing (clone and run locally):

Notes:

  • The project uses the MCP TypeScript SDK; ensure your environment supports TypeScript tooling if you plan to build locally.

Additional notes

Tips and considerations:

  • The server uses the police.uk API, which has rate limits. Be mindful of request volume when integrating with clients.
  • All data originates from the official police.uk API and is typically updated monthly; plan caching or update checks accordingly.
  • The MCP server exposes a set of 21 tools for querying crimes, forces, neighbourhoods, and stop-and-search data. Refer to the tool list in the README for exact method names and parameters.
  • If you encounter issues with CLI integration, verify you’re using the correct tool names and parameter structures as defined by each endpoint (e.g., get_street_level_crimes, get_force_details).
  • For Claude or other MCP clients, you can configure the server entry similarly to the examples shown in the README to streamline cross-application usage.

Related MCP Servers

Sponsor this space

Reach thousands of developers