MCP.so
登录

MCP Weather Server

@Hritik003

基本信息

分类

媒体与设计

传输方式

stdio

作者

Hritik003

关于 MCP Weather Server

A simple MCP server for weather

MCP Weather Server 配置

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

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "<path/to/weather>",
        "run",
        "weather"
      ]
    }
  }
}

MCP Weather Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

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

概览

What is MCP Weather Server?

A lightweight Model Context Protocol (MCP) server designed for handling weather data, with a Command-Line Interface (CLI) client for interaction. This project demonstrates how to create and interact with an MCP server, focusing on weather-related information.

How to use MCP Weather Server?

Clone the repository, then start the server with uv --directory <path/to/weather> run weather in the Server directory, and start the client with uv run client.py <path/to/server.py> in the mcp-Client directory. Requires Python 3.12 or higher and asyncio; additional packages are listed in requirements.txt.

Key features of MCP Weather Server

  • Modular MCP server for weather data handling
  • CLI client for server interaction
  • Asynchronous communication using asyncio
  • Easy extensibility for additional commands or data formats

Use cases of MCP Weather Server

  • Learning how to build and interact with an MCP server
  • Demonstrating asynchronous client-server communication
  • Experimenting with weather data handling via CLI

常见问题

1

What is the MCP Weather Server?

It is a lightweight MCP server that handles weather data and includes a CLI client for interaction, designed to demonstrate creating and using an MCP server.

2

What are the system requirements?

Python 3.12 or higher and the `asyncio` library. Additional dependencies are listed in `requirements.txt`.

3

How do I start the server and client?

Start the server by running `uv --directory <path/to/weather> run weather` in the `Server` folder. Then start the client with `uv run client.py <path/to/server.py>` in the `mcp-Client` folder.

4

Can I extend the server with new commands?

Yes, the server is designed to be easily extensible to support additional commands or data formats.

评论

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