Skip to main content
Glama
aaasoulmate

MCP-Weather Server

by aaasoulmate

MCP 增强型 LLM 获取天气信息

概述

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

Related MCP server: OpenWeatherMap MCP Server

演示

演示

成分

  • 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

Latest Blog Posts

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