Skip to main content
Glama

MCP Server

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

Youtube reference: https://www.youtube.com/watch?v=Y4bpWRLdRoA

Features

The MCP Product/Weather Server implements below 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

  • get-products: list all available products in the catalog

  • add-product: add a new product to the catalog

  • get-product-by-id: fetch a product by id

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

  • fetch all added products

  • add a product to the catalog (name, description, price, quantity)

  • fetch a product by id

Related MCP server: mcp-weather-server

Quick Start

Prerequisites

  • Node.js 16+ and npm

  • Claude Desktop

  • Basic knowledge of TypeScript/JavaScript

  • you also need to run spring boot rest apis using application: product-poc

Installation

  1. Clone this repository:

    git clone https://github.com/navgour1989/mcp-server.gitt
    cd mcp-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": {
        "product": {
          "command": "node",
          "args": [
            "/absolute/path/to/your/mcp-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?"

  • "Are there any weather alerts in Texas today?"

  • "What's the forecast for Chicago this weekend?"

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Integrates the OpenWeather API with Claude to provide real-time weather updates, 5-day forecasts, and air quality data. It enables users to query current conditions, pollution levels, and coordinate-based weather information directly within their conversations.
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to access real-time weather data and alerts, including forecasts and severe weather warnings, by providing tools like get-forecast and get-alerts.
      94 npm
      18
      GPL 3.0