Weather MCP

Weather MCP

A Model Context Protocol server that provides current weather information and 3-day forecasts for specified cities using the Open-Meteo API.

Category
Visit Server

README

Weather MCP

Model Context Protocol (MCP)を使用した天気予報アプリケーション

概要

このアプリケーションは、Open-Meteo APIを使用して天気予報データを取得・表示するMCPサーバーです。MCPプロトコルを通じて、LLMアプリケーションから天気情報にアクセスすることができます。

機能

  • 現在の天気情報の表示
  • 3日間の天気予報の表示
  • 位置情報に基づく天気情報の取得
  • MCPプロトコルを通じたアクセス

セットアップ

  1. 依存関係のインストール:
pip install -e .
  1. 環境変数の設定: .envファイルを作成し、必要な環境変数を設定してください。
MCP_API_KEY=your_api_key_here
MCP_BASE_URL=http://localhost:8000
  1. MCPサーバーの起動:
python -m app.server
  1. クライアントの実行:
python -m app.client

MCPツール

get_weather

指定した都市の現在の天気情報と3日間の予報を取得します。

パラメータ:

  • city: 天気情報を取得する都市名(例: 東京、New York)

レスポンス例:

{
  "location": {
    "name": "東京",
    "country": "日本",
    "latitude": 35.6895,
    "longitude": 139.6917,
    "timezone": "Asia/Tokyo"
  },
  "current": {
    "temperature": 22.5,
    "feels_like": 23.1,
    "humidity": 65,
    "wind_speed": 3.2,
    "wind_direction": 180,
    "precipitation": 0,
    "condition": "晴れ",
    "weather_code": 1
  },
  "forecast": [
    {
      "date": "2023-04-10",
      "max_temp": 24.5,
      "min_temp": 15.2,
      "precipitation": 0,
      "condition": "晴れ",
      "sunrise": "05:30",
      "sunset": "18:15"
    },
    ...
  ]
}

ライセンス

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured