SM

sterlingchin/mcp-weather-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

18 stars 13 forks 品質 54 トレンド 22

A ready-to-use implementation of the Model Context Protocol (MCP) that extends Claude with real-time weather data capabilities.

概要

A ready-to-use implementation of the Model Context Protocol (MCP) that extends Claude with real-time weather data capabilities. Model Context Protocol (MCP) is an open communication framework that allows AI models like Claude to interact with external tools. This enables Claude to access real-time data, process files, and interact with external services - capabilities not available to most LLMs out of the box. Learn more about MCP: - MCP Official Documentation - Getting Started with MCP - Postmans MCP Developer Community 1. : A fully functional implementation that gives Claude access to real-time weather data 3. : Use as a starting point for your own MCP projects 4.

README

以下は原文 README の抜粋です。原文を見る。

MCP Weather Server

A ready-to-use implementation of the Model Context Protocol (MCP) that extends Claude with real-time weather data capabilities.

What is MCP?

Model Context Protocol (MCP) is an open communication framework that allows AI models like Claude to interact with external tools. This enables Claude to access real-time data, process files, and interact with external services - capabilities not available to most LLMs out of the box.

Learn more about MCP:

What This Repository Contains

This repository provides:

  1. Complete MCP Weather Server: A fully functional implementation that gives Claude access to real-time weather data
  2. Template Code: Use as a starting point for your own MCP projects
  3. Configuration Examples: Sample configuration files for connecting to Claude Desktop

Features

The MCP Weather Server implements two primary tools:

  • get-forecast: Retrieve current weather conditions and forecasts for any location by latitude/longitude
  • get-alerts: Check for active weather alerts in any US state

Once connected, Claude can:

  • Answer questions about current weather conditions
  • Provide detailed weather forecasts
  • Alert users to severe weather warnings
  • Make recommendations based on weather data

Quick Start

Prerequisites

  • Node.js 16+ and npm
  • Claude Desktop
  • Basic knowledge of TypeScript/JavaScript

Installation

  1. Clone this repository:

    git clone https://github.com/SterlingChin/mcp-weather-server.git
    cd mcp-weather-server
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Connecting to Claude Desktop

  1. Open your Claude Desktop configuration file:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %AppData%\Claude\claude_desktop_config.json
  2. Add the following configuration (update the path to point to your repository):

    {
      "mcpServers": {
        "weather": {
          "command": "node",
          "args": [
            "/absolute/path/to/your/mcp-weather-server/build/index.js"
          ]
        }
      }
    }
    
  3. Restart Claude Desktop

  4. Look for the hammer icon in Claude Desktop, indicating that MCP tools are available

Testing Your Implementation

Try asking Claude these questions:

  • “What’s the weather like in San Francisco right now?”
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "weather": { "command": "node", "args": [ "/absolute/path/to/your/mcp-weather-server/build/index.js" ] } } }