MCP ExplorerExplorer

Mcp Server Weather Python

@yestarzon 9 months ago
1 MIT
FreeCommunity
AI Systems
# A MCP Server for Fetching Weather, Written in Python.

Overview

What is Mcp Server Weather Python

mcp-server-weather-python is a weather information service server developed based on the MCP protocol, which retrieves real-time meteorological data using the HeWeather API.

Use cases

Use cases include integrating weather information into chat applications, providing weather updates in smart home systems, and developing weather-related features in mobile or web applications.

How to use

To use mcp-server-weather-python, you can run it via Docker by building the Docker image and running the container with your HeWeather API key. Then, configure the MCP server settings in CherryStudio with your server IP and select SSE mode.

Key features

Key features include real-time weather information retrieval for specified cities, support for obtaining weather data through the HeWeather API, and detailed weather information such as temperature, humidity, wind speed, and precipitation.

Where to use

mcp-server-weather-python can be used in various fields such as application development, weather forecasting services, and any platform that requires real-time weather data integration.

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 文件。

🙏 致谢

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers