mcp-weather-server

nj-acharya/mcp-weather-server

3.2

If you are the rightful owner of mcp-weather-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MPC Weather Server is a tool that provides weather alerts and forecasts using the Model Context Protocol.

Tools
2
Resources
0
Prompts
0

mpc-weather-server

Weather Server based on Model Context Protocol. The below process will create two tools:

  • get-alerts

    Get weather alerts for a state

    From server: weather

  • get-forecast

    Get wether forecast for a location

    From server: weather

Claude can use these tools provided by weather server using Model Context Protocol.

How to Run

dotnet run /path/to/weather

To create a new server

Create new project

dotnet new console

Import dependencies

dotnet add package ModelContextProtocol --prerelease

dotnet add package Microsoft.Extensions.Hosting

Add code using MPC SDK and Microsoft libraries

.\Program.cs and .\WeatherTools.cs

Compile and run

dotnet run

Test with Claude for Desktop

code $env:AppData\Claude\claude_desktop_config.json

{

    "mcpServers": {
    
        "weather": {
        
            "command": "dotnet",
            
            "args": [
            
               "run",
               
                "--project",
                
                "C:\\ABSOLUTE\\PATH\\TO\\PROJECT",
                
                "--no-build"
                
            ]
            
        }
        
    }
    
}