Skip to main content

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

Metadata

Release files for water-alarm-mcp 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for water-alarm-mcp 1.0.2
File Size Uploaded Provenance
water_alarm_mcp-1.0.2.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for water-alarm-mcp 1.0.2
File Interpreter ABI Platform
water_alarm_mcp-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / water_alarm_mcp-1.0.2.tar.gz

Download URL water_alarm_mcp-1.0.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
260ae1ad25cd078ca25855caa706341018ba21bcd3e8b28e282b13e7c0b6d557
BLAKE2b-256 checksum
How to use checksums
e5ee56963308d29116ffdfec5f84794ecd99ab83d89b9f80699cfb82803974d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / water_alarm_mcp-1.0.2-py3-none-any.whl

Download URL water_alarm_mcp-1.0.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47eeba9d3bb0840f5deea34df16c0220a14acf4fe6a882cad170aec611d84ed6
BLAKE2b-256 checksum
How to use checksums
cc5ff5844540a4519be9587a63501b3ed260fb562986cb8177d232e303475465
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for water-alarm-mcp 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page