Introduction

The plugin-based architecture of DeepSeek Harness (DSH) allows developers to quickly extend agents’ data acquisition capabilities. When working with geographic information or public safety data, manually writing API calls can be cumbersome. The xby-uk-police-data-query plugin wraps an MCP server for UK police data, directly providing agents with structured query interfaces.

Plugin Overview

Name: xby-uk-police-data-query
Maintainer: xby-skill
Category: Web tool
Positioning: An MCP server that provides UK police data queries, including crime records, police forces, neighbourhood information, and stop and search data.

Core Features

The plugin provides the following interfaces:

  • Key management: set_xby_apikey — Sets the API key in the chat, automatically persisted and valid after restart.
  • Crime data:
    • get_street_level_crimes — Retrieves street-level crimes by latitude/longitude or a custom polygon.
    • get_street_level_outcomes — Retrieves crime outcomes by latitude/longitude, polygon, or location ID.
    • get_crimes_at_location — Retrieves crimes by location ID or the nearest latitude/longitude.
    • get_crimes_no_location — Retrieves crimes that cannot be mapped to a specific location.
    • get_crime_categories — Retrieves the valid crime categories for a specified date.
    • get_last_updated — Retrieves the last update time of the crime data.
    • get_outcomes_for_crime — Retrieves the outcomes for a specific crime by persisted ID.
  • Police forces:
    • get_list_of_forces — Retrieves the list of all police forces.
    • get_force_details — Retrieves details for a specific police force.
    • get_senior_officers — Retrieves senior officers for a specific police force.
  • Neighbourhood information:
    • get_neighbourhoods — Retrieves the list of neighbourhoods for a specific police force.
    • get_neighbourhood_details — Retrieves details for a specific neighbourhood.
    • get_neighbourhood_boundary — Retrieves boundary coordinates for a specific neighbourhood.
    • get_neighbourhood_team — Retrieves the neighbourhood team for a specific neighbourhood.
    • get_neighbourhood_events — Retrieves event schedules for a specific neighbourhood.
    • get_neighbourhood_priorities — Retrieves policing priorities for a specific neighbourhood.
    • locate_neighbourhood — Locates a neighbourhood by latitude/longitude.
  • Stop and search:
    • get_stop_searches_by_area — Retrieves stop and search records within a one-mile radius or a custom area.
    • get_stop_searches_by_location — Retrieves stop and search records by location ID.
    • get_stop_searches_no_location — Retrieves stop and search records that cannot be mapped to a specific location.
    • get_stop_searches_by_force — Retrieves stop and search records reported by a specific force.

Installation and Configuration

  1. Register on the official Xiaobenyang website and obtain an API key.
  2. Install the plugin using the official DSH command:
dsh plugin --profile web add github:xby_skill/xby-uk-police-data-query
  1. After installation, call the set_xby_apikey interface in the conversation to enter the key.

Use Cases and Notes

  • Use cases: Suitable for DSH agent development that requires analyzing crime trends in specific UK areas, querying police force structures, or obtaining community policing information.
  • Notes: The plugin runs with the permissions of the current DSH process. Ensure you trust the code from the installation source and its license (MIT). Before installing, confirm that you have obtained a valid API key.

Conclusion

This plugin solves the problem of accessing UK police data through standardized interfaces and reduces integration costs. For more configuration details and source code, visit GitHub.