MCP.so
登录

Weather MCP Server

@xuezhijian

关于 Weather MCP Server

MCP Server 和风天气API例子。

基本信息

分类

媒体与设计

运行时

python

传输方式

stdio

发布者

xuezhijian

配置

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

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

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