Find Related products on Amazon

Shop on Amazon

Show HN: Minimal MCP server in Go showcasing project architecture

Published on: 2025-05-10 06:44:17

A lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data. Installing on Claude Desktop To use your MCP server with Claude Desktop, add it to your Claude configuration: { "mcpServers" : { "weather-mcp-server" : { "command" : " /path/to/weather-mcp-server " , "args" : [], "env" : { "WEATHER_API_KEY" : " your-api-key " } } } } You can get your API key in your personal account at weatherapi. Build from source You can use go to build the binary in the cmd/github-mcp-server directory. go build -o weather-mcp-server ./cmd/weather-mcp-server Tools current_weather - Gets the current weather for a city city : The name of the city (string, required) Project Structure The project is organized into several key directories: ├── cmd │ └── weather-mcp-server ├── internal │ └── server │ ├── handlers # MCP handlers │ ├── services # Business logic layer │ │ ├── core # Core application logic │ │ └── mock # Mock ... Read full article.