Weather MCP Server
MCP Server Collections
A Model Context Protocol server that provides weather query capabilities using the free Open-Meteo API ā no API key required.
Features
get_weathertool ā Query current weather by city name or latitude/longitude coordinatesweather://current/{lat}/{lon}resource ā Access weather data as a resource URIZero-config ā Uses Open-Meteo's free API, no API key or account needed
Installation
git clone <repo-url> mcps
cd mcps
npm install
npm run buildUsage
Running the server
npm run dev # Development mode (tsx, no build step)
npm start # Production mode (requires npm run build first)MCP Client Configuration
Add to your MCP client configuration (e.g., Claude Code's mcpServers):
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/path/to/mcps/dist/weather/index.js"]
}
}
}Or using the dev script:
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["tsx", "/path/to/mcps/src/weather-mcp/index.ts"]
}
}
}Available Tool
get_weather
Get current weather conditions for a location.
Parameters (provide either a city name OR coordinates):
Parameter | Type | Description |
| string (optional) | City name, e.g. |
| number (optional) | Latitude coordinate, e.g. |
| number (optional) | Longitude coordinate, e.g. |
Example responses:
š¤ Weather for Berlin, Germany
āāāāāāāāāāāāāāāāāāāāāāāāā
š” Temperature: 22.1°C (feels like 21.5°C)
š§ Humidity: 54%
šØ Wind: 12.3 km/h WSW (248°)
ā Conditions: Partly cloudyAvailable Resource
weather://current/{lat}/{lon}
Returns current weather as a JSON resource for the given coordinates.
API
This server uses Open-Meteo, a free and open-source weather API. No API key is required. The free tier allows up to 10,000 requests per day.
HOW to test
npm run inspector -- node dist/browser-console/index.js
License
ISC
Latest 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/Leonwjj/mcps'
If you have feedback or need assistance with the MCP directory API, please join our Discord server