MazWeatherMcp 1.0.0

dotnet tool install --global MazWeatherMcp --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local MazWeatherMcp --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MazWeatherMcp&version=1.0.0
                    
nuke :add-package MazWeatherMcp --version 1.0.0
                    

Maz Weather MCP Server

Developing locally

To test this MCP server from source code (locally) without using a built MCP server package, you can configure your IDE to run the project directly using dotnet run.

  • VS Code: Create a <WORKSPACE DIRECTORY>/.vscode/mcp.json file
  • Visual Studio: Create a <SOLUTION DIRECTORY>\.mcp.json file

For both VS Code and Visual Studio, the configuration file uses the following server definition:

{
  "servers": {
    "WeatherMcp": {
      "type": "stdio",
      "command": "dotnet",
      "args": [
        "run",
        "--environment",
        "WeatherMcpConfiguration__ApiKey=<OpenWeatherMap API Key>",
        "--project",
        "WeatherMcp"
      ]
    }
  }
}

Testing the MCP Server

Once configured, you can ask Copilot Chat for a weather, for example, What is the weather like in Moscow?. It should prompt you to use the get_current_weather tool on the WeatherMcp MCP server and show you the results. Use agent tools to interact with the MCP server.

Using the MCP Server from NuGet.org

Once the MCP server package is published to NuGet.org, you can configure it in your preferred IDE. Both VS Code and Visual Studio use the dnx command to download and install the MCP server package from NuGet.org.

  • VS Code: Create a <WORKSPACE DIRECTORY>/.vscode/mcp.json file
  • Visual Studio: Create a <SOLUTION DIRECTORY>\.mcp.json file

For both VS Code and Visual Studio, the configuration file uses the following server definition:

{
  "servers": {
    "MazWeatherMcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "MazWeatherMcp",
        "--version",
        "1.0.0",
        "--yes"
      ],
      "env": {
        "WeatherMcpConfiguration__ApiKey": "<OpenWeatherMap API Key>"
      }
    }
  }
}

Architecture

The project uses a standard hexagonal architecture. Primary adapters are used to invoke our logic from external sources. Secondary adapters are used to call external data sources or generate random data, such as HttpClients and Repositories. In the domain, we have our entities and pure, effect-free functions.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 206 7/31/2025
0.1.0 171 7/31/2025