MCP Weather Project
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 Weather ProjectAre there any active weather alerts for Texas right now?"
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 Project
A Model Context Protocol (MCP) server implementation that provides weather alerts via the National Weather Service (NWS) API. This project includes both a FastMCP server and a LangChain-based client with memory capabilities.
Features
Weather Alerts: Fetch active weather alerts for any US state using the NWS API.
Echo Resource: A simple resource that echoes back messages.
Greeting Prompt: A customizable greeting prompt generator.
Interactive Client: A CLI-based chat client powered by Groq's Llama 3.3 model with conversation memory.
Related MCP server: Weather MCP Server
Prerequisites
Installation
Clone the repository:
git clone <repository_url> cd mcpfileInstall dependencies: Using
uv(recommended):uv syncOr using pip:
pip install -r requirements.txt(Note: You may need to generate a
requirements.txtfrompyproject.tomlif not usinguv)Set up Environment Variables: Create a
.envfile in the root directory and add your Groq API key:GROQ_API_KEY=your_groq_api_key_here
Usage
Running the Entry Point
The main.py is a simple entry point script that prints a welcome message.
uv run main.py
# OR
python main.pyRunning the interactive Client
The client connects to the weather server and allows you to interact with it using natural language.
Ensure the server configuration in
server/weather.jsonis correct (it points toserver/weather.py).Run the client:
uv run server/client.py # OR if using a virtual environment directly: # python server/client.pyExample Interaction:
You: Check weather alerts for TX Assistant: Checking weather alerts for Texas... [Agent responds with alerts]
Running the MCP Server Standalone
You can run the MCP server directly using uv. This is useful for inspection or debugging with the MCP Inspector.
uv run --with mcp[cli] mcp run server/weather.pyConfiguration Verification
Ensure that server/weather.json points to the correct absolute path of your server/weather.py file.
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/your/absolute/path/to/mcp/mcpfile/server/weather.py"
]
}
}
}Project Structure
server/weather.py: The main MCP server implementation usingFastMCP. Defines tools (get_alerts), resources, and prompts.server/client.py: An MCP client implementation usingLangChainandChatGroq. Handles the interactive chat session.server/weather.json: Configuration file for the MCP client to locate the server.main.py: Simple entry point script.pyproject.toml: Project configuration and dependencies.
Tools Available
get_alerts(state: str): Get active weather alerts for a US state (e.g., "CA", "NY").
Resources
echo://{message}: Echoes a message.
Prompts
greet_user(name: str, style: str): Generates a greeting in a specified style ("friendly", "formal", or "casual").
Available Tools
1 toolget_alertsB
Get weather alerts for a US state.
Args:
state: Two-letter US state code (e.g. CA, NY)
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden for behavioral disclosure. It mentions the tool 'gets' data, implying a read-only operation, but fails to describe critical behaviors like error handling, rate limits, authentication needs, or what happens with invalid inputs. For a tool with zero annotation coverage, this leaves the agent with incomplete operational understanding.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded. The first sentence states the core purpose clearly, followed by a concise 'Args' section with essential parameter details. Every sentence earns its place with no redundant or verbose language.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (1 parameter, no nested objects) and the presence of an output schema, the description is minimally adequate. It covers the purpose and parameter semantics but lacks behavioral context and usage guidelines. With no annotations, it should do more to explain operational aspects, but the output schema reduces the need to describe return values.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds meaningful context beyond the input schema. The schema only defines 'state' as a required string with title 'State', but the description clarifies it as a 'Two-letter US state code (e.g. CA, NY)', providing format examples and specificity. With 0% schema description coverage, this compensates well for the schema's lack of detail.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get weather alerts for a US state.' It specifies the verb ('Get') and resource ('weather alerts'), with geographic scope ('US state'). However, with no sibling tools, it cannot demonstrate differentiation from alternatives, preventing a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or exclusions. It only states what the tool does, with no context for usage decisions. This is a significant gap in helping an agent select the tool appropriately.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
- First observed
get_alerts
TDQS
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'get_alerts' has a clear and distinct purpose that cannot be confused with any other tool in this set.
The naming pattern is trivially consistent as there is only one tool. The tool name 'get_alerts' follows a clear verb_noun convention (get + alerts), which would be consistent if more tools were added.
A single tool is generally too few for a weather server's apparent scope, which typically includes forecasts, current conditions, and other weather data beyond just alerts. This feels thin and limited for the domain.
The tool surface is severely incomplete for a weather domain. It only provides alerts for US states, missing essential operations like getting forecasts, current weather, radar data, or international coverage, which will cause significant agent failures.
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 Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
1MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides weather information like forecasts and alerts for US locations using the National Weather Service API.5-
- FlicenseBqualityDmaintenanceAn MCP server that provides weather information and alerts for US locations using the National Weather Service API, enabling retrieval of weather forecasts and active weather alerts.2-
- FlicenseNot gradedqualityDmaintenanceEnables users to get real-time weather alerts for US states and echo messages through both MCP server tools and a modern web interface. Provides weather information access with multiple deployment options for different use cases.1-
- FlicenseCqualityDmaintenanceAn MCP server that provides weather alerts and forecasts using the National Weather Service API, with additional system tools for shell commands and process information.43-
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/PRIYADHARSANK/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server