Weather MCP Server

Weather MCP Server

Provides active weather alerts for U.S. states and 7-day forecasts for a given latitude and longitude.

Category
Visit Server

README

๐ŸŒฆ๏ธ 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.


๐Ÿ“ 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured