RMS Location Intelligence MCP Server

RMS Location Intelligence MCP Server

Provides access to the Moody's RMS Location Intelligence API for property catastrophe risk analysis, with 114+ data product layers covering multiple perils and regions.

Category
访问服务器

README

RMS Location Intelligence MCP Server

MCP server providing access to the Moody's RMS Location Intelligence API for property catastrophe risk analysis.

Overview

This server wraps the RMS Location Intelligence API, offering 114+ data product layers covering:

  • Earthquake (eq)
  • Windstorm (ws)
  • Flood (fl)
  • Wildfire (wf)
  • Convective storm (cs)
  • Winter storm (wt)
  • Terrorism (tr)

Coverage spans 20+ regions worldwide including US, EU, CA, AU, CN, JP, and more.

Project Structure

C:/Users/khano3/li-rms-mcp/
├── server.py          # Main FastMCP server (5 tools, 659 lines)
├── layers.py          # Layer catalog (114 layers, 210 lines)
├── requirements.txt   # Python dependencies
├── .env               # API credentials (not committed)
├── .gitignore
├── docs/              # API documentation (53 pages)
└── README.md

Available Tools

1. list_layers

Browse the catalog of 114 data product layers by region, peril, or type.

2. geocode

Convert addresses or coordinates to standardized RMS geocodes with location IDs.

3. lookup_layer

Query a single data layer (hazard, loss cost, risk score, etc.) for a location.

4. composite_lookup

Query multiple layers efficiently in a single request.

5. geocode_reference

Access reference data for countries, admin divisions, postal codes, etc.

Layer Types

  • hazard: Raw hazard metrics (requires location only)
  • risk_score: Risk scores 0-100 (requires location + building characteristics)
  • loss_cost: Expected annual loss (requires location + characteristics + coverage values)
  • mmi: Modified Mercalli Intensity (earthquake only, location only)
  • depth: Flood depth estimates (location only)
  • distance: Distance to features (fault, coast, fire station, etc.)
  • special: Custom data products (varies by layer)

Installation

cd C:/Users/khano3/li-rms-mcp
py -m pip install -r requirements.txt

Configuration

Create .env file (already configured):

LI_API_KEY=YOUR_API_KEY_HERE
LI_BASE_URL=https://api-euw1.rms.com

Usage

Start server (stdio)

py server.py

Start server (HTTP)

MCP_TRANSPORT=http PORT=3000 py server.py

Example Workflows

1. Explore available data

list_layers(region="us", peril="eq")
# Returns: us_eq_loss_cost, us_eq_risk_score, us_mmi, us_distance_to_fault

2. Geocode an address

geocode(
    country_code="US",
    street_address="55 Water St",
    city="New York",
    admin1_code="NY",
    postal_code="10041"
)

3. Query single layer

lookup_layer(
    layer="us_eq_risk_score",
    country_code="US",
    latitude=40.7028,
    longitude=-74.0131,
    construction="C1",
    occupancy="COM1"
)

4. Multi-peril analysis

composite_lookup(
    layers=[
        {"name": "us_eq_loss_cost"},
        {"name": "us_fl_loss_cost"},
        {"name": "us_wf_loss_cost"}
    ],
    country_code="US",
    latitude=37.7749,
    longitude=-122.4194,
    construction="W1",
    occupancy="RES1",
    building_value=500000,
    contents_value=250000
)

Data Requirements by Layer Type

Layer Type Location Characteristics Coverage Values
hazard ✓
mmi ✓
depth ✓
distance ✓
risk_score ✓ ✓
loss_cost ✓ ✓ ✓

Characteristics: construction, occupancy, year_built, num_stories Coverage Values: building_value, contents_value, bi_value

Architecture

  • Pattern: edfx-omar MCP pattern (Python + FastMCP + async httpx)
  • Transport: stdio (default) or HTTP
  • Authentication: API key via Authorization header
  • Credentials: .env file with dotenv
  • Error handling: httpx automatic retry + raise_for_status()
  • Response formatting: JSON with 80k char truncation

Development

Git History

1ec7814 feat: add all 5 tools + main block
c035afe feat: server core — auth, body builder, FastMCP instance
6bceae2 feat: add complete layer catalog
43320c9 chore: project scaffolding

Testing

# Verify layer catalog
py -c "import sys; sys.path.insert(0, '.'); from layers import LAYERS; print(f'{len(LAYERS)} layers')"

# Test tool loading
py -c "import sys; sys.path.insert(0, '.'); from server import list_layers; print(list_layers(region='us')[:200])"

API Documentation

Full API documentation (53 pages) available in docs/ directory.

Next Steps

  1. Register in .mcp.json
  2. Smoke test with Claude
  3. Integration testing with real API calls
  4. Performance optimization if needed

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选