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?"

Available Tools

5 tools
add-productC

Add a new product to the catalog

Inputs: id (required), name (required), price (required), quantity (required), +1 more.

get-alertsC

Get weather alerts for a state

Inputs: state (required).

get-forecastC

Get weather forecast for a location

Inputs: latitude (required), longitude (required).

get-product-by-idB

Fetch a single product details using its unique ID

Inputs: id (required).

get-productsC

Get all added products

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    The weather tools (get-alerts, get-forecast) and product tools (get-products, add-product, get-product-by-id) each have clearly distinct purposes, with no real overlap. The only minor confusion comes from the server combining two unrelated domains, which makes the overall tool set feel less focused.

    Naming Consistency5/5

    All tool names use consistent kebab-case verb_noun phrasing: get-alerts, get-forecast, get-products, add-product, and get-product-by-id. The pattern is predictable throughout.

    Tool Count4/5

    Five tools is a reasonable count and none feels redundant. However, spreading five tools across two unrelated domains leaves each area somewhat thin.

    Completeness3/5

    The product catalog supports listing, adding, and fetching by ID, but lacks update and delete operations, leaving CRUD incomplete. The weather surface is read-only, which is reasonable, but the overall toolset has notable lifecycle gaps for product management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    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.
      19
      ISC