Weather MCP Server
Provides active weather alerts for U.S. states and 7-day forecasts for a given latitude and longitude.
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.tsintobuild/index.jswith 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
- Open Claude Desktop
- Go to Settings โ Model Context Protocol โ Edit Config File
- 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.jsfile โ Use forward slashes/even on Windows
- 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.