MCP.so
Sign In

Weather MCP Server

@xuezhijian

About Weather MCP Server

MCP Server 和风天气API例子。

Basic information

Category

Media & Design

Runtime

python

Transports

stdio

Publisher

xuezhijian

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp_weather": {
      "command": "python",
      "args": [
        "-m",
        "mcp_server_weather"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Weather MCP Server?

Weather MCP Server is a Model Context Protocol server that provides weather forecasts and city information queries. It allows LLMs to retrieve 24‑hour weather forecasts using a city name or latitude/longitude coordinates.

How to use Weather MCP Server?

Install via uv (using uvx) or pip; then configure the server in Claude.app or Zed by adding the appropriate command and arguments to the MCP settings. The server exposes the get_24h_weather tool, which requires a location string parameter (city name or “longitude,latitude”).

Key features of Weather MCP Server

  • Fetches 24‑hour weather forecasts.
  • Supports location by city name or latitude/longitude.
  • Runs via uvx (recommended), pip, or Docker.
  • Integrates with Claude.app and Zed.
  • No API key or external service registration required.

Use cases of Weather MCP Server

  • An AI assistant answering “What will the weather be like tomorrow in Beijing?”
  • A chatbot providing hourly weather details for a specific GPS coordinate.
  • Embedding real‑time weather data into a conversational agent without manual API calls.

FAQ from Weather MCP Server

What does the Weather MCP Server do?

It provides a 24‑hour weather forecast for a given location (city name or latitude/longitude) through the get_24h_weather tool.

How do I install the Weather MCP Server?

You can run it directly with uvx mcp-server-weather or install it via pip install mcp-server-weather and then execute python -m mcp_server_weather.

How do I configure the server in Claude.app or Zed?

Add the server settings to your MCP configuration file. For Claude.app, use the JSON snippet under “使用uvx”, “使用docker”, or “使用pip安装”. For Zed, use the JSON under “配置Zed”.

What tools does the server provide?

The only tool currently documented is get_24h_weather, which accepts a location string (city name or “longitude,latitude”) and returns the forecast.

Does the server require any external API keys?

No, the README does not mention any required API keys, authentication, or external data sources.

Comments

More Media & Design MCP servers