🌦️ Weather MCP Server

🌦️ Weather MCP Server

By yestarz GitHub

a mcp server for get weather.use python

Overview

What is Weather MCP Server?

Weather MCP Server is a weather information service based on the MCP protocol that retrieves real-time meteorological data using the HeWeather API.

How to use Weather MCP Server?

To use the Weather MCP Server, you need to set up the server with your HeWeather API key and configure it in CherryStudio to start querying weather information.

Key features of Weather MCP Server?

  • Real-time weather information for specified cities.
  • Integration with HeWeather API for accurate weather data.
  • Detailed weather information including temperature, humidity, wind speed, and precipitation.

Use cases of Weather MCP Server?

  1. Providing real-time weather updates for applications.
  2. Integrating weather data into chatbots or virtual assistants.
  3. Enabling weather-related features in games or interactive applications.

FAQ from Weather MCP Server?

  • What programming language is used for this project?

The project is developed in Python.

  • Do I need a special key to access the weather data?

Yes, you need a HeWeather API key to access the weather data.

  • Is Docker required to run the server?

Docker is optional; you can run the server without it if you prefer.

Content

🌦️ Weather MCP Server

📖 项目简介

这是一个基于 MCP 协议开发的天气信息服务端,通过和风天气 API 实时获取气象数据。

🚀 主要功能

  • 🌍 获取指定城市的实时天气信息。
  • ☁️ 支持通过和风天气API获取天气数据。
  • 📊 提供详细的天气信息,包括温度、湿度、风速、降水量等。

📋 环境要求

  • Python 3.13.2
  • Docker (可选,如果使用Docker部署)
  • 和风天气API密钥

🔧 安装步骤

🐳 通过Docker运行

  1. 构建Docker镜像
docker pull bellababy/mcp-server-weather-python:1.0.0
  1. 运行Docker容器
docker run -d -p 8000:8000 -e WEATHER_API_KEY=你的API密钥 bellababy/mcp-server-weather-python:1.0.0

环境变量

变量名说明必填
WEATHER_API_KEY和风天气API密钥

🍒 在CherryStudio中使用

  1. 配置MCP服务器

在CherryStudio中,打开设置页面,找到"MCP服务器"选项卡。

MCP服务器设置

填写以下信息:

  • 服务器地址: http://你的服务器IP:8000
  • 选择SSE模式

点击"确定"完成配置。

  1. 在对话中询问天气 MCP服务器设置

📄 许可证

本项目采用 MIT 许可证。详情请见 LICENSE 文件。

🙏 致谢

No tools information available.
No content found.