Weather MCP
Weather MCP
An MCP server that provides current weather, 7-day forecasts, and US weather alerts — no API keys required.
APIs Used
Purpose | API |
Current weather & forecast |
|
City name to coordinates |
|
US weather alerts |
|
Tools
get_current_weather
Get current weather conditions for any city in the world.
Example: "What's the weather in Tokyo?"
get_forecast
Get a 7-day weather forecast for any city in the world.
Example: "What's the forecast for London this week?"
get_alerts
Get active weather alerts for a US state. US only.
Example: "Any weather alerts in California?"
Setup
1. Install dependencies
npm install2. Build
npm run build3. Add to Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/path/to/MCP/weather/build/index.js"]
}
}
}Then restart Claude Desktop.
Project Structure
├── src/
│ ├── index.ts # MCP server and tool definitions
│ └── constants.ts # API endpoint constants
├── build/ # Compiled output (generated)
├── package.json
└── tsconfig.jsonLatest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/srewatkar/weather'
If you have feedback or need assistance with the MCP directory API, please join our Discord server