geocode_location
Geocode a place name
Find latitude and longitude for a place name. Use the coordinates with the other tools.
name必填count
io.github.trondbjoroy由 GitHub 帳號 trondbjoroy 發布v0.2.0更新於 Oct 24, 2026
Weather forecasts from MET Norway (Yr): geocoding plus hourly forecasts worldwide.
用於 MET Norway(Yr)天氣資料的 MCP 伺服器:地理編碼、逐小時預報、即時降水、警報、日出日落、海洋預報與歷史觀測。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.trondbjoroy%2Fmet-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"met": {
"type": "http",
"url": "https://met-mcp.met-mcp-worker.workers.dev/mcp"
}
}
}An MCP server for weather forecasts from MET Norway (Yr). Built as a learning project.
Available three ways:
met-mcp — run locally over stdiohttps://met-mcp.met-mcp-worker.workers.dev/mcp — Streamable HTTP on Cloudflare Workers, add it as a claude.ai connectorio.github.trondbjoroy/met-mcpgeocode_location(name, count) — find coordinates for a place name. Uses the free Open-Meteo geocoder, because MET has no geocoding API.get_forecast(latitude, longitude, hours) — hourly forecast from MET Locationforecast 2.0. Works worldwide, best in the Nordics.get_nowcast(latitude, longitude) — radar-based precipitation for the next 2 hours. Nordics only.get_weather_alerts(latitude?, longitude?) — official Norwegian danger warnings (MetAlerts). Omit coordinates for all of Norway.get_sun_events(latitude, longitude, date, utc_offset) — sunrise, sunset, and solar noon. Worldwide.get_ocean_forecast(latitude, longitude, hours) — wave height and sea temperature along the Norwegian coast.find_weather_stations(latitude, longitude, count) — nearest official weather stations (Frost).get_historical_weather(station_id, from, to, elements) — daily historical observations from the Frost archive; some stations go back over 100 years.The two Frost tools need a free client ID from https://frost.met.no/auth/requestCredentials.html, set as the FROST_CLIENT_ID env var (or a Cloudflare secret for the worker). The other tools need nothing.
Tool definitions live in src/tools.ts, shared between the stdio server and the worker.
The test spawns the server over stdio and calls both tools against the live APIs.
Then ask Claude: "What is the weather in Bergen tomorrow?"
MET_USER_AGENT env var, e.g. met-mcp/0.1.0 [email protected].worker/ holds the Cloudflare Workers deployment: the same two tools served over MCP Streamable HTTP with createMcpHandler (MCP SDK v2). Develop with npm run dev, ship with npm run deploy (both from worker/).
src/index.ts is the whole server. It speaks MCP over stdio: JSON-RPC on stdin/stdout.content blocks. This server returns JSON as text, trimmed to what an LLM needs — the raw MET response has ~90 timesteps with far more fields.console.log. It corrupts the protocol stream. Log to stderr.來源:README.md,提交 c147c1b
Geocode a place name
Find latitude and longitude for a place name. Use the coordinates with the other tools.
name必填countGet weather forecast
Get an hourly weather forecast from MET Norway (Yr) for a coordinate. Works worldwide, best coverage in the Nordics.
hourslatitude必填longitude必填Get precipitation nowcast
Minute-by-minute precipitation for the next 2 hours, radar-based. Nordic region only. Answers 'do I need an umbrella right now?'
latitude必填longitude必填Get weather alerts
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.
latitudelongitudeGet sunrise and sunset
Sunrise, sunset, and solar noon for a coordinate and date. Works worldwide.
date必填latitude必填longitude必填utc_offsetGet ocean forecast
Wave height, wave direction, and sea temperature. Covers the Norwegian coast and nearby seas.
hourslatitude必填longitude必填Find weather stations
Find the nearest official weather stations (Frost). Use the station id (e.g. SN50540) with get_historical_weather.
countlatitude必填longitude必填Get historical weather
Daily historical observations from a weather station (Frost archive, some stations go back over 100 years). Find station ids with find_weather_stations.
to必填from必填elementsstation_id必填已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
npm installnpm run buildnpm testclaude mcp add met-weather -- node C:\Users\trond\met-mcp\dist\index.js