MCP.so
ログイン

MCP Weather Server Setup Guide

@debanshu005

MCP Weather Server Setup Guide について

MCP server to get wearer forecast.

基本情報

カテゴリ

メディアとデザイン

ランタイム

python

トランスポート

stdio

公開者

debanshu005

設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

ツール

ツールは検出されませんでした

ツールは 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

FAQ from MCP Weather Server Setup Guide

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.

How do I install uv?

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

What packages does the project require?

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

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.

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.

コメント

「メディアとデザイン」の他のコンテンツ