MCP cover image
serveur météorologique logo
Public

serveur météorologique

See in Github
2025-03-24

Serveur MCP basé sur TypeScript qui implémente un système d'information météorologique.

1

Github Watches

1

Github Forks

0

Github Stars

Weather Server MCP Server

Test weather server tool

This is a TypeScript-based MCP server that implements a weather information system. It demonstrates core MCP concepts by providing:

  • Resources representing weather data with URIs and metadata
  • Tools for fetching and updating weather information
  • Prompts for generating weather summaries

Features

Resources

  • List and access weather data via weather:// URIs
  • Each weather entry has a location, temperature, and metadata
  • JSON mime type for structured data access

Tools

  • fetch_weather - Fetch current weather information

    • Takes location as a required parameter
    • Retrieves weather data from an external API
  • update_weather - Update weather information

    • Takes location and new weather data as required parameters
    • Updates the weather data in server state

Prompts

  • summarize_weather - Generate a summary of the current weather data
    • Includes all weather entries as embedded resources
    • Returns structured prompt for LLM summarization

Development

Install dependencies:

npm install

Rename .envexample to .env:

mv .envexample .env

Update OPENWEATHER_API_KEY in the .env file:

OPENWEATHER_API_KEY=Your_Own_OpenWeather_API_KEY

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "weatherserver": {
      "command": "/path/to/weatherserver/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

    Reviews

    5 (1)
    Avatar
    user_d8YG8mlK
    2025-04-17

    Weather-server by chaminda360 is a fantastic tool! As an MCP app user, its accuracy and user-friendly interface stand out. It effortlessly provides real-time weather updates, making it an essential for anyone who needs reliable weather data. Highly recommend checking it out at the provided GitHub link!