Weather MCP Server
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., "@Weather MCP Server what's the weather like in Tokyo today?"
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.
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather information.
Installation
pnpm installRelated MCP server: Weather MCP
Usage
Start the Server
pnpm startRun Tests
pnpm testUsing with MCP Inspector
To test your server with the MCP Inspector:
Install the Inspector (if not already installed):
npx @modelcontextprotocol/inspectorConfigure the connection:
Command:
npxArgs:
tsx main.tsOr use the full command:
npx tsx /path/to/mcpWeather/main.ts
Test the tool:
Select the
fetch-WeathertoolEnter a city name (e.g., "Bogotá")
Call the tool
Tools
fetch-Weather
Get the weather for a given location.
Parameters:
city(string, required): City name like 'Bogotá'
Example:
{
"city": "Bogotá"
}Response:
{
"content": [
{
"type": "text",
"text": "The weather in Bogotá is sunny"
}
]
}Important Notes
⚠️ Zod Version: This project uses Zod v3.23.8 to match the MCP SDK requirements. Do not upgrade to Zod v4 as it will cause parameter registration issues.
Development
The server uses:
MCP SDK:
@modelcontextprotocol/sdkv1.20.0Zod: v3.23.8 (for parameter validation)
TSX: v4 (for running TypeScript)
Available Tools
1 toolfetch-WeatherC
Get the weather for a given location
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 has a distinct purpose of fetching weather data for a location.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'fetch-Weather' follows a verb-noun pattern, though the capitalization is inconsistent, but this does not affect the score due to the single-tool context.
A single tool for a weather server is too few for the apparent scope, as it lacks basic operations like forecasts, historical data, or location searches. This minimal set limits functionality and is not well-scoped for typical weather-related tasks.
The tool surface is severely incomplete for a weather domain, covering only current weather fetching. There are significant gaps, such as missing forecasts, alerts, or multi-location queries, which will likely cause agent failures in broader weather-related workflows.
Maintenance
Related MCP Connectors
Provide real-time and forecast weather information for locations in the United States using natura…
Get current weather for any city and create images from your prompts. Streamline planning, reports…
Current weather and forecast lookup as an agent tool.
Free, keyless real-time weather and 7-day forecasts for any city worldwide.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to get current weather information for any city using the Open-Meteo API. Provides detailed meteorological data including temperature, precipitation, day/night status, and hourly forecasts through natural language queries.ISC
- AlicenseNot gradedqualityDmaintenanceEnables users to get real-time weather information for any city in the world. Provides current temperature and weather conditions through a simple city name query.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.ISC
- AlicenseNot gradedqualityDmaintenanceEnables users to get current weather information for any city using the OpenWeatherMap API. Returns formatted weather data including temperature, humidity, and weather description through natural language queries.MIT