Add weather-server-go
This commit is contained in:
parent
e0c5614acc
commit
80ba22e4ea
1 changed files with 283 additions and 0 deletions
19
weather-server-go/README.md
Normal file
19
weather-server-go/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# A Simple MCP Weather Server written in Go
|
||||
|
||||
See the [Quickstart](https://modelcontextprotocol.io/quickstart) tutorial for more information.
|
||||
|
||||
## Building
|
||||
|
||||
```bash
|
||||
go build -o weather
|
||||
```
|
||||
|
||||
## Running
|
||||
|
||||
```bash
|
||||
./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)
|
||||
Loading…
Reference in a new issue