Skip to main content

MCP Server for weather information using Open-Meteo API

Project description

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")

Project details


Download files

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

Source Distribution

typecoh_mcp_weather-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

typecoh_mcp_weather-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file typecoh_mcp_weather-0.1.1.tar.gz.

File metadata

  • Download URL: typecoh_mcp_weather-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for typecoh_mcp_weather-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f0eb2ca6dfaf0ffd9007944be864dc6a764f5bcfe670c417e8ba1fdaeb09e5f6
MD5 35af449db10e6c13115959dc7d9b5a55
BLAKE2b-256 0d78bbbf311366f4fdb7e13f42b1885e64ff4b22dd09d091090630a8eda3bdb5

See more details on using hashes here.

File details

Details for the file typecoh_mcp_weather-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: typecoh_mcp_weather-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for typecoh_mcp_weather-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33dc40e4f1ab9b51b40c17d30517d6e939f8d8f6688a0e03b905934f9c496d9c
MD5 47db88ed1e17dc26a85b5778f204050f
BLAKE2b-256 c0a08328cdd8c648c9af6ed74e04a6bd3a5fae87f04277bd103736af49dec9aa

See more details on using hashes here.

Supported by

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