Local Weather & International Time MCP Agent
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., "@Local Weather & International Time MCP AgentWhat's the weather and current time in Tokyo?"
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.
🌤️ Local Weather & International Time MCP Agent
A high-performance, real-time Weather and International Time Dashboard built on Model Context Protocol (MCP) using Python, FastMCP / MCPServer, Streamlit, Open-Meteo API, and TimeAPI.io.
🏛️ System Architecture & Workflow
The application leverages a decoupled client-server architecture powered by the Model Context Protocol (MCP) over Standard Input/Output (stdio) JSON-RPC 2.0 communication.
graph TD
subgraph UI_Layer["🖥️ Frontend UI Layer (Streamlit)"]
UI["app.py (Streamlit Web Dashboard)"]
CSS["Dynamic Glassmorphism Theme Engine"]
Cache["@st.cache_data (5-Min Caching Layer)"]
end
subgraph MCP_Client_Layer["⚡ MCP Client IPC Layer"]
ClientSession["mcp.Client (Stdio Client Session)"]
ProcessParams["StdioServerParameters (sys.executable server.py)"]
end
subgraph MCP_Server_Layer["🔌 MCP Server Layer (server.py)"]
MCPServer["mcp.server.MCPServer"]
ToolWeather["@mcp.tool() weather"]
ToolTime["@mcp.tool() time_info"]
ToolGeocode["@mcp.tool() geocode"]
end
subgraph Backend_Services["⚙️ External Services & Logic Layer"]
WeatherEngine["weather.py (Open-Meteo Integration)"]
TimeEngine["time_service.py (TimeAPI.io & ZoneInfo)"]
end
subgraph External_APIs["🌐 External REST APIs"]
OpenMeteo["Open-Meteo Forecast & Geocoding API"]
TimeAPI["TimeAPI.io REST API Service"]
end
UI --> Cache
Cache --> ClientSession
ClientSession -->|JSON-RPC 2.0 via Stdio| ProcessParams
ProcessParams --> MCPServer
MCPServer --> ToolWeather
MCPServer --> ToolTime
MCPServer --> ToolGeocode
ToolWeather --> WeatherEngine
ToolTime --> TimeEngine
WeatherEngine -->|Async HTTP GET| OpenMeteo
TimeEngine -->|Async HTTP GET| TimeAPIRelated MCP server: Weather MCP Service
🔄 High-Level Sequence Workflow
sequenceDiagram
autonumber
actor User
participant Dashboard as Streamlit UI (app.py)
participant Client as MCP Client Session
participant Server as MCP Server (server.py)
participant ExternalAPIs as External REST APIs (Open-Meteo & TimeAPI)
User->>Dashboard: Search City (e.g. "Berlin")
Dashboard->>Client: Request Weather & International Time
Client->>Server: Call MCP Tools (weather & time_info)
Server->>ExternalAPIs: Fetch Live Weather & Time Data
ExternalAPIs-->>Server: Return Data Payloads
Server-->>Client: Return Structured MCP Tool Response
Client-->>Dashboard: Deliver Formatted Weather & Time Data
Dashboard-->>User: Render Dynamic Glassmorphic UI Dashboard📁 File Significance & Responsibilities
File | Type | Significance & Responsibility |
Streamlit Frontend Application | Main web interface. Implements the dynamic glassmorphism design system using native | |
MCP Server Entrypoint | Exposes model tools over Model Context Protocol ( | |
Weather Processing Engine | Handles asynchronous HTTP GET requests to Open-Meteo REST APIs. Maps WMO weather codes to emojis and categories, converts wind direction degrees to cardinal directions ( | |
International Time Service | Manages international time and date resolution. Queries the TimeAPI.io REST API and features a native | |
CLI Testing & Verification | Independent command-line client script that demonstrates full MCP stdio client initialization, protocol handshaking, tool listing, and execution testing via command line arguments. | |
Package Manifest | Declares project dependencies: |
✨ Key Features & Capabilities
Dual MCP Tool Pipeline: Seamlessly orchestrates multiple MCP tools (
weather+time_info+geocode) over JSON-RPC 2.0 standard.Glassmorphism Aesthetic UI: Custom dynamic background gradients that respond live to weather conditions (Clear Day, Clear Night, Rain, Storm, Cloud, Snow, Fog).
International Date & Time Comparison: Bottom-right hero badge displaying live formatted date, 12-hour clock time, timezone abbreviation, and UTC offset for instant side-by-side global comparison.
Interactive 24-Hour Plotly Forecast Chart: Interactive splined temperature curve combined with rain probability bar charts.
7-Day Extended Daily Forecast: Card grid displaying daily high/low temperatures, weather icons, and rain accumulation totals.
Unit Switching: Toggle between Metric (
°C,km/h,mm) and Imperial (°F,mph,in).10-Minute Response Caching: Fast
@st.cache_data(ttl=300)caching for instant sub-50ms repeat searches.Interactive MCP Protocol Inspector: Expanded debug tab showing protocol architecture flow, tool schemas, query latency breakdown, and raw structured JSON responses.
🚀 How to Run
Install Dependencies:
pip install -r requirements.txtTest MCP Server via CLI:
python client.py "Berlin"Launch Web Application:
streamlit run app.py
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.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides current weather information and forecasts for major cities through MCP tools and resources. Supports getting weather data, multi-day forecasts, and listing available cities with mock data for demonstration purposes.
- Flicense-qualityDmaintenanceProvides live weather data and forecasts for any location worldwide through both REST API and MCP endpoints. Supports current weather, multi-day forecasts, and various location formats including city names, coordinates, ZIP codes, and airport codes.1
- Alicense-qualityDmaintenanceProvides real-time weather data and multi-day forecasts for any location worldwide.47MIT
- Alicense-qualityDmaintenanceEnables to interact with comprehensive weather data through the MCP protocol, including current conditions, multi-day forecasts, hourly forecasts, and geocoding.17MIT
Related MCP Connectors
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
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/AdityaVerma19/Weather_Time_MCP_app'
If you have feedback or need assistance with the MCP directory API, please join our Discord server