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 weather forecast for Denver?"
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
A Model Context Protocol (MCP) server built with FastMCP that provides US weather forecasts and active alerts using the National Weather Service (NWS) API.
Features (Tools Provided)
When connected to an AI assistant, it provides the following tools:
get_alerts(state: str): Fetches active weather alerts for a US state (e.g. "CA", "NY").get_forecast(latitude: float, longitude: float): Fetches detailed weather forecasts for a specific geographic coordinate.
Related MCP server: MCP Weather Server
Project Structure
weather.py: The main FastMCP server containing the API calls and tool definitions..venv/: The Python virtual environment for isolated dependencies.pyproject.toml/main.py: Other configuration and entry point scripts.
Installation & Setup
Make sure you are using the virtual environment:
source .venv/bin/activateRequired packages are likely already installed, but if not:
pip install "mcp[cli]" httpx
Testing Locally
You can test the MCP tools locally through a web interface using the MCP Inspector:
npx @modelcontextprotocol/inspector "/Users/name/mcp servers/.venv/bin/python" "/Users/name/mcp servers/weather.py"Connecting to AI Clients (e.g., Claude Desktop)
To use this server with Claude Desktop, add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"weather": {
"command": "/Users/name/mcp servers/.venv/bin/python",
"args": [
"/Users/name/mcp servers/weather.py"
]
}
}
}Restart Claude and it will now have access to live formatting and tracking for US weather!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
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/ChinmayBhattt/mcp-server-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server