使用说明
英国MCP服务器警察
一个模型上下文协议(MCP)服务器,提供访问和与警察互动的工具。uk API,提供关于英国各地犯罪、警察部队、社区和中途停留搜索事件的全面数据。
特性
- 21种不同的工具 用于查询police.uk API端点
- 检索街头犯罪、社区详细信息、部队信息、拦截和搜查记录等
- 使用官方MCP TypeScript SDK构建
- 易于与MCP兼容系统集成
- 全面的错误处理和类型安全
安装
直接从npm安装:
npm install -g mcp-server-police-uk
或与npx一起使用(无需安装):
npx mcp-server-police-uk
用法
使用克劳德桌面
添加到您的Claude Desktop配置文件中:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
窗户: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"police-uk": {
"command": "npx",
"args": ["-y", "mcp-server-police-uk"]
}
}
}
发展
要在本地贡献或运行:
# Clone the repository
git clone https://github.com/dwain-barnes/police-uk-api-mcp-server.git
cd police-uk-api-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run locally
npm start
与其他MCP客户端
npx mcp-server-police-uk
可用工具
犯罪数据
get_street_level_crimes-按地点或地区检索街道犯罪get_crimes_at_location-在特定地点犯罪get_crimes_no_location-检索无法映射到位置的犯罪get_crime_categories-获取有效的犯罪类别get_last_updated-获取犯罪数据上次更新的日期get_outcomes_for_crime-获取特定犯罪的结果get_street_level_outcomes-按位置或区域检索结果
警力
get_list_of_forces-召集所有警力get_force_details-获取特定警察部队的详细信息get_senior_officers-为警察部队招募高级警官
街区
get_neighbourhoods-为警察部队争取社区get_neighbourhood_details-获取特定社区的详细信息get_neighbourhood_boundary-获取邻居的边界坐标get_neighbourhood_team-为社区招募团队成员get_neighbourhood_events-为社区安排活动get_neighbourhood_priorities-为社区确定治安优先事项locate_neighbourhood-找到给定坐标的社区团队
盘查
get_stop_searches_by_area-在一个区域内进行拦截和搜索get_stop_searches_by_location-在特定位置停止并搜索get_stop_searches_no_location-在没有位置的情况下进行拦截和搜索get_stop_searches_by_force-被警察拦下搜查
例子
在某个地点附近犯罪
// Get crimes within 1 mile of coordinates
get_street_level_crimes({
lat: 51.5074,
lng: -0.1278,
date: "2024-01"
})
查找您当地的警察团队
// Find neighbourhood team for coordinates
locate_neighbourhood({
lat: 51.5074,
lng: -0.1278
})
获取部队信息
// Get details about Metropolitan Police
get_force_details({
force_id: "metropolitan"
})
API费率限制
此服务器遵守police.uk API速率限制。API是免费使用的,但有使用限制,以确保所有用户都能公平访问。
数据源
所有数据均来源于官方police.uk API,该网站提供有关英格兰、威尔士和北爱尔兰治安的公开数据。数据通常每月更新一次。
贡献
欢迎投稿!请随时:
- 报告问题 GitHub问题
- 提交拉取请求
- 建议新功能或改进
仓库
- GitHub: https://github.com/dwain-barnes/mcp-server-police-uk
- npm: https://www.npmjs.com/package/mcp-server-police-uk
许可证
MIT许可证-请参阅 许可证 文件以获取详细信息。
支持
如果您遇到任何问题或有疑问:
- 在上提交问题 GitHub问题
- 检查 police.uk API文档 针对特定于API的问题
作者
由...创建 德韦恩·巴恩斯