weather

weather

Provides Chinese city weather query and forecast functionality using Juhe Weather API.

Category
Visit Server

README

天气查询 MCP 服务

基于 Node.js 的 MCP (Model Context Protocol) 服务,提供中国城市天气查询功能。

功能特性

  • query_weather: 查询城市实时天气信息
  • get_weather_details: 获取详细天气信息,包括未来几天预报

快速安装

方式一:使用 npx(推荐)

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "juweather-mcp-server"],
      "env": {
        "JUHE_WEATHER_API_KEY": "你的API_KEY"
      }
    }
  }
}

方式二:从 GitHub 安装

# 克隆仓库
git clone https://github.com/jaron2026/weather.git
cd weather

# 安装依赖
npm install

然后在 Claude Desktop/Cursor 配置:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": ["你的本地路径/index.js"],
      "env": {
        "JUHE_WEATHER_API_KEY": "你的API_KEY"
      }
    }
  }
}

配置 API Key

  1. 访问 聚合数据官网 注册账号
  2. 在个人中心获取 API Key(免费)
  3. 将 API Key 填入配置文件的 JUHE_WEATHER_API_KEY

使用示例

帮我查一下苏州今天的天气
北京未来几天的天气预报
深圳现在温度多少

数据来源

使用 聚合数据 的免费天气 API。

开发

# 克隆项目
git clone https://github.com/jaron2026/weather.git
cd weather

# 安装依赖
npm install

# 调试
npm run inspect

项目结构

weather/
├── index.js           # MCP 服务主文件
├── package.json       # 项目配置
├── .env.example       # 环境变量示例
├── .gitignore         # Git 忽略文件
└── README.md          # 项目文档

许可证

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured