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