Skip to main content
Glama
DilipSC

Weather MCP Server

by DilipSC

๐ŸŒฆ๏ธ Weather MCP Server

This project is a Model Context Protocol (MCP) compatible weather server that provides:

  • ๐ŸŒฉ๏ธ Active weather alerts for U.S. states

  • ๐ŸŒค๏ธ 7-day forecasts for a given latitude and longitude

It connects to Claude Desktop using the stdio transport.


Related MCP server: Weather MCP Server

๐Ÿ“ Project Structure

MCP_pracc/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ index.ts        # Main MCP server source code
โ”œโ”€โ”€ build/              # Output folder for compiled JS
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ README.md

โš™๏ธ Installation & Setup

1. Clone the project & install dependencies

npm install

2. Build the TypeScript source

npm run build

This will compile src/index.ts into build/index.js with proper ES module output.


3. Run the MCP server

node ./build/index.js

You should see:

Weather MCP Server running on stdio

If you do, your MCP server is ready to be connected to Claude Desktop.

for more info get a look at Fireship


๐Ÿง  Connecting to Claude Desktop

  1. Open Claude Desktop

  2. Go to Settings โ†’ Model Context Protocol โ†’ Edit Config File

  3. Add this to your config.json:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "path/to/index/build/index.js"
      ]
    }
  }
}

โœ… Ensure the path matches the location of your compiled index.js file โœ… Use forward slashes / even on Windows

  1. Restart Claude Desktop


๐Ÿงช Usage from Claude

Try these tool calls inside Claude's prompt:

/tools get_alerts { "state": "CA" }
/tools get_forecast { "latitude": 37.7749, "longitude": -122.4194 }

๐Ÿ›  Developer Notes

TypeScript Configuration (tsconfig.json)

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ES2022",
    "moduleResolution": "bundler",
    "outDir": "build",
    "rootDir": "src",
    "esModuleInterop": true,
    "strict": true,
    "skipLibCheck": true
  },
  "include": ["src/**/*.ts"],
  "exclude": ["build"]
}

Scripts (package.json)

"bin": {
    "weather": "./build/index.js"
},
"scripts": {
  "build": "tsc && chmod 755 build/index.js"
}

๐Ÿ“ฆ Dependencies

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides access to National Weather Service (NWS) data, enabling users to retrieve active weather alerts for US states and weather forecasts for specific geographic coordinates.
    80
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Provides weather information and alerts from the National Weather Service, including active weather alerts for US states and location-based forecasts using latitude/longitude coordinates.
    2
    MIT

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/DilipSC/weather-MCP'

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