MCP Weather Server
Click on "Deploy 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 Weather Server What's the weather 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.
MCP Weather Server
A simple MCP (Model Context Protocol) server built during an Agentic AI Internship. This server demonstrates how MCP can be used to provide tools, resources, and prompts to AI applications.
Features
MCP servers can provide the following functionalities:
Resources
File-like data that can be read by clients, such as API responses or file contents.
Tools
Functions that can be called by Large Language Models (LLMs) with user approval.
Prompts
Pre-written templates that help users accomplish specific tasks efficiently.
Related MCP server: Weather Service MCP
Requirements
Python 3.10 or higher
uv package manager
Python MCP SDK 1.2.0 or higher
httpx
Project Setup
1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh2. Initialize the Project
uv init .3. Install Dependencies
uv add "mcp[cli]" httpx4. Create the Server File
Create a file named weather.py and add the MCP server implementation.
5. Run the Server
uv run weather.pyProject Structure
.
├── weather.py
├── pyproject.toml
├── uv.lock
├── README.md
└── .gitignoreLearning Outcomes
Understanding MCP architecture
Building custom MCP tools
Integrating APIs using Python
Running MCP servers with uv
Working with Agentic AI applications
Author
Vishal M K B.E. CSE (AI & ML)
Available Tools
1 toolget_alertsA
Get weather alerts for a US state.
Args: state: Two-letter US state code (e.g. CA, NY)
Inputs: state (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no ambiguity. The tool name and description clearly convey its purpose.
The single tool uses a clear verb_noun pattern (get_alerts), which is consistent and appropriate.
One tool is significantly fewer than expected for a weather server, which typically includes forecasts, current conditions, and other weather data. The server seems under-scoped.
The server only provides alerts for US states, missing core weather functionalities like forecasts, current conditions, or radar. This is a severe gap for a weather server.
Maintenance
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to fetch real-time weather data for any location using the OpenWeatherMap API. Demonstrates how to build a simple MCP server that exposes weather information as a tool for LLMs.1GPL 3.0
- FlicenseBqualityDmaintenanceA learning project demonstrating how to build MCP servers with Python, featuring weather query tools that showcase custom tool creation, configuration, and integration with AI assistants.1-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides weather and web search tools, orchestrated by a LangGraph agent with OpenAI for natural language interaction.8-
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that provides weather data using Open-Meteo API, designed as a teaching tool for improving AI agent tool interfaces.-