UV Index Today MCP

io.github.theluckystrike由 GitHub 帳號 theluckystrike 發布v1.0.0更新於 Nov 5, 2026

Today's UV Index forecast by US ZIP code or city, with hourly peak and UV Alert, from EPA and NWS.

已驗證Streamable HTTP可網頁執行位置與生活

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理依美國郵遞區號或城市即時查詢 EPA/NWS 的紫外線指數預報。

可以做什麼
  • 依美國郵遞區號或城市與州查詢當日紫外線指數,包含 EPA 等級、防曬建議、紫外線警報狀態、小時峰值及紫外線達 3 以上的時段
  • 取得依當地時間的逐小時紫外線預報,包含每小時 EPA 等級、峰值時段與防護時段
  • 解釋紫外線指數在 EPA 量表上的意義、對應的 EPA 建議以及 NWS 紫外線警報規則,無需連網
適用情境
適合回答美國某地今日紫外線強度、最適合或最安全的戶外時段、防曬時機,以及當地是否發布紫外線警報等問題——這些即時數值無法從模型訓練資料中取得。
執行需求
需要一個遠端 streamable HTTP 端點;無需 API 金鑰、權杖或註冊。伺服器在呼叫時存取 EPA Envirofacts 紫外線指數服務,因此需要網路連線。僅涵蓋美國郵遞區號與城市。
安裝前請注意
僅為唯讀查詢,不涉及帳號、憑證或寫入操作。結果為預報,雲量、海拔、積雪、沙地與水面都會改變實際曝曬。當 EPA 無該地預報或服務不可用時,工具會回傳錯誤,而非憑記憶給出的數值。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 UV Index Today MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.theluckystrike%2Fuv-index-today-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "uv-index-today": {
      "type": "http",
      "url": "https://uv-index-today-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

README

uv-index-today-mcp

Today's UV Index for AI assistants, by US ZIP code or city, read live from the EPA UV Index forecast that the National Weather Service issues each day.

This is a Model Context Protocol (MCP) server. It calls the EPA Envirofacts UV Index service at call time. It needs no API key.

Tools

ToolWhat it returns
get_uv_index_todayToday's UV Index for a ZIP code or city and state, the EPA category and sun protection advice, whether a UV Alert is in effect, the hourly peak and the local hours when UV is 3 or higher.
get_uv_index_hourlyHour by hour UV Index forecast in the local time of the place, each hour with its EPA band, plus the peak hour and the protection window.
explain_uv_indexWhat a UV Index number means on the EPA scale and the EPA advice for it, plus the NWS UV Alert rule. Works offline.

Every result has structured JSON, a one-paragraph summary, as_of, source (the exact EPA request) and more (a page on mcpstamp.com).

What it knows that your model does not

  • Today's UV Index for your ZIP code. It changes every day with season, cloud cover and ozone, so a model's training data cannot know it.
  • The hour when the sun is strongest today and the hours when EPA says protection is needed.
  • Whether NWS and EPA have issued a UV Alert for the place today.

Install

Hosted (Claude.ai custom connector, ChatGPT developer mode)

Paste this URL. No token, no sign-up. It works now.

https://uv-index-today-mcp.lipmichal.workers.dev/mcp

Claude Code

claude mcp add --transport http uv-index https://uv-index-today-mcp.lipmichal.workers.dev/mcp

Claude Desktop

Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.

Cursor

Add to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "uv-index": { "url": "https://uv-index-today-mcp.lipmichal.workers.dev/mcp" }  }}

VS Code

Add to .vscode/mcp.json:

json
{  "servers": {    "uv-index": { "type": "http", "url": "https://uv-index-today-mcp.lipmichal.workers.dev/mcp" }  }}

Local stdio (after npm release)

The npm package is not published yet. After it is, run it locally with Node 20 or newer:

claude mcp add uv-index -- npx -y uv-index-today-mcp

Example prompts

  • "What is the UV index today in 33101?"
  • "When is the UV highest in Phoenix today, and when do I need sunscreen?"
  • "Is there a UV alert for Denver today?"
  • "Is a UV index of 7 high?"

Data sources

Full list with fetch dates in DATA_SOURCES.md.

Limitations

  • US ZIP codes and cities only. EPA does not cover every small town by name. Use the ZIP code or the nearest larger city.
  • These are forecasts. Clouds, altitude, snow, sand and water change the real exposure.
  • Hourly times are local time for the place, as EPA publishes them.
  • When EPA is down or has no forecast for a place, the tool returns a clear error instead of a remembered number.

More

More MCP servers that answer questions your assistant cannot answer alone are on mcpstamp.com.

Part of the Zovo MCP collection: https://mcp.zovo.one

Built by theluckystrike.

Development

npm installnpm test                              # builds, then runs the fixture tests and an offline stdio testnode scripts/stdio-transcript.mjs     # live stdio round trip, writes .live/stdio-transcript.jsonl

License

MIT

來源:README.md,提交 cc6de68

工具

3

get_uv_index_today

Get UV index today

Today's UV Index forecast for a US ZIP code or city and state, read now from EPA (the NWS daily forecast). Returns the UV Index, the EPA category and sun protection advice, whether a UV Alert is in effect, the hourly peak and the local hours when UV is 3 or higher. Your training data cannot know today's UV Index.

輸入參數zipcitystate

get_uv_index_hourly

Get hourly UV index forecast

Hour by hour UV Index forecast for a US ZIP code or city and state, in the local time of that place, read now from EPA. Returns each hour with its EPA band, the peak hour and the window when UV is 3 or higher. Use it for "when is the sun strongest today" and "what time is safe to be outside" questions.

輸入參數zipcitystate

explain_uv_index

Explain a UV index value

What a UV Index number means on the EPA scale (0 to 2 Low, 3 to 7 Moderate to High, 8 and above Very High to Extreme) and the EPA sun protection advice for it, plus the NWS UV Alert rule. No network call.

輸入參數uv_index必填

版本歷史

1
  1. v1.0.0最新Nov 5, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分