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
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • paulwing
  • 使用MCP服务创建的测试存储库

  • modelscope
  • 开始以更轻松的方式开始构建具有LLM授权的多代理应用程序。

    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!