Skip to main content
Glama

Weather MCP Server

How the LLM Uses These Tools

Example 1: Weather Alerts

You: "Are there any weather alerts in California?"

Claude's process:

  1. Recognizes it needs weather alert info

  2. Calls get_alerts(state="CA")

  3. Gets the formatted response

  4. Presents it to you in natural language

Example 2: Weather Forecast

You: "What's the weather forecast for San Francisco?"

Claude's process:

  1. Knows SF coordinates (or looks them up)

  2. Calls get_forecast(latitude=37.7749, longitude=-122.4194)

  3. Gets 5-period forecast

  4. Summarizes it for you

Update the claude config file claude_desktop_config.json to below content

{ "mcpServers": { "weather": { "command": "/Users/santhosh.sharma/.local/bin/uv", "args": [ "--directory", "/Users/santhosh.sharma/Repositories/mcp-weather", "run", "weather.py" ] } } }

Reference : https://modelcontextprotocol.io/docs/develop/build-server#python

Analyze logs in ~/Library/Logs/Claude/mcp.log When you ask Claude (with this MCP server connected): Connector Toggle UI

Deploy Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Provides weather forecast and alert information from the National Weather Service API, allowing users to query weather forecasts by coordinates and check weather alerts by state.

  1. Example 1: Weather Alerts
    1. Example 2: Weather Forecast
      1. Update the claude config file claude_desktop_config.json to below content
        1. Reference : https://modelcontextprotocol.io/docs/develop/build-server#python

      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/santosh-ksharma/mcp-weather'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server