mcp-poc
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., "@mcp-pocWhat'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.
MCP Weather Server POC
A proof of concept MCP (Model Context Protocol) server that integrates with external REST APIs to provide weather information.
Features
hello: Simple greeting tool
get_weather: Get weather by latitude and longitude coordinates
get_weather_by_location: Get weather by city/location name
Related MCP server: Swiss Meteo MCP
Weather Data
This POC uses the Open-Meteo API (free, no API key required):
Forecast data: https://api.open-meteo.com/v1/forecast
Setup
1. Create Virtual Environment (if not already created)
python -m venv venv2. Activate Virtual Environment
On Windows (PowerShell):
(Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned) ; (& .\venv\Scripts\Activate.ps1)On Windows (CMD):
venv\Scripts\activateOn macOS/Linux:
source venv/bin/activate3. Install Dependencies
pip install -r requirements.txtRunning the Server
python server.pyThe server will start and be ready to receive requests from MCP clients.
Usage Examples
In an MCP Client
Get weather by location name
Tool: get_weather_by_location
Parameters:
- location: "London"Response:
Current Weather in London, United Kingdom:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Temperature: 15.2°C
Humidity: 72%
Condition: Partly cloudy
Wind Speed: 12.5 km/h
Time: 2024-06-25T14:30Get weather by coordinates
Tool: get_weather
Parameters:
- latitude: 51.5074
- longitude: -0.1278Simple greeting
Tool: hello
Parameters:
- name: "World"Testing with curl (if exposed via HTTP)
curl http://localhost:8000/tools/call \
-X POST \
-H "Content-Type: application/json" \
-d '{"tool": "get_weather_by_location", "params": {"location": "Tokyo"}}'Supported Weather Codes
The server uses WMO weather codes and interprets them as:
0: Clear sky
1-3: Various cloud coverage
45-48: Fog conditions
51-82: Various precipitation types
95-99: Thunderstorm conditions
Architecture
┌──────────────────┐
│ MCP Client │
└────────┬─────────┘
│
│ (MCP Protocol)
│
┌────────▼─────────────────┐
│ MCP Server (FastMCP) │
│ ┌──────────────────────┐│
│ │ Tools: ││
│ │ - hello ││
│ │ - get_weather ││
│ │ - get_weather_... ││
│ └──────────────────────┘│
└────────┬─────────────────┘
│
│ (REST API)
│
┌────────▼──────────────────┐
│ Open-Meteo API │
│ - Weather Data │
│ - Geocoding │
└───────────────────────────┘Error Handling
The server includes error handling for:
Network timeouts
Connection errors
Invalid locations
HTTP errors
Malformed responses
License
MIT License
Future Enhancements
Add historical weather data
Add weather forecasts (multi-day)
Add severe weather alerts
Add precipitation probability
Support multiple weather providers
Add caching for repeated requests
Add UV index information
This server cannot be installed
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/BhavanG/mcp-poc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server