JWeather logo

JWeather

Community
juhemcp

一个提供全国天气预报查询功能的模型上下文协议(Model Context Protocol)服务器。该服务器使大型语言模型(LLMs)能够获取全国城市、地区的天气预报情况。

Publisherjuhemcp
Repositoryjweather-mcp-server
LanguagePython
Forks
3
Stars
0
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    JWeather exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    0 stars and 3 forks from the linked repository.

Juhe Weather MCP Server

一个提供全国天气预报查询功能的模型上下文协议(Model Context Protocol)服务器。该服务器使大型语言模型(LLMs)能够获取全国城市、地区的天气预报情况。

Components

Tools

服务器实现了一个工具:

  • query_weather: 根据城市、地区、区县名称查询当地实时天气预报情况.
    • 需要传入 "city"(城市、区县等名称)作为必须的字符串参数。
async def query_weather(
    city: str = Field(description="查询的城市名称,如北京、上海、广州、深圳、泰顺等;城市或区县或地区名使用简写,严格按照规范填写,否则会导致查询失败")
) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:

Install

This server requires Python 3.10 or higher. Install dependencies using uv (recommended) or pip

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run jweather-mcp-server.

bash
uvx jweather-mcp-server

Using PIP

Alternatively you can install jweather-mcp-server via pip:

pip install jweather-mcp-server

After installation, you can run it as a script using:

python -m jweather_mcp_server

Configuration

Environment Variables

JUHE_WEATHER_API_KEY: 聚合数据的天气预报查询API密钥。获取:https://www.juhe.cn/docs/api/id/73

JUHE_WEATHER_API_KEY=your_api_key

Configure For CLINE

"mcpServers": {
  "jweather-mcp-server": {
    "command": "uvx",
    "args": [
      "jweather-mcp-server"
    ],
    "env": {
      "JUHE_WEATHER_API_KEY": "your_api_key"
    }
  }
}
"mcpServers": {
  "jweather-mcp-server": {
    "command": "python",
    "args": [
      "-m",
      "jmobile_location_mcp_server"
    ],
    "env": {
      "JUHE_WEATHER_API_KEY": "your_api_key"
    }
  }
}

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

bash
npx @modelcontextprotocol/inspector uvx jweather-mcp-server 

Or if you've installed the package in a specific directory or are developing on it:

bash
cd path/to/servers/src/jweather-mcp-server
npx @modelcontextprotocol/inspector uv run jweather-mcp-server

Examples of Questions for Cline

  1. "查询下苏州的天气"
  2. "今天上海的天气如何?"

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "jweather-mcp-server": {
      "command": "uvx",
      "args": [
        "jweather-mcp-server"
      ],
      "env": {
        "JUHE_WEATHER_API_KEY": "your_api_key"
      }
    }
  }
}

Use JWeather MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once JWeather is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add JWeather as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the JWeather MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "jweather": {
      "command": "npx",
      "args": [
        "-y",
        "jweather-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the JWeather MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the JWeather MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use JWeather to help me with this task?
JWeather
Sure. I read it.
Here is what I found using JWeather.

Frequently asked questions

What is the JWeather MCP server used for?

JWeather is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use JWeather MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use JWeather with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use JWeather MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With JWeather connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect JWeather MCP to TypingMind?

JWeather runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does JWeather MCP provide in TypingMind?

JWeather exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use JWeather MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If JWeather requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇