Weather MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP ServerGet alerts for California"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ฆ๏ธ 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 install2. Build the TypeScript source
npm run buildThis will compile
src/index.tsintobuild/index.jswith proper ES module output.
3. Run the MCP server
node ./build/index.jsYou should see:
Weather MCP Server running on stdioIf 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
This server cannot be deployed
Maintenance
Related MCP Connectors
Get US weather forecasts, active alerts, and current observations.
US weather alerts (NWS): warnings, watches. $0.01/query. Register in-session โ free testnet funds.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides weather forecast and alert data for US locations through the National Weather Service API, enabling access to real-time weather alerts by state and detailed forecasts by coordinates.-
- AlicenseNot gradedqualityDmaintenanceProvides access to National Weather Service (NWS) data, enabling users to retrieve active weather alerts for US states and weather forecasts for specific geographic coordinates.55MIT
- AlicenseBqualityDmaintenanceProvides weather information and alerts from the National Weather Service, including active weather alerts for US states and location-based forecasts using latitude/longitude coordinates.2MIT
- FlicenseBqualityDmaintenanceProvides access to US weather data from the National Weather Service API, enabling retrieval of active weather alerts by state and detailed forecasts for specific coordinates.21-