MCP-Weather Server

by aaasoulmate

MCP 增强型 LLM 获取天气信息

概述

该系统使用模型上下文协议 (MCP) 框架增强了具有天气数据功能的大型语言模型 (LLM)。

演示

成分

  • MCP 客户端:存储 LLms
  • MCP 服务器:连接外部工具/资源的中间代理

配置

DeepSeek 平台

BASE_URL=https://api.deepseek.com MODEL=deepseek-chat OPENAI_API_KEY=<your_api_key_here>

OpenWeather平台

OPENWEATHER_API_BASE=https://api.openweathermap.org/data/2.5/weather USER_AGENT=weather-app/1.0 API_KEY=<your_openweather_api_key>

安装与执行

  1. 初始化项目:
uv init weather_mcp cd weather_mcp

其中 weather_mcp 是项目文件名。

  1. 安装依赖项:
uv add mcp httpx
  1. 发射系统:
cd ./utils python client.py server.py

注意:将所有<your_api_key_here>占位符替换为实际的 API 密钥

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

中间代理服务器使用模型上下文协议 (MCP) 框架增强 LLM 的天气数据功能,从而能够检索实时天气信息。

  1. 概述
    1. 演示
      1. 成分
    2. 配置
      1. DeepSeek 平台
      2. OpenWeather平台
    3. 安装与执行

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides LLM Agents with a comprehensive toolset for IP geolocation, network diagnostics, system monitoring, cryptographic operations, and QR code generation.
        Last updated -
        16
        3
        4
        TypeScript
        Apache 2.0
      • A
        security
        A
        license
        A
        quality
        Model Context Protocol (MCP) server that provides weather forecast, warnings, water level associated with flood, and earthquake reports from Malaysia Government's Open API.
        Last updated -
        4
        Python
        MIT License
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that provides AI agents with tools to retrieve weather alerts and detailed forecasts for US locations using the National Weather Service API.
        Last updated -
        2
        115
        TypeScript
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that provides comprehensive weather data querying capabilities based on the Caiyun Weather API, supporting real-time weather, forecasts, and alerts with multi-language support.
        Last updated -
        7
        1
        TypeScript

      View all related MCP servers

      ID: d67zd0t7s0