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 forecast for Tokyo this weekend?"
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 and Client
A simple example of using fastmcp to create a weather MCP (Model Control Protocol) server and client.
Features
Weather Server: Provides current weather and forecast data for major cities
Weather Client: Demonstrates how to interact with the MCP server
Tools Available:
get_weather(city)- Get current weather for a cityget_forecast(city, days)- Get weather forecast for 1-7 dayslist_cities()- Get list of available cities
Resources: Access to weather data via URI-based resources
Related MCP server: MCP Weather Server
Installation
Install dependencies:
pip install fastmcp asyncio-extras python-dateutilOr install from requirements:
pip install -r requirements.txtUsage
Running the Server
python weather_server.pyThe server will start and provide weather tools for the following cities:
New York
London
Tokyo
Sydney
Running the Client
python weather_client.pyChoose between:
Demo mode - Shows example interactions
Interactive mode - Allows manual testing of commands
Available Cities
The server provides mock weather data for:
New York
London
Tokyo
Sydney
Example Usage
# Get current weather
weather = await get_weather("New York")
# Get 5-day forecast
forecast = await get_forecast("London", 5)
# List all available cities
cities = await list_cities()API Reference
Tools
get_weather(city: str)
Get current weather information for a city.
Returns:
temperature (°C)
humidity (%)
condition (sunny, cloudy, rainy, etc.)
wind_speed (km/h)
pressure (hPa)
timestamp
get_forecast(city: str, days: int = 3)
Get weather forecast for a city.
Parameters:
city: City name
days: Number of days (1-7)
Returns:
List of daily forecasts with temperature highs/lows, conditions, etc.
list_cities()
Get list of available cities.
Returns:
List of city names
Resources
weather://current/{city}- Current weather data for a city
Extending the Example
To connect this to a real weather API:
Replace the
MOCK_WEATHER_DATAwith API callsAdd API key configuration
Handle API rate limits and errors
Add more cities and weather parameters
Notes
This example uses mock data for demonstration
In production, you'd connect to a real weather API like OpenWeatherMap
The client examples show the structure but don't make actual MCP calls
Refer to fastmcp documentation for complete MCP protocol implementation
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 weather information through MCP tools integrated with a FastAPI backend, enabling users to query current weather for single or multiple cities and check API health status.Last updated
- Alicense-qualityDmaintenanceExposes weather forecast APIs as MCP tools, allowing LLMs to retrieve current weather conditions and multi-day forecasts for any location using latitude and longitude coordinates.Last updated11MIT
- AlicenseBqualityDmaintenanceProvides tools to retrieve current weather conditions and daily forecasts for cities worldwide using the Open-Meteo API. This Python-based server enables MCP-compatible clients to access real-time meteorological data through a standardized interface.Last updated2MIT
- Alicense-qualityDmaintenanceProvides weather data from OpenWeatherMap API through MCP tools and a REST API with OpenAPI support. Enables LLM agents to retrieve current weather, forecasts, and temperature ranges by city or coordinates.Last updated32MIT
Related MCP Connectors
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
Hosted weather data MCP for discovery, validation, and OAuth-protected GribStream queries.
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/yongsingyou/mcp-test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server