- Home
- MCP servers
- Wttr
Wttr
- typescript
0
GitHub Stars
typescript
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-hefeng-mcp-server": {
"command": "npx",
"args": [
"wttr-mcp-server@latest"
]
}
}
}A weather MCP server that exposes real-time weather, 3-day forecasts, and current date/time queries through the wttr.in API. It is designed to be consumed by MCP clients to fetch weather information for various locations and to obtain the current date and time in a chosen timezone.
How to use
You can query weather data and current date/time using an MCP client that speaks the Model Context Protocol. Use the provided tools to request weather information for a city, postal code, or geographic coordinates, and to retrieve the current date and time in a specific timezone.
Available tools include get_weather_wttr for weather data and get_datetime for the current date and time. Each tool returns information in a structured format suitable for display in your app or workflow.
How to install
Prerequisites: install Node.js and npm on your development machine.
Install dependencies for the MCP server.
# Install dependencies
npm install
# Build the MCP server
npm run build
Additional configuration and usage notes
Two MCP configurations are shown for running the server. The first uses npx to run the published MCP package directly. The second demonstrates running the built local version from dist/index.js.
{
"mcpServers": {
"wttr_mcp": {
"command": "npx",
"args": ["wttr-mcp-server@latest"]
}
}
}
Additional configuration and usage notes (continued)
# Local development start (runtime)
{
"mcpServers": {
"wttr_mcp_local": {
"command": "node",
"args": ["/path/to/wttr-mcp-server/dist/index.js"]
}
}
}
Available tools
get_weather_wttr
Fetches weather data for a specified location. Supports real-time data via 'now' and a 3-day forecast via '3d'. Returns temperature, wind, humidity, pressure, and more.
get_datetime
Returns the current date and time for a chosen timezone, with a default to Asia/Shanghai.