MCP Weather Server Demo

MCP Weather Server Demo is an MCP server that provides meteorological data by connecting to the Open-Meteo API and public geocoding endpoints. Designed as an educational implementation for developers learning the Model Context Protocol, it demonstrates how to structure tools and perform schema validation using the official TypeScript SDK and Zod. AI assistants connected to this server can accept city names as arguments and retrieve real-time weather information without requiring external API keys. It allows software engineers, students, and agent builders to evaluate how external REST APIs can be wrapped into standardized tool interfaces for LLMs. Users running Claude Desktop, development scripts, or the MCP Inspector can invoke the weather tool directly to inspect payload structures, observe stdio transport interactions, and test model tool-calling workflows. In addition to serving live weather metrics, the project functions as a minimal template for constructing, testing, and troubleshooting custom Node.js and TypeScript MCP servers.

Category: Maps, Weather & Local Data

Tags: forecast, meteorology, open-meteo, weather

Visit MCP Weather Server Demo

How to install and configure MCP Weather Server Demo

  1. Clone the repository using git clone https://github.com/RaulCalderon/my-first-mcp and navigate into the project directory. 2. Install the necessary dependencies by running npm install. 3. Execute the server directly using npx tsx main.ts. 4. To test and debug the server using the web inspector, run npx -y @modelcontextprotocol/inspector npx -y tsx main.ts and connect via STDIO using the generated proxy authentication token. 5. To register the server in your MCP client configuration file, add an entry under mcpServers specifying npx as the command with the arguments ["tsx", "main.ts"] alongside your target repository path.

What you can do with MCP Weather Server Demo

  • Fetching real-time weather conditions and meteorological updates for a specified city during conversational AI sessions. - Testing tool integration and inspecting Model Context Protocol messages using the official browser-based MCP Inspector tool. - Learning how to build custom MCP servers using the TypeScript SDK and Zod input validation. - Querying public geocoding and Open-Meteo APIs directly from Claude without managing paid third-party API keys.

Key facts

  • https://github.com/modelcontextprotocol/servers
  • Maps, Weather & Local Data
  • forecast, meteorology, open-meteo, weather

Part of MCP Servers

Related MCP servers

  • MCP Weather Server — MCP Weather Server is an MCP server that connects AI assistants to the AccuWeather API to provide real-time meteorological observations…
  • MCP Weather — MCP Weather is an MCP server that enables Model Context Protocol clients, such as Claude Desktop, to retrieve real-time weather…
  • Node.js OpenWeather MCP — mcp-nodejs is an MCP server that connects AI assistants to the OpenWeather API using a Node.js runtime. Built as a…
  • MCP-Weather — MCP-Weather is an MCP server that retrieves regional Japanese meteorological forecasts by connecting to a Japan Meteorological Agency compatible weather…
  • Michelin MCP — Michelin MCP is an MCP server that provides access to structured data from the Michelin Guide dataset for large language…
  • MeteoSwiss Data — MeteoSwiss Data is an MCP server that connects AI assistants to official meteorological information from the MeteoSwiss Open Government Data…

What is MCP Weather Server Demo?

MCP Weather Server Demo is a sample Model Context Protocol server written in TypeScript. It connects AI clients to the Open-Meteo API, providing a tool that accepts a city name and returns current weather conditions and location geocoding data.

What can MCP Weather Server Demo do?

It provides a tool named fetch-weather that accepts a city name string. The server contacts public geocoding services to resolve geographic coordinates, queries the Open-Meteo service, and returns current weather details directly to the client.

Which MCP clients work with MCP Weather Server Demo?

It works with any Model Context Protocol client supporting stdio communication, including Claude Desktop and custom client implementations. It can also be inspected and tested locally through the official MCP Inspector utility.

Is MCP Weather Server Demo open source?

Yes, this project is open source. According to the project documentation, it is licensed under the MIT License, allowing developers to review, modify, and extend the source code freely.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories