MCP weather server exposing a city weather tool

MCP weather server exposing a city weather tool

dummy-mcp-weather-server•byenigmaticharvest

An example TypeScript MCP server that exposes a dummy city weather tool over Streamable HTTP transport for use by MCP-compliant clients.

License: Not specified•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Exposes a get_city_weather tool that accepts a city name and an optional unit of metric or imperial, defaulting to metric.
  • •Returns dummy weather information including temperature, description, and humidity.
  • •Provides structuredContent matching a defined outputSchema for reliable parsing by clients.
  • •Uses StreamableHTTPServerTransport and demonstrates simple in-memory session handling.

BEST FOR

  • •LLM-powered agents that can leverage tools exposed by an MCP-compliant server.
  • •Developers looking for an example of building an MCP server with the TypeScript SDK.

ABOUT DUMMY-MCP-WEATHER-SERVER

MCP weather server exposing a city weather tool is cataloged as an MCP server attributed to enigmaticharvest. An example TypeScript MCP server that exposes a dummy city weather tool over Streamable HTTP transport for use by MCP-compliant clients. It is categorized under ai agents-models. 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 MCP weather server exposing a city weather tool 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

Does this server return real weather data?

No, it returns dummy weather information for a few predefined cities.

What transport does the server use?

It uses the recommended StreamableHTTPServerTransport for communication.

Upstream README

View this exact version on GitHub

README.md · 06324780e9ed · Fetched 2026-11-13 12:40:16 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.

My MCP Weather Server

This project is an example of an MCP (Model Context Protocol) server built with the @modelcontextprotocol/sdk for TypeScript. It demonstrates how to expose a simple tool that provides dummy weather information for a few predefined cities.

This server is intended to be used as a backend for an MCP-compliant client, such as an LLM-powered agent that can leverage the tools exposed by this server.

Features

  • MCP Compliant: Implements the Model Context Protocol.
  • Streamable HTTP Transport: Uses the recommended StreamableHTTPServerTransport for communication.
  • Tool Exposure: Exposes a get_city_weather tool.
    • Input: city (string, e.g., "paris", "london", "tokyo") and optional unit (enum: "metric" or "imperial", defaults to "metric").
    • Output: Returns dummy weather information including temperature, description, and humidity.
    • Structured Output: Provides structuredContent matching a defined outputSchema for reliable parsing by clients.
  • Basic Session Management: Demonstrates simple in-memory session handling for StreamableHTTPServerTransport.

Prerequisites

  • Node.js (v18 or higher recommended, as per MCP SDK)
  • npm (or yarn/pnpm)

Setup

  1. Clone the repository (or create the project files):

    # If you have it in a git repo:
    # git clone <your-repo-url>
    # cd my-mcp-weather-server
    
    # Otherwise, ensure you have the project directory with src/server.ts, package.json, tsconfig.json
    
  2. Install dependencies:

    npm install
    

Running the Server

For Development

This command uses ts-node to run the TypeScript source directly and nodemon to automatically restart the server on file changes.

npm run build
npm start

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 MCP weather server exposing a city weather tool 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/dummy-mcp-weather-server)

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 ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent