Weather

Productivity and workflow

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:.

Your AI app calls the Weather MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Weather

Weather is a community MCP server from ezh0v, filed in our directory under productivity and workflow. 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:.

The README for Weather lists tools such as current_weather and city, which your AI app can call once the server is connected.

At a glance

Publisher
ezh0v (community)
Runs
See the README for setup
Written in
Go
License
MIT
GitHub stars
246

Tools Weather gives your AI app

  • current_weatherGets the current weather for a city.
  • cityThe name of the city (string, required).

Tool names as the Weather README lists them. Your AI app shows the live list once Weather is connected.

How to set up Weather

  1. Follow the install steps in the Weather README; it is written in Go, so have that toolchain ready.
  2. Check the Weather README for keys or settings; the registry lists none that Weather requires.
  3. Add Weather to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Weather tools to confirm the connection.
  5. Run one read-only task with Weather first, such as a call to current_weather, before you allow anything that writes or sends.

Weather compared with similar servers

  • Apple Events by FradSer has fewer GitHub stars than Weather (243 against 246); both are community servers, and both run locally.
  • Todoist (greirson) by greirson has fewer GitHub stars than Weather (246 against 246); both are community servers, and both run locally. The Todoist (greirson) README lists 8 tools to Weather's 2.
  • Mcd Party Officer by yzg1226 has fewer GitHub stars than Weather (243 against 246); both are community servers, and both run locally.

Before you connect Weather

  • Give Weather its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Weather tool call until you trust what it does with them.
  • Treat text that Weather fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Weather on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Weather

How marketing and sales teams put Weather to work, by company size. Pick the size closest to yours and start Weather on one use case.

Small business

  • A busy owner can use Weather to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Weather what slipped last week and which campaign tasks have no owner yet.
  • Weather runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Weather to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Weather to see where work piles up across projects and move it before deadlines slip.
  • Start with current_weather and city, the tools Weather lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise PMOs can use Weather to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Weather scoped access per workspace, so an agent helps one department without reading another's plans.
  • Weather is a community server, so have security review the code and pin a version before Weather touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Weather README

From ezh0v/weather-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Weather API MCP Server

Report Bug | Request Feature

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:

1. Local mode
{
  "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.

2. Remote mode
{
  "mcpServers": {
    "weather-mcp-server": {
      "url": "http://host:port/sse"
    }
  }
}

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

Using MCP with Docker Containers

1. Build the Docker Image:
docker build -t weather-mcp-server .
2. Run the Docker Container:
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.

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 services for testing
│       ├── tools # MCP tools
│       └── view # Templates for displaying messages
└── pkg

Testing

If you're adding new features, please make sure to include tests for them.

1. Install the mockgen tool:
go install go.uber.org/mock/mockgen@latest

See the installation guide on go.uber.org/mock.

2. Use the following command to generate mock files:
make generate-mocks
3. To run unit tests:
make run-tests

Contributing

Feel free to open tickets or send pull requests with improvements. Thanks in advance for your help!

Please follow the contribution guidelines.

License

This MCP server is licensed under the MIT License.

Questions about Weather

What is the Weather MCP server?

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:. Weather is maintained by ezh0v on GitHub at ezh0v/weather-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Weather MCP server?

Weather doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (ezh0v/weather-mcp-server). Like most servers, Weather ends with a command or URL you paste into your AI app's MCP config.

Does Weather need an API key?

The registry lists no required keys for Weather. Check the Weather README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Weather an official MCP server?

No. Weather is a community server maintained by ezh0v. Community servers can be excellent; read the code and the open issues before you give Weather access to company data.

What license is Weather under?

Weather is released under the MIT license, according to its GitHub repository. The license covers the code of Weather; the service it connects to has its own terms.