Skip to main content
Glama
urban-forestry-mcp

urban-forestry-mcp

🌳 城市林业 Model Context Protocol (MCP) 服务器

一个用于城市林业、树木清单管理、树木冠层评估(TCA)指标、居民通信、工作订单和 GIS 边界分析的市政 Model Context Protocol (MCP) 服务器。


🚀 功能与数据集

  • 树木站点(17,700+ 条记录): 按树种、状况(0–5)、街道、地址、风险或维护状态搜索公共树木存量。

  • 树木活动(11,600+ 条记录): 完整的工作订单历史(周期修剪、移除、种植、检查)。

  • 历史年度树木日志: 跟踪逐年 DBH 增长和状况变化(Original_GlobalID <-> GlobalID)。

  • 主分类名册(731 个树种): 权威目录,涵盖成熟尺寸、生长速度、原生状态和街道树木批准。

  • 树木冠层评估(TCA 2025): 全市范围内按选区、分区、小区、用地或公园划分的真实航拍冠层覆盖率百分比和英亩指标。

  • 林业联系人及通信(只读): 居民请求、安全警告以及带有软地址匹配的完整交互日志。

  • 林业任务: 实时工作分配和状态跟踪。

  • 小区与地块: 针对开发项目和地块特定冠层数据的空间查询。


Related MCP server: arcgis-pittsburgh

🛠️ 15 个 MCP 工具

  1. search_trees - 按树种、街道、地址、状况或风险搜索公共树木存量。

  2. get_tree_details - 完整的树木站点详情,包括活动、快照数量和软匹配联系人。

  3. get_tree_activities - 树木的按时间顺序的维护/检查历史。

  4. get_tree_history - 跟踪树木随时间变化的年度快照日志。

  5. search_trees_by_location - 在 英尺 半径或边界框内进行邻近搜索。

  6. get_tree_statistics - 跨树木清单的服务器端分组和聚合。

  7. get_activity_statistics - 跨工作订单的服务器端分组。

  8. get_urban_forest_health_report - 完整的健康、10-20-30 多样性、状况和风险报告。

  9. get_tree_canopy_metrics - 真实的 TCA 树木冠层覆盖率 % 和英亩指标。

  10. search_taxonomy_roster - 主 731 树种分类目录搜索。

  11. get_subdivision_profile - 小区树木存量和航拍冠层覆盖率概况。

  12. search_parcels - 按地块编号/地址搜索,包含地块冠层 % 和软树木匹配。

  13. search_forestry_contacts - 居民联系详情、种植请求和通信日志。

  14. search_forestry_tasks - 按受让人、状态、优先级或任务类型进行工作分配。

  15. get_recent_updates - 实时跟踪最近 N 天的编辑和新增内容。


🏃 本地快速启动

1. 安装依赖

pip install -r requirements.txt

2. 验证工具

python test_tools.py

3. 本地运行(stdio 模式,适用于 Antigravity / Claude Desktop)

python server.py --transport stdio

4. 本地运行(SSE 模式,端口 8000,适用于 LibreChat / Web)

python server.py --transport sse --host 0.0.0.0 --port 8000

🐳 Docker 部署(用于现场 / 云端托管)

# Build and start container in the background
docker-compose up -d --build

SSE 端点将可在 http://<your-server-ip>:8000/sse 使用。


📱 连接现场客户端(LibreChat / 移动端)

添加到你的 librechat.yaml:

mcpServers:
  urban-forestry:
    type: sse
    url: http://<your-server-or-domain>:8000/sse

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Unified MCP server for ArcGIS Online and Enterprise providing tools for user/group management, item management, geoprocessing, feature layer queries/editing, and server administration.
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables governed analytics and research on land development optionality, infrastructure proximity, and stewardship via MCP tools that provide transparent screening heuristics and reproducible evidence.
      -