by ezh0v
A lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data. Discuss on Hacker News:
# Add to your Claude Code skills
git clone https://github.com/ezh0v/weather-mcp-serverGuides for using ai agents skills like weather-mcp-server.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T15:23:50.072Z",
"npmAuditRan": true,
"pipAuditRan": true
}weather-mcp-server is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ezh0v. A lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data. Discuss on Hacker News:. It has 246 GitHub stars.
Yes. weather-mcp-server passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/ezh0v/weather-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
weather-mcp-server is primarily written in Go. It is open-source under ezh0v on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh weather-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
A lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data.
To use your MCP server with Claude Desktop, add it to your Claude configuration:
{
"mcpServers": {
"weather-mcp-server": {
"command": "/path/to/weather-mcp-server",
"env": {
"WEATHER_API_KEY": "your-api-key"
}
}
}
}
You can get an API key from your personal account on WeatherAPI.
{
"mcpServers": {
"weather-mcp-server": {
"url": "http://host:port/sse"
}
}
}
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
docker build -t weather-mcp-server .
docker run -e WEATHER_API_KEY=your-api-key -d --name weather-mcp-server -p 8000:8000 weather-mcp-server
Replace your-api-key with your actual WeatherAPI API key.
current_weather - Gets the current weather for a city
city: The name of the city (string, required)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 services for testing
│ ├── tools # MCP tools
│ └── view # Templates for displaying messages
└── pkg
If you're adding new features, please make sure to include tests for them.
go install go.uber.org/mock/mockgen@latest
See the installation guide on go.uber.org/mock.
make generate-mocks
make run-tests
Feel free to open tickets or send pull requests with improvements. Thanks in advance for your help!
Please follow the contribution guidelines.
This MCP server is licensed under the MIT License.