Skip to main content
Glama

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather information.

Installation

pnpm install

Related MCP server: Weather MCP

Usage

Start the Server

pnpm start

Run Tests

pnpm test

Using with MCP Inspector

To test your server with the MCP Inspector:

  1. Install the Inspector (if not already installed):

npx @modelcontextprotocol/inspector
  1. Configure the connection:

    • Command: npx

    • Args: tsx main.ts

    • Or use the full command: npx tsx /path/to/mcpWeather/main.ts

  2. Test the tool:

    • Select the fetch-Weather tool

    • Enter 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/sdk v1.20.0

  • Zod: v3.23.8 (for parameter validation)

  • TSX: v4 (for running TypeScript)

Install Server
F
license - not found
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables 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.
    Last updated
  • A
    license
    -
    quality
    D
    maintenance
    Enables 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.
    Last updated
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables 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.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alesanabriav7/mcpWeather'

If you have feedback or need assistance with the MCP directory API, please join our Discord server