Skip to main content
Glama

MCP Weather Server

by le-yo

lookupCity

Fetch city details by name, ID, or coordinates to obtain a unique city ID for weather data retrieval with MCP Weather Server tools.

Instructions

Look up city information by name, ID, or coordinates. Returns city ID that can be used with other weather tools.

Input Schema

NameRequiredDescriptionDefault
locationYesThe location to look up (city name, coordinates, etc.). Examples: 'London', 'New York', '39.9,116.3'
optionsNoLookup configuration options, all fields are optional

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "location": { "description": "The location to look up (city name, coordinates, etc.). Examples: 'London', 'New York', '39.9,116.3'", "type": "string" }, "options": { "additionalProperties": false, "description": "Lookup configuration options, all fields are optional", "properties": { "language": { "description": "Response language code (e.g., 'en' for English, 'zh' for Chinese)", "type": "string" } }, "type": "object" } }, "required": [ "location" ], "type": "object" }
Install Server

Other Tools from MCP Weather Server

Related Tools

    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/le-yo/weather-mcp'

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