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.0.tar.gz (5.5 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.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: water_alarm_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 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.0.tar.gz
Algorithm Hash digest
SHA256 c68b1f24d6f1b4822545f0fe68a27d6bff0d5c64b1ba0dbfa6fee90c809da769
MD5 579ef7683a31481b02b395f1c4224b81
BLAKE2b-256 6d6f4e38c64eb04f074824a7158c90c9b569f9f42181cdbdd190dbe06e8c8497

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for water_alarm_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7528e096bc44fcde5c9ba3321bdb4e4957930f6c11a2d12b75dd1d5f67d9989c
MD5 7f9801b7f838a15a54ad3c88d1016fed
BLAKE2b-256 590cccb47fdaedd33260d02d10933e7415f9c74fd5eba488f970a1bf4e71ea56

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