A dummy MCP server to test the mcp-chat-cli at
Overview
what is My MCP Weather Server?
My MCP Weather Server is an example of an MCP (Model Context Protocol) server built with the @modelcontextprotocol/sdk for TypeScript. It provides dummy weather information for predefined cities and is intended for use as a backend for MCP-compliant clients.
how to use My MCP Weather Server?
To use the server, clone the repository, install the dependencies, and run the server using the provided commands. You can then access the get_city_weather tool by sending requests with the city name and optional unit.
key features of My MCP Weather Server?
- MCP Compliant: Implements the Model Context Protocol.
- Streamable HTTP Transport: Uses
StreamableHTTPServerTransportfor communication. - Tool Exposure: Exposes a
get_city_weathertool that returns dummy weather information. - Basic Session Management: Demonstrates simple in-memory session handling.
use cases of My MCP Weather Server?
- Testing MCP-compliant clients with dummy weather data.
- Developing applications that require weather information without relying on real APIs.
- Learning and experimenting with the Model Context Protocol.
FAQ from My MCP Weather Server?
- What is the purpose of this server?
It serves as a backend for MCP-compliant clients to test and develop applications.
- Is the weather data real?
No, the server provides dummy weather information for testing purposes only.
- What technologies are required to run this server?
You need Node.js (v18 or higher) and npm (or yarn/pnpm) to run the server.