DWScript MCP server samples

Recently added a small DWScript-MCP repository with MCP (Model Context Protocol) samples for DWScript.

This showcases how you can deploy a custom MCP server with basically nothing else than the DWSWebServer.exe. That’s less than 8 MB, a couple small script files and no dependencies… and it can even run under Linux with Wine!

Two tools are currently included:

  • current time, most basic tool taking no parameters
  • METAR query, takes in a station id parameter, makes API calls to https://aviationweather.gov/api and returns the corresponding METAR (METeorological Aerodrome Report)

The MCP server has been tested under LMStudio (using an SSE channel) and a custom LLM client we have at work (using only POST request).

Interestingly enough even small models understand raw METAR (down to the tiny Qwen-0.6B). Larger models know the aerodromes closest to major cities, and will pick the correct METAR station when asked about weather conditions, will be able to convert to metric units, etc.