Weather MCP Server

Weather MCP Server

weather-mcp-server-katjes733•bykatjes733

An MCP server built with Bun that offers weather-reporting tools, enabling LLMs to answer current-weather and forecast questions by zip code.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Handles MCP tool requests and executes them.
  • •Provides current and future weather forecasts, both hourly and daily, given a zip code.
  • •Lets an LLM orchestrate multiple tools in tandem based on their configuration.
  • •Offers a framework for adding new tools by extending a base class and implementing tool methods.

BEST FOR

  • •Answering current-weather questions for a zip code from an LLM client.
  • •Getting forecasts for upcoming days, such as weekend weather.
  • •Developers who want an example MCP server and a pattern for adding additional tools.

ABOUT WEATHER-MCP-SERVER-KATJES733

Weather MCP Server is cataloged as an MCP server attributed to katjes733. An MCP server built with Bun that offers weather-reporting tools, enabling LLMs to answer current-weather and forecast questions by zip code. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Weather MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server answer both current weather and forecasts?

Yes, it supports current and future weather forecasts, hourly and daily, given a zip code.

How are new tools registered with the server?

Additional tools are registered automatically on restart once their module implements the required interface and methods; no further configuration is needed.

Upstream README

View this exact version on GitHub

README.md · 8dbf3c803cb6 · Fetched 2026-11-13 11:50:25 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Weather MCP Server

This is a project utilizing the Model Context Protocol (MCP) and Bun to provide a collection of tools for weather reporting with LLMs.

Background

It demonstrates how to set up a basic MCP server that can handle tool requests and execute them. It supports current and future weather forecasts (hourly and daily) given a zip code. Multiple tools work in tandem and the LLM is orchestrating the usage of the tools based on their configuration. This implementation also provides a simple framework to add additional tools in a consolidated and structured way. For more information, see the New Tools section in Development.

Prerequisites

  1. Bun must be installed.
  2. Claude Desktop should be installed.

Setup Project

  1. Clone the repository.

  2. Run:

    bun install
    
  3. Create a .env file in the root based on /env/sample.env. Provide values as necessary and described.

    NOTE: This is mostly relevant if you wish to run the server in development mode via bun run start.

  4. (Optional) Run the following to verify integrity of the project:

    bun run verify
    

Build

  1. Run:

    bun run build
    

This will bundle the entry build/main.js, which can then be consumed.

Setup Claude Desktop

This section is influenced by this general guide with specifics for this use case.

  1. Start Claude Desktop and open Settings (not Account setting).

  2. Click on Developer in the left-hand bar of the Settings pane, and then click on Edit Config.

  3. Edit the file claude_desktop_config.json and add the following:

    {
      "mcpServers": {
        "weather-mcp-server": {
          "command": "bun",
          "args": ["run", "<path_to_project>/build/main.js"],
          "env": {
            "APP_NAME": "weather-mcp-server",
            "APP_EMAIL": "<app-email>"
          }
        }
      }
    }
    
    • Replace <path_to_project> with the path to your project; e.g.: /Users/username/Documents/projects/create-mcp-server-app-bun
    • Replace <app-email> with an email that will be used to identify some API requests; e.g.: my@email.com
  4. Restart Claude Desktop; this is important as Claude Desktop will otherwise not apply changes to claude_desktop_config.json.

  5. On the main screen, click the Search and Tools button and then on your MCP server name. Ensure that it is enabled.

Usage

Here are some hints on how to interact with Claude and this MCP Server.

  1. You may start by simply asking Claude to get the current weather for your zip code: e.g. current weather for 90210, which outputs the corresponding result. You may observe that Claude uses multiple tools sequentially, dynamically and independently to provide the desired result.
  2. You may also ask Claude to for the forecast for the any of the next days: what's the weather this weekend?. This will trigger a follow-up request (unless there is a previous zip code in the context from a previous question) to provide the desired zip code. Once provided, the response will contain the corresponding result.
    1. Notice how Claude automatically reuses the result from previous tool calls, if applicable, to answer this question.

Development

New Tools

New tools may be added by ensuring each new tool module in ./src/tools extends AbstractTool and implements ITool and provides an explicit constructor (for test coverage):

...
export class NewTool extends AbstractTool implements ITool {
  // Explicit constructor definition to ensure test coverage in Bun tracks constructor.
  constructor(fetch: typeof globalThis.fetch = globalThis.fetch) {
    super(fetch);
  }
...

Additionally, the following methods must be implemented (see their corresponding JSDoc for details.):

  • getName
  • getDescription
  • getInputSchema
  • validateWithDefaults
  • processToolWorkflow

Use existing tool(s) as guide for the implementation and don't forget to implement a corresponding test.

There is no further configuration required to register any additional tool; they are automatically included upon restart of the MCP server.

Test Coverage

It may be useful to analyze test coverage gaps using lcov reports, to gain better visibility into covered lines and functions.

NOTES:

  • Constructors for classes should be defined in the respective class, as Bun only tracks a classes functions (including constructors). This is problematic when you inherit from an abstract class with its own constructor, which in turn is not tracked. Thus, simply define the Abstract constructor in the class and call super.
  • Having some imports (e.g. import dedent from "dedent";) at the top of a module may cause Bun to not correctly track that line as covered. Simply move it behind other imports, and it will correctly track.

Prerequisites (Development)

  1. Install lcov:

    brew install lcov
    
  2. Install VSCode extension ryanluker.vscode-coverage-gutters (already defined in settings.json).

Running Test Coverage

  1. For most cases, it will suffice to run:

    bun run test:coverage
    

    NOTE: If the coverage is less than 100, but no Uncovered Line #s are reported, you may need to investigate further by following the next steps and revisiting the Notes above.

  2. For advanced cases, run:

    bun run test:coverage:lcov
    

    It produces the lcov coverage report that is used by VSCode extension ryanluker.vscode-coverage-gutters to visualize covered lines in the editor.

  3. If you prefer to have an HTML report, run in your terminal:

    genhtml --function-coverage --branch-coverage --output-directory coverage-report coverage/lcov.info
    

    It produces an HTML coverage report that you can inspect in your preferred browser.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Weather MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/weather-mcp-server-katjes733)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research