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 分