Cover image
Try Now
2025-04-14

一个简单的天气信息 MCP 服务器 提供城市天气查询功能。 提供城市天气查询功能。

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

MCP Weather Server

一个基于 MCP(Model Context Protocol)的天气信息服务器,提供城市天气查询功能。

功能特点

  • 支持查询指定城市的天气信息
  • 返回温度和天气状况
  • 简单易用的 API 接口

安装

# 克隆仓库
git clone https://github.com/Maggieee030/mcp-weather-server.git

# 进入项目目录
cd mcp-weather-server

# 安装依赖
npm install

使用方法

  1. 构建项目:
npm run build
  1. 启动服务器:
npm start
  1. 使用 MCP Inspector 测试:
npx @modelcontextprotocol/inspector

API 说明

get_weather

获取指定城市的天气信息。

参数:

  • city: 城市名称(字符串)

示例:

{
  "city": "Beijing"
}

返回:

{
  "city": "Beijing",
  "temperature": 25,
  "condition": "Sunny"
}

许可证

MIT

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • rulego
  • ⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

  • paulwing
  • Un repositorio de pruebas creado con el servicio MCP

    Reviews

    3.5 (8)
    Avatar
    user_ct6Czu6i
    2025-04-23

    The MCP-Weather-Server by Maggieee030 is an outstanding tool for developers needing real-time weather data integration. Its seamless API and precise documentation make it user-friendly, even for beginners. The server's reliability and accuracy in delivering weather updates are remarkable. Highly recommend!

    Avatar
    user_SQZoE5i8
    2025-04-23

    As a dedicated user of the mcp-weather-server, I am thoroughly impressed with its performance and reliability. Created by Maggieee030, this tool offers accurate weather data and a user-friendly interface. The easy-to-navigate start URL and warm welcome message make it accessible for both beginners and experts. Highly recommended for anyone needing dependable weather information.

    Avatar
    user_JUDRONWo
    2025-04-23

    As a dedicated user of MCP applications, I find the MCP-Weather-Server absolutely exceptional. Created by Maggieee030, this server provides accurate and timely weather updates, making it an invaluable tool for planning daily activities. The straightforward product description and user-friendly start URL ensure a seamless experience right from the welcoming message. Highly recommended for anyone needing reliable weather information!

    Avatar
    user_YcoZ0xDu
    2025-04-23

    As a loyal user of the mcp-weather-server developed by Maggieee030, I am thoroughly impressed with its performance and reliability. The seamless integration and user-friendly interface make it a top choice for weather data management. This tool has significantly improved my workflow, providing accurate and timely weather updates. Highly recommended!

    Avatar
    user_hN3hFJA5
    2025-04-23

    I've been using the mcp-weather-server for a while now, and I must say it's incredibly reliable and accurate. Created by Maggieee030, this server provides detailed weather information efficiently. The welcome message is friendly, and the server's performance in delivering updates quickly is impressive. Highly recommend for anyone needing consistent weather data!

    Avatar
    user_hXoUZCUz
    2025-04-23

    I've been using mcp-weather-server by Maggieee030 and it has greatly enhanced my weather tracking experience. The server is reliable, fast, and provides comprehensive weather data in a user-friendly manner. I appreciate the clear welcome message and intuitive start URL. Highly recommend this tool for anyone looking for a top-notch weather server.

    Avatar
    user_TMMp2RzE
    2025-04-23

    As a dedicated user of the mcp-weather-server, I am thoroughly impressed by its seamless performance and precise weather updates. Maggieee030 has truly outdone themselves with this creation. It efficiently gathers and displays real-time data, ensuring that I am always prepared for any weather condition. Highly recommended for anyone seeking reliable weather information!

    Avatar
    user_1fd0dgZm
    2025-04-23

    The mcp-weather-server by Maggieee030 is an outstanding weather application that delivers accurate and real-time weather updates. As a loyal user, I appreciate its seamless user interface and reliable performance. Perfect for everyday use, it keeps me prepared for any weather condition. Highly recommended!