Weather MCP Server
Weather MCP Server
A Python Model Context Protocol server that gives an AI current weather and forecasts. It geocodes locations and reads forecast data from Open-Meteo, then optionally uses Groq to explain the result naturally.
Requirements
Python 3.11 or newer
A Groq API key for AI-generated summaries
Internet access for Open-Meteo and Groq requests
Setup
PowerShell:
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
Copy-Item .env.example .envOpen .env and set GROQ_API_KEY. The server still works without the key, but it returns structured JSON instead of an AI summary.
Run
Browser UI
Start the user-facing weather chat:
python -m weather_mcp_server.webThen open http://127.0.0.1:8000. Ask questions such as “Will it rain in London tomorrow?” The browser sends the question to the web adapter, which invokes the same get_weather tool exposed by the MCP server.
Run the server directly:
python -m weather_mcp_server.serverMCP clients can use the checked-in .vscode/mcp.json configuration. In VS Code, open this folder as the workspace, install the Python extension if prompted, and start the weather-mcp-server MCP server from the MCP controls.
The server exposes one tool:
get_weather(location, forecast_days=3): returns current conditions and 1-7 days of forecast data.
Test
python -m pytestThe tests mock Open-Meteo, so they do not require network access or a Groq key.
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/sandeep-kumar-db/mcp-server-app-v1'
If you have feedback or need assistance with the MCP directory API, please join our Discord server