Skip to main content
Glama

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

Related MCP Servers

  • A
    security
    F
    license
    A
    quality
    A Model Context Protocol server that provides real-time weather information and 5-day forecasts to AI assistants, supporting multiple languages and flexible units.
    Last updated -
    3
    2
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.
    Last updated -
    11
    27
    MIT License
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol (MCP) server that enables AI assistants and LLMs to access real-time weather data and forecasts by connecting to the OpenWeatherMap API.
    Last updated -
    • Apple
  • -
    security
    F
    license
    -
    quality
    A modular server based on Model Context Protocol (MCP) that provides weather queries, mathematical calculations, and search functionalities.
    Last updated -

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aaasoulmate/mcp-weather'

If you have feedback or need assistance with the MCP directory API, please join our Discord server