MCPSERV.CLUB
EnigmaticHarvest

My MCP Weather Server

MCP Server

Dummy weather data for LLM agents

Active(70)
0stars
1views
Updated Jun 4, 2025

About

A lightweight MCP server that exposes a get_city_weather tool, returning fake weather data for selected cities. Ideal as a backend for LLM-powered agents needing mock weather information.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Overview

The Dummy MCP Weather Server is a lightweight, Model Context Protocol (MCP) implementation that exposes a single, easily consumable weather tool for developers building AI assistants. By providing a minimal yet fully compliant MCP endpoint, it demonstrates how to integrate structured data retrieval into LLM-powered agents without the overhead of a production weather API. This server is ideal for prototyping, testing, or educational purposes where real-time accuracy is not required but the mechanics of tool invocation and structured response handling are.

What Problem Does It Solve?

When building conversational agents that need to fetch external data, developers often grapple with the complexities of authentication, rate limits, and parsing unstructured responses. The Dummy Weather Server eliminates these concerns by offering a deterministic, pre‑defined dataset that mimics real weather queries. It allows agents to focus on reasoning and dialogue flow while the server guarantees a consistent, parseable output. This is especially valuable during early development stages or in environments where external API access is restricted.

Core Functionality and Value

  • MCP Compliance: The server implements the full MCP specification, ensuring seamless communication with any compliant client such as Claude or other LLM agents.
  • Streamable HTTP Transport: Using allows clients to receive incremental responses, which is essential for real‑time interactions and streaming LLM outputs.
  • Structured Tool Exposure: The tool accepts a city name and an optional unit parameter, returning a JSON payload that adheres to a predefined schema. This guarantees reliable parsing on the client side and reduces error handling complexity.
  • In‑Memory Session Management: Demonstrates how to maintain conversation state across multiple tool calls, a critical feature for agents that need context persistence.

Use Cases and Real‑World Scenarios

  • Agent Prototyping: Quickly test how an LLM can use external tools without setting up real weather services.
  • Educational Demonstrations: Show students the mechanics of MCP tool invocation and structured output parsing.
  • Testing Environments: Provide a stable, deterministic data source for unit tests or integration pipelines where flaky external APIs would otherwise cause failures.
  • Mocking in CI/CD: Replace live weather endpoints with this server during continuous integration to ensure consistent test results.

Integration into AI Workflows

Developers can add this server as a tool source in their MCP client configuration. Once registered, the agent’s prompt can reference , passing user‑supplied city names. The server returns a structured JSON object that the agent can embed directly into its response or use for further reasoning. Because the server follows MCP’s structured content conventions, no custom parsing logic is required—just standard JSON handling.

Standout Advantages

  • Zero External Dependencies: No API keys or third‑party services are needed.
  • Deterministic Output: Guarantees reproducible results, simplifying debugging and testing.
  • Full MCP Feature Set: Demonstrates streamable responses, session handling, and schema‑based output—all within a single, focused example.
  • Developer Friendly: Written in TypeScript with clear typings and minimal setup, making it approachable for developers familiar with Node.js ecosystems.

In summary, the Dummy MCP Weather Server is a practical, protocol‑compliant playground that showcases how to expose structured tools to AI assistants. It bridges the gap between raw language models and real‑world data access, enabling developers to build richer, more interactive conversational experiences with confidence.