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

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

A
license - permissive license
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/navgour1989/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server