MCP.so
登录

Juhe Weather MCP Server

@MCP-Mirror

关于 Juhe Weather MCP Server

Mirror of

基本信息

分类

媒体与设计

运行时

python

传输方式

stdio

发布者

MCP-Mirror

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "juhemcp_jweather-mcp-server": {
      "command": "uvx",
      "args": [
        "jweather-mcp-server"
      ]
    }
  }
}

工具

1

根据城市、地区、区县名称查询当地实时天气预报情况.

概览

What is Juhe Weather MCP Server?

A Model Context Protocol (MCP) server that enables large language models to query real-time weather forecasts for cities and districts across China. It integrates with the Juhe weather API.

How to use Juhe Weather MCP Server?

Install Python 3.10 or higher. Run with uvx jweather-mcp-server (recommended) or install via pip install jweather-mcp-server and execute python -m jweather_mcp_server. Set the JUHE_WEATHER_API_KEY environment variable with your Juhe API key, then configure the MCP client to invoke the query_weather tool with a city parameter.

Key features of Juhe Weather MCP Server?

  • Single tool query_weather for real-time weather data.
  • Supports city, district, or county names as input.
  • Uses the Juhe weather forecast API (requires registration).
  • Runs with Python 3.10 or higher.
  • Available via uvx or pip installation.
  • Easy debugging with MCP inspector.

Use cases of Juhe Weather MCP Server?

  • Ask an LLM "What's the weather in Shanghai today?" and get a real-time answer.
  • Retrieve weather forecasts for multiple Chinese cities in a single conversation.
  • Integrate weather lookups into AI-powered travel planners or assistants.
  • Provide localized weather information for Chinese locations.

FAQ from Juhe Weather MCP Server

What Python version is required?

Python 3.10 or higher.

How do I get the API key?

Register at https://www.juhe.cn/docs/api/id/73 and obtain a Juhe weather forecast API key.

Can I install the server with pip?

Yes, run pip install jweather-mcp-server and then python -m jweather_mcp_server.

How do I configure it for CLINE?

Set the JUHE_WEATHER_API_KEY environment variable and add the server to your CLINE MCP settings using either the uvx or pip method shown in the README.

What does the query_weather tool return?

It returns real-time weather forecast data for the specified city as text content.

评论

媒体与设计 分类下的更多 MCP 服务器