Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by suryanshp1

MCP Crash Course

A simple demo of MCP python sdk.

uv commands

start a new project

uv init <project-name>

create a virtual environment

uv venv

activate the virtual environment

uv venv --activate

install the dependencies

uv add <package>
uv add -r requirements.txt
uv sync

run application

uv run app.py

run the development server

uv run dev

build the project

uv run build

Run server using MCP Inspector :

  • Install MCP python sdk

uv add "mcp[cli]"
  • Run mcp inspector

uv run mcp dev server/weather.py

MCP Inspector is up and running at http://127.0.0.1:6274

Add server to claude desktop :

  • run command

uv run mcp install .\server\weather.py
  • query "what is weather alert in CA" in claude desktop

Add server to cursor :

  • goto preferences > settings > mcp and copy paste claude config

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "C:\\Users\\Suraj\\Desktop\\Python\\mcp-crash-course\\mcpcrashcourse\\server\\weather.py"
      ]
    }
  }
}
  • Then do a query in cursor chat

Directly consume server in code - using mcp-use :

  • Install mcp-use

uv add mcp-use
  • Install langchain-groq

uv add langchain-groq
  • run client

uv run server/client.py

Available Tools

1 tool
get_alertsC

Get weather alerts for US state Args: state: Two letter US state code (e.g CA, NY etc)

Inputs: state (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct by default.

    Naming Consistency5/5

    A single tool inherently follows a consistent naming pattern. The tool name 'get_alerts' uses a clear verb_noun format, which would be consistent if more tools were added.

    Tool Count2/5

    A single tool is too few for a weather server, as it lacks basic operations like getting current conditions, forecasts, or historical data. This severely limits the server's utility and scope.

    Completeness1/5

    The tool set is severely incomplete for a weather domain. It only provides alerts for US states, missing essential functions such as retrieving current weather, forecasts, or data for locations outside the US, making it inadequate for typical weather-related tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A basic Model Context Protocol server implementation that demonstrates core MCP functionality including tools and resources. Provides weather alerts through the Weather API and serves as a learning example for MCP development.
      -
    • F
      license
      A
      quality
      D
      maintenance
      Demonstrates creating and connecting an MCP weather server using FastMCP, with support for integration with Claude Desktop, Cursor, and local LLMs to query weather alerts and information.
      1
      1
      -
    • F
      license
      B
      quality
      D
      maintenance
      A basic MCP server adapted from the official quickstart guide that provides weather data functionality and works with OpenAI chat completions API. Demonstrates MCP server setup with configuration examples for Claude Desktop and development tools.
      2
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.
      13 npm
      -