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.
Overview
The police-uk-api-mcp-server is a Python-based server that provides tools to access and interact with the police.uk API, offering data on crimes, police forces, neighbourhoods, and stop-and-search incidents.
To use the server, clone the repository, install the required packages, and run the server using Python. You can then configure it to integrate with an MCP ecosystem.
- 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.
- Accessing real-time crime data for specific neighbourhoods.
- Analyzing stop-and-search incidents for research purposes.
- Integrating police data into applications for enhanced public safety.
Add to your AI client
Use these steps to connect police-uk-api-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"police-uk-api-mcp-server-dwain-barnes": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-police-uk-api-mcp-server-dwain-barnes"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"police-uk-api-mcp-server-dwain-barnes": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-police-uk-api-mcp-server-dwain-barnes"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"police-uk-api-mcp-server-dwain-barnes": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-police-uk-api-mcp-server-dwain-barnes"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"police-uk-api-mcp-server-dwain-barnes": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-police-uk-api-mcp-server-dwain-barnes"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"police-uk-api-mcp-server-dwain-barnes": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-police-uk-api-mcp-server-dwain-barnes"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"police-uk-api-mcp-server-dwain-barnes": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-police-uk-api-mcp-server-dwain-barnes"
]
}
}
}FAQ
What are the prerequisites for using this server?
You need Python 3.11+ and the required packages: mcp and requests.
Is there documentation available?
Yes, the server comes with clear documentation for each tool.
Can I integrate this server with other systems?
Yes, it is designed for easy integration into MCP-compatible systems.