typecoh-mcp-weather
获取指定位置的当前天气信息的MCP服务器。
作者
typecoh
功能
get_current_weather- 通过城市名称获取天气get_weather_by_coords- 通过经纬度获取天气
安装
pip install -r requirements.txt
使用
stdio模式 (默认)
python app.py
SSE模式
python app.py --sse --port 8000
示例
# 获取北京天气
get_current_weather(location="Beijing", unit="celsius")
# 获取纽约天气 (华氏度)
get_current_weather(location="New York", unit="fahrenheit")
# 通过经纬度获取
get_weather_by_coords(location="40.7128,-74.0060")
Metadata
Release files for typecoh-mcp-weather 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| typecoh_mcp_weather-0.1.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typecoh_mcp_weather-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / typecoh_mcp_weather-0.1.1.tar.gz
| Download URL | typecoh_mcp_weather-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0eb2ca6dfaf0ffd9007944be864dc6a764f5bcfe670c417e8ba1fdaeb09e5f6
|
|
BLAKE2b-256 checksum How to use checksums |
0d78bbbf311366f4fdb7e13f42b1885e64ff4b22dd09d091090630a8eda3bdb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / typecoh_mcp_weather-0.1.1-py3-none-any.whl
| Download URL | typecoh_mcp_weather-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33dc40e4f1ab9b51b40c17d30517d6e939f8d8f6688a0e03b905934f9c496d9c
|
|
BLAKE2b-256 checksum How to use checksums |
c0a08328cdd8c648c9af6ed74e04a6bd3a5fae87f04277bd103736af49dec9aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|