Basic MCP Weather Tool
Implemented as a Node.js application, using Node.js runtime to host the MCP server that provides the weather tool functionality.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Basic MCP Weather Tool what's the weather like in Tokyo right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🛠️ Basic MCP Demo - Weather Tool
Este proyecto es un ejemplo básico de un servidor MCP (Model Context Protocol) implementado en Node.js. Define una herramienta simple para consultar información del clima de una ciudad utilizando la API pública de Open-Meteo.
📦 Características
Servidor MCP compatible utilizando
@modelcontextprotocol/sdk.Herramienta
fetch-weatherque permite consultar el clima de una ciudad.Ejemplo educativo, ideal para entender el flujo básico de MCP.
Sin claves API privadas, solo usa servicios públicos gratuitos.
Related MCP server: Weather MCP
🚀 Requisitos
Node.js (v18 o superior recomendado)
Acceso a Internet para consultar las APIs públicas
⚙️ Instalación
Clona el repositorio:
git clone https://github.com/itsPatH/basicMCP.git cd basicMCPInstala las dependencias:
npm installEjecuta el servidor MCP:
npx ts-node main.ts Nota: Este servidor espera ser utilizado por un cliente MCP compatible (como Claude con soporte MCP habilitado). Si no tienes un cliente MCP, el servidor quedará esperando conexión.
🌐 Alternativa para Pruebas Locales (Opcional)
Puedes extender este proyecto para agregar un servidor HTTP local y probar la herramienta sin un cliente MCP. Ejemplo de esto disponible en la rama local-test.
⚠️ Advertencias
⚡ Este proyecto es solo para fines educativos. ⚡ No está pensado para entornos de producción. ⚡ Si amplías el proyecto, no subas archivos con claves privadas o información sensible.
📄 Licencia
Este proyecto está bajo la licencia MIT. Eres libre de usarlo, modificarlo o distribuirlo para aprendizaje.
✨ Créditos
Documentación oficial de Model Context Protocol: https://github.com/modelcontextprotocol .
Uso de APIs públicas de Open-Meteo.
Available Tools
1 toolfetch-weatherC
Tool to fetch weather information
Inputs: city (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool 'fetch-weather' has a clear and distinct purpose, making it impossible for an agent to misselect among non-existent alternatives.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'fetch-weather' follows a verb_noun pattern, and with no other tools to compare against, there are no deviations or inconsistencies in naming conventions.
A single tool for a weather server is too few for the apparent scope, as weather-related operations typically involve more than just fetching data (e.g., forecasts, historical data, or location-based queries). This minimal set feels thin and limits functionality, indicating a mismatch with the domain's needs.
The tool surface is severely incomplete for a weather domain. While 'fetch-weather' provides basic retrieval, there are obvious gaps such as lacking forecast tools, historical data access, or location-specific queries. This will likely cause agent failures when more comprehensive weather information is needed.
Maintenance
Related MCP Connectors
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseBqualityDmaintenanceA simple MCP server that provides a tool to fetch current weather information for cities using the Open-Meteo API, communicating through stdin/stdout.12ISC
- AlicenseNot gradedqualityDmaintenanceA MCP server for querying real-time weather information for any city worldwide using the free Open-Meteo API, supporting CLI and integration with AI clients like Claude and Cursor.34 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that offers arithmetic operations (addition and division) and current weather data from OpenWeatherMap. It serves as a learning project for building MCP servers with Node.js and TypeScript, supporting both stdio and Streamable HTTP transports.7 npmISC
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that provides weather data using Open-Meteo API, designed as a teaching tool for improving AI agent tool interfaces.-