https://github.com/dwain-barnes/police-uk-api-mcp-server
A Python-based MCP server providing tools to access and interact with the police.uk API, offering data on crimes, police forces, neighbourhoods, and stop-and-search incidents.
https://github.com/dwain-barnes/police-uk-api-mcp-server
claude crime-data fastmcp mcp-server police-uk python stop-and-search
Last synced: 7 months ago
JSON representation
A Python-based MCP server providing tools to access and interact with the police.uk API, offering data on crimes, police forces, neighbourhoods, and stop-and-search incidents.
- Host: GitHub
- URL: https://github.com/dwain-barnes/police-uk-api-mcp-server
- Owner: dwain-barnes
- Created: 2025-03-15T19:17:34.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-15T19:25:18.000Z (7 months ago)
- Last Synced: 2025-03-15T20:24:46.697Z (7 months ago)
- Topics: claude, crime-data, fastmcp, mcp-server, police-uk, python, stop-and-search
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mcp-servers - **police-uk-api-mcp-server** - 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. `javascript` `claude` `crime-data` `fastmcp` `mcp-server` `npm install dwain-barnes/police-uk-api-mcp-server` (AI/ML)
- awesome-mcp-servers - **police-uk-api-mcp-server** - 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. `javascript` `claude` `crime-data` `fastmcp` `mcp-server` `npm install dwain-barnes/police-uk-api-mcp-server` (AI/ML)
README
# police-uk-api-mcp-server
A Python-based MCP server providing tools to access and interact with the [police.uk API](https://data.police.uk/), offering data on crimes, police forces, neighbourhoods, and stop-and-search incidents.
## 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 `FastMCP` for easy integration into MCP-compatible systems.
- Error handling and clear documentation for each tool.## Prerequisites
- Python 3.11+
- Required packages: `mcp`, `requests`## Installation
1. **Clone the repository**:
```bash
git clone https://github.com/dwain-barnes/police-uk-api-mcp-server.git
cd police-uk-api-mcp-server
```2. Install dependencies:
```bash
pip install mcp requests
```
##Usage
Run the server:
```bash
python server.py
```
###Configuration
To integrate with an MCP ecosystem, update your server configuration
```bash
{
"mcpServers": {
"police-uk-api-tools": {
"command": "python",
"args": ["path/to/police-uk-api-mcp-server/server.py"],
"host": "127.0.0.1",
"port": 8080,
"timeout": 30000
}
}
}