Weather MCP server and client demo

Weather MCP server and client demo

mcp-client-server-logesh-kumar•bylogesh-kumar

A simple Model Context Protocol server and client example that exposes and accesses weather information.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes city resources for New York, London, and Tokyo containing basic city information.
  • •Provides a get-weather tool that returns a weather forecast for a city given a city name and number of days.
  • •Offers a weather-advice prompt that returns travel advice based on weather conditions.
  • •Communicates with the client over stdio, spawning the server as a child process.

BEST FOR

  • •Developers learning how MCP resources, tools, and prompts work together by exploring a working server and client pair.
  • •Debugging JSON-RPC message exchanges between an MCP client and server.
  • •Prototyping weather lookup and travel-advice capabilities over MCP.

ABOUT MCP-CLIENT-SERVER-LOGESH-KUMAR

Weather MCP server and client demo is cataloged as an MCP server attributed to logesh-kumar. A simple Model Context Protocol server and client example that exposes and accesses weather information. It is categorized under developer tools. 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 and client demo 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

What JSON-RPC methods does the example use?

It uses standard methods such as resources/list, resources/read, tools/call, and prompts/get.

How does the client connect to the server?

The client spawns the server as a child process and communicates over stdio streams, with a custom logging transport showing the exchanged messages.

Upstream README

View this exact version on GitHub

README.md · f7aa6646ed5d · Fetched 2026-11-13 14:04:34 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.

A Simple MCP Server and Client

This is a simple Model Context Protocol (MCP) server and client implementation that demonstrates how to expose and access weather information.

Server

The server is implemented in server.js. It provides the following capabilities:

  • Resources:

    • city://NewYork: Basic information about New York City
    • city://London: Basic information about London
    • city://Tokyo: Basic information about Tokyo
  • Tools:

    • get-weather: Get weather forecast for a city with parameters for city name and number of days
  • Prompts:

    • weather-advice: Get travel advice based on weather conditions

Client

The client is implemented in client.js. It demonstrates how to:

  • Connect to the MCP server
  • List available resources
  • Read a specific city resource
  • Call the weather forecast tool
  • Get a weather advice prompt

JSON-RPC Communication

This implementation uses JSON-RPC 2.0 as the underlying communication protocol between client and server. Key JSON-RPC concepts used:

  • Methods: Standard method names like resources/list, resources/read, tools/call, and prompts/get
  • Parameters: Input data sent with method calls
  • Request IDs: Unique identifiers to match requests with responses
  • Results/Errors: Structured response data or error information

The MCP SDK abstracts much of this, but understanding the protocol is helpful for debugging and customization. You can see the raw JSON-RPC messages by examining the console output.

Running the Server and Client

  1. Start the client:

    node client.js
    

    Starting the client will automatically start the server as a child process. The client will connect to the server and perform all the example operations.

  2. To start the server independently:

    node server.js
    

Transport Mechanism

This example uses stdio (standard input/output) as the transport mechanism between client and server. When the client is started, it spawns the server as a child process and communicates with it through stdin/stdout streams.

A custom logging transport is implemented to show the messages exchanged between the client and server. These messages are logged to the console in a human-readable format, which is helpful for understanding the protocol.

Troubleshooting

If you encounter issues with resource or prompt requests timing out, check the server implementation. The example includes direct message handling for certain request types to work around limitations in the current SDK version.

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 and client demo 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/mcp-client-server-logesh-kumar)

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 developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools