背景图片

MCP-Weather-Server

Agent

Description

A TypeScript application that provides access to real-time US weather data and alerts through the National Weather Service API, integrated with the Model Context Protocol (MCP) for AI assistant use.

Author

cskiro

Created Date

2024-12-01

Tutorial

Learn how to use this MCP server

Step 1: Prerequisites

Ensure you have Node.js (v18 or higher) and npm or yarn installed.

Step 2: Installation

  1. Clone the repository: bash git clone https://github.com/cskiro/MCP-Weather-Server.git

  2. Navigate to the project directory: bash cd MCP-Weather-Server

  3. Install dependencies: bash npm install

  4. Build the project: bash npm run build

  5. Make the CLI executable: bash chmod +x build/index.js

  6. Install globally (optional): bash npm install -g .

Step 3: Usage

  1. Direct invocation: bash weather

  2. Through an MCP-compatible client/assistant: Configure your MCP client to use the weather tool for forecasts and weather alerts.