A Model Context Protocol (MCP) server that provides weather data from the National Weather Service API.
git clone https://github.com/nakamurau1/weather-mcp.git
cd weather-mcp
npm install
npm run build
npm start
Or directly:
./dist/index.js
# MacOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/absolute/path/to/your/weather-mcp/dist/index.js"]
}
}
}
Restart Claude Desktop
Test the server with queries like:
Gets weather forecast for a geographic location.
Parameters:
latitude
: Latitude of the location (number between -90 and 90)longitude
: Longitude of the location (number between -180 and 180)Gets active weather alerts for a US state.
Parameters:
state
: Two-letter US state code (e.g., "CA", "NY", "TX")URI Template: weather://{state}/alerts
Example: weather://CA/alerts
npm run dev
npm run build
ISC
{
"mcpServers": {
"weather": {
"env": {},
"args": [
"/absolute/path/to/your/weather-mcp/dist/index.js"
],
"command": "node"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.