sira-weather-mcp
天气预报 MCP,自带可交互界面(MCP Apps / SEP-1865)。
支持 MCP Apps 的宿主(Sira 桌面端 / Claude Desktop / Goose)会把结果渲染成一张 天气卡:当前天气 + 逐日预报 + 温度条,卡内可直接切换 3/5/7 天、换城市——这些操作 直接调后端工具,不用再走一轮对话。不支持的宿主拿到同一份 JSON,纯文本对话 照常工作:界面是增强,不是前提。
数据源 Open-Meteo,免费、无需 API key、支持中文地名。
用法
uvx sira-weather-mcp # stdio(Claude Desktop 等)
uvx sira-weather-mcp --http # streamable-http,默认 127.0.0.1:3901
uvx sira-weather-mcp --http --port=3901 --host=0.0.0.0
工具
get_forecast(city, days=5) — 查询天气。city 中英文皆可,days 1~7。
界面
资源 ui://weather/forecast(text/html;profile=mcp-app),自包含:内联 CSS/JS、
图标全是内联 SVG,不引任何外部字体或图片——宿主的 CSP 基线是 default-src 'none',
外链一律加载不出来。
Metadata
Release files for sira-weather-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sira_weather_mcp-0.1.0.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sira_weather_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.0 kB
Release files / sira_weather_mcp-0.1.0.tar.gz
| Download URL | sira_weather_mcp-0.1.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e4c748f7a1fb626dbc1e646ebdd9e4691a20a17c72050a8983d5ad9a86ce8a6
|
|
BLAKE2b-256 checksum How to use checksums |
ece26a4a39a5fd32478f6d94349759d5c96d1d4807ebdfce3e621d06b52cad1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Release files / sira_weather_mcp-0.1.0-py3-none-any.whl
| Download URL | sira_weather_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a113fe7cffbff4aa33b753abc21f9cf860daf45c773f2d93efab8c0af8103dd
|
|
BLAKE2b-256 checksum How to use checksums |
963faedc17678205e5c342ea97efaa9aad674fe49d8fc908eaef449fde0cdfc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|