MCP.so
登录

MCP Weather Server Setup Guide

@debanshu005

基本信息

分类

媒体与设计

传输方式

stdio

作者

debanshu005

关于 MCP Weather Server Setup Guide

MCP server to get wearer forecast.

MCP Weather Server Setup Guide 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP Weather Server Setup Guide 工具

工具列表暂未提供

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

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

概览

What is MCP Weather Server Setup Guide?

This is a setup guide for creating and running a weather server using the MCP SDK and uv, a Rust-based Python package manager. It provides a get_current_weather tool that accepts latitude and longitude and returns JSON weather data via the Model Context Protocol. It is intended for developers setting up an MCP-compatible weather service for use with Claude Desktop.

How to use MCP Weather Server Setup Guide?

Create a project folder, initialize a uv project, set up a virtual environment, and install the required packages (mcp[cli] and httpx). Run the server in development mode with mcp dev server.py, then open http://localhost:5173 in a browser. In the MCP Inspector, click Connect, go to the Tools tab, click List Tools, select get_current_weather, and enter latitude and longitude to retrieve weather data.

Key features of MCP Weather Server Setup Guide

  • Uses uv as a fast Python package manager written in Rust
  • Provides a get_current_weather tool for weather data
  • Includes MCP Inspector for interactive testing and debugging
  • Requires Claude Desktop App and a Claude.ai account
  • Server script must be named server.py and located in the project root

Use cases of MCP Weather Server Setup Guide

  • Setting up an MCP server for weather data retrieval
  • Testing MCP tools interactively with the MCP Inspector
  • Integrating weather data into Claude Desktop via the Model Context Protocol

常见问题

1

What prerequisites are needed for MCP Weather Server Setup Guide?

You need a Claude.ai account, the Claude Desktop App (available for macOS and Windows), a code editor, and uv installed.

2

How do I install uv?

On macOS use `brew install uv`; on Windows use `winget install --id=astral-sh.uv -e`.

3

What packages does the project require?

Install mcp[cli] and httpx using `uv add "mcp[cli]" httpx`.

4

How do I test the server after starting it?

Open http://localhost:5173 in a browser, click Connect in the MCP Inspector, go to the Tools tab, click List Tools, select get_current_weather, and enter a latitude and longitude to see the JSON weather result.

5

What is the MCP Inspector?

It is a helpful tool for interacting with and debugging MCP tools during development, available via the web interface at localhost:5173.

评论

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