Skip to main content

水工告警MCP服务,提供船舶围栏检测、船舶查询、许可船判断等功能

Project description

water-alarm-mcp

水工告警MCP服务,提供船舶围栏检测、船舶查询、许可船判断等功能。

功能

  • is_point_in_polygon: 判断船舶是否在电子围栏内部
  • get_fence_list: 返回电子围栏列表
  • search_vessels_by_name: 根据船舶名称模糊查询船舶列表
  • search_vessel_by_mmsi: 根据MMSI精确查询船舶信息
  • is_permitted_vessel: 根据MMSI查询船舶是否是许可船

安装

pip install water-alarm-mcp

使用

在 AI 客户端中使用

Claude Desktop / Cursor:

在你的 mcp.json 文件中添加以下配置:

{
  "mcpServers": {
    "water-alarm-mcp": {
      "command": "uvx",
      "args": ["water-alarm-mcp"]
    }
  }
}

命令行运行

water-alarm-mcp

工具

is_point_in_polygon

判断船舶是否在电子围栏内部。

参数:

  • lng: 船舶经度
  • lat: 船舶纬度
  • polygon_wkt: 电子围栏的多边形区域(WKT格式),可选,默认为TJ03标段桥梁警戒区

返回:

  • 是否在围栏内(boolean)

get_fence_list

返回电子围栏列表。

参数: 无

返回:

  • 电子围栏列表

search_vessels_by_name

根据船舶名称模糊查询船舶列表。

参数:

  • vessel_name: 船舶名称(模糊匹配)

返回:

  • 船舶列表,包含mmsi、current_time、speed、lng、lat、vessel_name、project_id

search_vessel_by_mmsi

根据MMSI精确查询船舶信息。

参数:

  • mmsi: 船舶MMSI编码

返回:

  • 船舶信息或None

is_permitted_vessel

根据MMSI查询船舶是否是许可船。

参数:

  • mmsi: 船舶MMSI编码

返回:

  • 是否是许可船(boolean)

许可证

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

water_alarm_mcp-1.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

water_alarm_mcp-1.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file water_alarm_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: water_alarm_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for water_alarm_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a40834857ec2a90ba22413bd761961b27ff0061c9def94211a5a6ce66e3d4faf
MD5 be2b2708382bb5c6c11c4466e51bc6c4
BLAKE2b-256 d3556f15894dbc92425bf10c2801495459dac87ccb9f48d045b1d8ccc7a430ba

See more details on using hashes here.

File details

Details for the file water_alarm_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for water_alarm_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d44a43990c07b0f65dc531042280121c5f42e7ef09b683e86f2272487162a559
MD5 619a5167b1775b266525c099e749ae64
BLAKE2b-256 6840f0435eda509ce48010e8716a221a0965094f49c54bb1cf4b8cb5321fa407

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page