Weather Query MCP Server
Used for loading environment variables from a .env file, enabling secure configuration of API keys and other settings.
Supports repository cloning and version control for installation and deployment of the weather query service.
Integrates with OpenAI to process weather queries, requiring an API key for authentication to access weather information services.
Provides the runtime environment for both the server and client components, with version 3.8+ required.
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 Query MCP Serverwhat's the weather like in Tokyo today?"
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 Query MCP Server/Client Example
This project is a weather query client that interacts with an MCP (Model-Client-Protocol) server to fetch and display weather information for a specified city.
Features
Connects to an MCP server to list available tools.
Queries weather information for a specified city.
Displays formatted weather information including temperature, humidity, wind speed, and weather description.
Related MCP server: Weather MCP Server
Requirements
Python 3.8+
openailibrarydotenvlibrarymcplibrary
Setup
Clone the repository:
git clone <repository_url> cd <repository_directory>Create a virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`Install the required dependencies:
pip install -r requirements.txtCreate a
.envfile in the root directory and add your OpenAI API key and other configurations:OPENAI_API_KEY=<your_openai_api_key> BASE_URL=<your_base_url> MODEL=<your_model>
Usage
Start the MCP server:
python server.pyRun the client and connect to the server:
python client.py <path_to_server_script>Interact with the client:
Type the name of the city in English to get the weather information.
Type
quitto exit the client.
Project Structure
server.py: Contains the MCP server implementation and weather query tool.client.py: Contains the MCP client implementation to interact with the server..env: Environment variables for API keys and configurations..gitignore: Specifies files and directories to be ignored by git.README.md: Project documentation.
License
This project is licensed under the MIT License.
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-qualityDmaintenanceAn MCP server that provides access to the Interzoid GetWeatherCity API, allowing users to retrieve weather information for specified cities through natural language interactions.Last updated
- Flicense-qualityDmaintenanceEnables users to get current weather conditions and forecasts for any city through OpenWeatherMap API integration. Designed as a sample MCP server for the Puch AI Hackathon with basic weather querying capabilities.Last updated
- FlicenseCqualityDmaintenanceAn MCP server that provides access to current weather data and 5-day forecasts via the Open Weather13 API. It enables users to retrieve weather information using city names or geographic coordinates across various languages.Last updated3
- Alicense-qualityDmaintenance基于OpenWeatherMap API的天气查询MCP服务器,支持全球城市天气信息查询,包括温度、湿度和天气描述,并支持摄氏度和华氏度单位切换。Last updatedMIT
Related MCP Connectors
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
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/eternachen/mcp-playground'
If you have feedback or need assistance with the MCP directory API, please join our Discord server