Weather MCP Server
Click on "Install 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 ServerWhat's the weather in London?"
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
A Model Context Protocol (MCP) server built with fastmcp that exposes exactly 5 weather tools, each calling a different live public weather API. Includes a Groq-powered LLM agent and a browser inbox UI — you ask a weather question in plain English, the LLM picks the right MCP tool, and returns an HTML answer.
Architecture Diagram
flowchart TB
subgraph Browser["Browser (port 8080)"]
UI[index.html — LLM Inbox]
end
subgraph Agent["LLM Agent (port 8001)"]
API["/chat · /health"]
GROQ[Groq LLM]
MCPClient[MCP Client]
API --> GROQ
API --> MCPClient
GROQ -->|pick tool + format HTML| API
end
subgraph MCP["MCP Server (port 8000)"]
SSE[SSE Endpoint /sse]
T1[weather_open_meteo]
T2[weather_wttr]
T3[weather_7timer]
T4[weather_openweather]
T5[weather_weatherapi]
SSE --> T1 & T2 & T3 & T4 & T5
end
subgraph APIs["Live Weather APIs"]
A1[Open-Meteo\nno key]
A2[wttr.in\nno key]
A3[7Timer!\nno key]
A4[OpenWeatherMap\nfree key]
A5[WeatherAPI.com\nfree key]
end
UI -->|POST /chat| API
MCPClient -->|SSE| SSE
T1 --> A1
T2 --> A2
T3 --> A3
T4 --> A4
T5 --> A5
T1 & T2 & T3 & T4 & T5 -->|HTML| MCPClient
API -->|HTML response| UIRelated MCP server: Weather MCP
The 5 Tools & APIs
# | MCP Tool | Weather API | API Key Required? |
1 |
| No | |
2 |
| No | |
3 |
| No | |
4 |
| Yes (free tier) | |
5 |
| Yes (free tier) |
API Keys
Key | Required for | Sign up |
| LLM inbox UI ( | https://console.groq.com/keys (free tier) |
| Tool 4 only (optional) | |
| Tool 5 only (optional) |
Tools 1–3 work with no keys. For the inbox UI, Groq is required. Weather keys for tools 4–5 are optional — the LLM will pick from whichever tools are available.
Copy
.env.exampleto.envAdd your
GROQ_API_KEY(required for inbox)Optionally add weather API keys for tools 4–5
Quick Start
1. Install dependencies
git clone https://github.com/RimeetMavani/weather-mcp--build.git
cd weather-mcp--build
pip install -r requirements.txt2. Configure API keys
copy .env.example .env
# Edit .env — add GROQ_API_KEY (free tier, required for LLM inbox)
# Optionally add free weather API keys for tools 4–53. Start the MCP server (SSE on port 8000)
python server.pyYou should see output like:
Starting MCP server 'Weather MCP Server' with transport 'sse' on http://127.0.0.1:8000/sseKeep this terminal open.
4. Start the LLM agent (port 8001)
Open a second terminal:
python agent.pyThe agent lists MCP tools, lets the Groq LLM pick one for your question, calls the tool, and returns an HTML answer.
5. Serve the HTML inbox UI (port 8080)
Open a third terminal:
python -m http.server 80806. Open the browser UI
Go to: http://localhost:8080/index.html
Wait for status dots to turn green (agent, MCP, LLM)
Type a weather question in the inbox (no tool dropdown — the LLM chooses)
View the HTML-formatted LLM response
5 Suggested Inbox Questions
These match the clickable prompts in index.html. The LLM picks the tool — you do not select one manually.
Question | Expected tool (LLM may vary) |
What's the weather in London? | Open-Meteo or wttr.in |
How hot is it in Tokyo right now? | Temperature-focused tool |
Is it good stargazing weather in Paris tonight? | 7Timer! |
Tell me about the weather in New York | OpenWeatherMap (if key set) |
What's the humidity and wind like in Sydney? | Best matching tool |
CLI Test (all 5 tools)
With server.py running in another terminal:
python test_client.pyThis connects via SSE, lists tools, calls all 5 with live data, prints previews, then closes the connection. This tests the MCP server directly — no Groq agent needed.
Project Files
File | Purpose |
| MCP server — 5 weather tools, SSE transport |
| Groq LLM agent — picks MCP tool, returns HTML answer |
| Inbox UI — ask weather questions via agent on port 8001 |
| Python script to test all 5 MCP tools from the terminal |
| Python dependencies |
| Template for API keys (Groq + optional weather keys) |
End Testing
Close the browser tab
Stop the HTML server:
Ctrl+Cin the http.server terminalStop the agent:
Ctrl+Cin the agent.py terminalStop the MCP server:
Ctrl+Cin the server.py terminal
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/RimeetMavani/weather-mcp--build'
If you have feedback or need assistance with the MCP directory API, please join our Discord server