met-mcp
Weather forecasts from MET Norway (Yr): geocoding plus hourly forecasts worldwide.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 get_ocean_forecast 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"met-mcp": {
"command": "npx",
"args": [
"met-mcp"
]
}
}
}可執行的套件
0.2.0stdio遠端端點
https://met-mcp.met-mcp-worker.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(8)
🟢geocode_location(name, count)
Find latitude and longitude for a place name. Use the coordinates with the other tools.
輸入結構描述
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Place name, e.g. 'Bergen' or 'Oslo, Norway'"
},
"count": {
"default": 5,
"description": "Maximum number of matches to return",
"type": "integer",
"minimum": 1,
"maximum": 10
}
},
"required": [
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_forecast(latitude, longitude, hours)
Get an hourly weather forecast from MET Norway (Yr) for a coordinate. Works worldwide, best coverage in the Nordics.
輸入結構描述
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees"
},
"hours": {
"default": 24,
"description": "How many hours ahead to include",
"type": "integer",
"minimum": 1,
"maximum": 48
}
},
"required": [
"latitude",
"longitude"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_nowcast(latitude, longitude)
Minute-by-minute precipitation for the next 2 hours, radar-based. Nordic region only. Answers 'do I need an umbrella right now?'
輸入結構描述
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees"
}
},
"required": [
"latitude",
"longitude"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_weather_alerts(latitude, longitude)
Official danger warnings (wind, flood, ice, forest fire...) from MET Norway. Covers Norway and its waters. Omit coordinates to get all current alerts. Alert text is in Norwegian.
輸入結構描述
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_sun_events(latitude, longitude, date, utc_offset)
Sunrise, sunset, and solar noon for a coordinate and date. Works worldwide.
輸入結構描述
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees"
},
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date as YYYY-MM-DD"
},
"utc_offset": {
"default": "+00:00",
"description": "UTC offset for the returned times, e.g. '+02:00' for Norwegian summer time",
"type": "string",
"pattern": "^[+-]\\d{2}:\\d{2}$"
}
},
"required": [
"latitude",
"longitude",
"date"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_ocean_forecast(latitude, longitude, hours)
Wave height, wave direction, and sea temperature. Covers the Norwegian coast and nearby seas.
輸入結構描述
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees"
},
"hours": {
"default": 24,
"description": "How many hours ahead to include",
"type": "integer",
"minimum": 1,
"maximum": 48
}
},
"required": [
"latitude",
"longitude"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢find_weather_stations(latitude, longitude, count)
Find the nearest official weather stations (Frost). Use the station id (e.g. SN50540) with get_historical_weather.
輸入結構描述
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90,
"description": "Latitude in decimal degrees"
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180,
"description": "Longitude in decimal degrees"
},
"count": {
"default": 5,
"description": "Maximum number of stations to return",
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"latitude",
"longitude"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_historical_weather(station_id, from, to, elements)
Daily historical observations from a weather station (Frost archive, some stations go back over 100 years). Find station ids with find_weather_stations.
輸入結構描述
{
"type": "object",
"properties": {
"station_id": {
"type": "string",
"pattern": "^SN\\d+$",
"description": "Station id from find_weather_stations, e.g. SN50540"
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start date, YYYY-MM-DD"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End date (exclusive), YYYY-MM-DD"
},
"elements": {
"default": [
"mean(air_temperature P1D)",
"sum(precipitation_amount P1D)",
"max(wind_speed P1D)"
],
"description": "Frost element ids. Defaults: daily mean temperature, precipitation sum, max wind.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"station_id",
"from",
"to"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社群
證據