什么是 Weather Alerts & Forecast?
提供美国 NWS 各州预警信息,以及指定点位未来 5 个时段的短期天气预报。
README
Weather MCP Server
An MCP server that provides:
- Active US National Weather Service (NWS) alerts by two-letter state code
- Short-term point forecasts (next 5 periods) for latitude/longitude coordinates
Data is sourced from the public NWS API at https://api.weather.gov.
Tools
| Tool | Description | Inputs |
|---|---|---|
get_alerts | Fetch active NWS alerts for a US state | state (string, two-letter code) |
get_forecast | Fetch short-term forecast (next 5 periods) for coordinates | latitude (number), longitude (number) |
Usage (Local)
Install dependencies:
pip install .
Run the MCP server (stdio transport):
python -m weather.weather
Your MCP client should be configured to launch the server via the package entrypoint or the above module path.
Server JSON Summary
See server.json for registry metadata including name, version, tools, and entrypoint configuration.
Publishing Steps (Overview)
- Authenticate with publisher (GitHub namespace):
powershell
mcp-publisher login github - Create and push repo to GitHub (see steps below).
- (Optional) Publish to PyPI if distributing as a package.
- Publish to MCP registry:
powershell
mcp-publisher publish - Verify:
powershell
curl "https://registry.modelcontextprotocol.io/v0/servers?search=io.github.vtiwari/weather-mcp"
Create & Push GitHub Repository
If this directory is not yet a git repo:
git init
git add .
git commit -m "Initial commit: Weather MCP server"
Create repo (GitHub CLI) and push:
gh repo create vtiwari/weather-mcp --public --source . --remote origin --push
If not using GitHub CLI, create the repo manually via the GitHub web UI, then:
git remote add origin https://github.com/vtiwari/weather-mcp.git
git branch -M main
git push -u origin main
Tag version for release consistency:
git tag v0.1.0
git push origin v0.1.0
PyPI Packaging (Optional)
To distribute via PyPI, ensure pyproject.toml includes build backend and metadata (authors, license). Then:
pip install build twine
python -m build
twine upload dist/*
License
MIT (adjust if different).
Disclaimer
This server uses public NOAA/NWS endpoints. Respect API usage guidelines and rate limits.
常见问题
Weather Alerts & Forecast 是什么?
提供美国 NWS 各州预警信息,以及指定点位未来 5 个时段的短期天气预报。
相关 Skills
股票投研框架
by alondai
股票投研9点分析框架,覆盖基本面/财务/竞品/估值/宏观/情绪等维度
SEO审计工具
by amdf01-debug
智能浏览器
by ayakolin
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands. (Chinese localized version)
相关 MCP Server
网页抓取
编辑精选by Anthropic
Fetch 是 MCP 官方参考服务器,让 AI 能抓取网页并转为 Markdown 格式。
✎ 这个服务器解决了 AI 直接处理网页内容时格式混乱的问题,适合需要让 Claude 分析在线文档或新闻的开发者。不过作为参考实现,它缺乏生产级的安全配置,你得自己处理反爬虫和隐私风险。
Brave 搜索
编辑精选by Anthropic
Brave Search 是让 Claude 直接调用 Brave 搜索 API 获取实时网络信息的 MCP 服务器。
✎ 如果你想让 AI 助手帮你搜索最新资讯或技术文档,这个工具能绕过传统搜索的限制,直接返回结构化数据。特别适合需要实时信息的开发者,比如查 API 更新或竞品动态。不过它依赖 Brave 的 API 配额,高频使用可能受限。
Puppeteer 浏览器控制
编辑精选by Anthropic
Puppeteer 是让 Claude 自动操作浏览器进行网页抓取和测试的 MCP 服务器。
✎ 这个服务器解决了手动编写 Puppeteer 脚本的繁琐问题,适合需要自动化网页交互的开发者,比如抓取动态内容或做端到端测试。不过,作为参考实现,它可能缺少生产级的安全防护,建议在可控环境中使用。