quickstart-resources/weather-server-go
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-16 08:59:02 -07:00
..
go.mod Bump the go_modules group across 2 directories with 1 update 2026-03-19 12:45:41 +00:00
go.sum Bump the go_modules group across 2 directories with 1 update 2026-03-19 12:45:41 +00:00
main.go Use http.DefaultClient for NWS API requests 2026-01-29 01:50:04 +08:00
README.md Update quickstart URLs (#140) 2026-05-16 08:59:02 -07:00

A Simple MCP Weather Server written in Go

See the Build an MCP server tutorial for more information.

Building

go build -o weather

Running

./weather

The server will communicate via stdio and expose two MCP tools:

  • get_forecast - Get weather forecast for a location (requires latitude and longitude)
  • get_alerts - Get weather alerts for a US state (requires two-letter state code)