Skip to main content

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/forecasttext/html;profile=mcp-app),自包含:内联 CSS/JS、 图标全是内联 SVG,不引任何外部字体或图片——宿主的 CSP 基线是 default-src 'none', 外链一律加载不出来。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sira_weather_mcp-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sira_weather_mcp-0.1.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file sira_weather_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: sira_weather_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for sira_weather_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e4c748f7a1fb626dbc1e646ebdd9e4691a20a17c72050a8983d5ad9a86ce8a6
MD5 99cb0613ebc57654d34b39e926d6a81a
BLAKE2b-256 ece26a4a39a5fd32478f6d94349759d5c96d1d4807ebdfce3e621d06b52cad1c

See more details on using hashes here.

File details

Details for the file sira_weather_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sira_weather_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a113fe7cffbff4aa33b753abc21f9cf860daf45c773f2d93efab8c0af8103dd
MD5 f5a2c7ce1eb46047177d37bab6349c9f
BLAKE2b-256 963faedc17678205e5c342ea97efaa9aad674fe49d8fc908eaef449fde0cdfc7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page