- Home
- MCP servers
- Weather
Weather
- javascript
0
GitHub Stars
javascript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"ctermiii-weather-mcp-metro": {
"command": "node",
"args": [
"/Users/wanli/.config/mcp/weather-mcp-metro/index.js"
]
}
}
}You can run a Weather MCP Server that uses the Open-Meteo data to provide real-time weather queries to a large language model. It automatically geocodes city names, returns a 7-day forecast, and provides rich details like temperature, wind, humidity, and sun information for easy integration with your LLM workflows.
How to use
To use this Weather MCP Server with your MCP client, load the weather MCP as a local process and call the provided tool get_weather. You can ask your LLM to query weather by city name in Chinese or English, and the server will return a structured forecast for the requested city including current conditions and a 7-day outlook.
How to install
Prerequisites you need before installation: a host with Node.js and npm installed. You will run the server locally and connect it to your MCP client.
# Install dependencies
npm install
Start the Weather MCP Server with the standard startup command.
npm start
Configure your MCP client to connect to the local Weather MCP Server. Use the following MCP config snippet for MacOS or Windows, adapting the local path to where you keep the index.js file.
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/Users/wanli/.config/mcp/weather-mcp-metro/index.js"]
}
}
}
Additional details and notes
The Weather MCP Server exposes a get_weather tool you can invoke from your MCP client or within your LLM prompts. You can ask in Chinese or English, for example: 请帮我查询北京的天气 or What's the weather like in Shanghai. The server will return current weather data and a 7-day forecast with temperature, wind, humidity, sun times, and comfort level.
Server behavior and data sources
Data comes from the Open-Meteo API, which provides weather forecasts without requiring an API key. The server performs automatic geocoding to convert city names into coordinates, then queries the Open-Meteo forecast endpoint to assemble the response.
Troubleshooting tips
If your MCP client cannot detect the weather tool, ensure the Weather MCP Server process is running and that your client config points to the correct local path of the index.js file. Check that npm install completed successfully and that there are no port or path conflicts on your host.
Available tools
get_weather
Fetches weather forecast data for a specified city, including current conditions and a 7-day outlook with temperature, wind, humidity, sun times, and comfort assessment.