Weather MCP Server logo

Weather MCP Server

by yogi-miraje

This is a weather information service built using the MCP framework. It provides weather forecasts for any city by leveraging the National Weather Service (NWS) API.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

This server is a weather information service built using the Model-Completion-Protocol (MCP) framework. It fetches and provides weather forecasts for any city by utilizing the National Weather Service (NWS) API.

How to use Weather MCP Server?

To use the server locally, run mcp dev weather.py. To integrate with Claude Desktop, add a configuration block to your Claude Desktop config, specifying the command and arguments to execute the weather.py script, making sure to replace the directories with your own path. Then, you can ask Claude questions about the weather in specific cities.

Key features of Weather MCP Server

  • Geocode city names to latitude/longitude coordinates

  • Fetch weather data from the National Weather Service API

  • Get detailed weather forecasts including temperature, conditions, and wind information

  • Modular design with separate tools for each step of the process

Use cases of Weather MCP Server

  • Getting weather forecasts for specific cities

  • Integrating weather information into Claude Desktop

  • Developing weather-related applications using the MCP framework

  • Automating weather information retrieval

FAQ from Weather MCP Server

What is MCP?

MCP stands for Model-Completion-Protocol, a framework for building services.

Where does the weather data come from?

The weather data is fetched from the National Weather Service (NWS) API.

How do I install the server?

You can install the server using uv add "mcp[cli]" or pip install mcp.

Can I use this server with other applications besides Claude Desktop?

Yes, you can use the server with any application that supports the MCP framework.

What kind of weather information can I get?

You can get detailed weather forecasts including temperature, conditions, and wind information.