wttr-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wttr-mcp-server
wttr-mcp-server is a small MCP server for wttr.in.
It can return plain weather text, structured JSON, or base64-encoded PNG payloads,
depending on which tool you call.
The project is built for day-to-day use in editor agents, chat UIs, and workflow systems.
π¦οΈ what it does
wttr_weather_viewβ readable weather summaries plus ASCII views.wttr_site_weatherβ direct wttr mode output (0,1,2,3,v2,0pq,%...).wttr_raw_requestβ raw endpoint access, including special paths and PNG output.wttr_api_currentβ structured current conditions.wttr_api_forecastβ structured forecast data.wttr_helpβ fullwttr.in/:helpoutput.
Related MCP server: Weather MCP Server
ποΈ result profiles
MCP clients donβt always treat responses the same way, so the server supports three presentation profiles:
defaultwebchatn8n
Profile resolution order:
request metadata (
params._meta.resultProfileorparams._meta.clientProfile)environment variable
WTTR_MCP_RESULT_PROFILEfallback to
default
π§ weather view profiles
wttr_weather_view has agent-oriented defaults:
summary-first:
auto,openclaw,webchat,browser,n8n,claudecompact ASCII:
codex,cursor,cline,windsurfterminal ASCII with ANSI by default:
terminal
Available views:
normalascii_compactascii_fullascii_one_line
π quick start
npm install
npm startπ» local examples
# readable summary
mcporter call wttr-mcp.wttr_weather_view \
--args '{"location":"Saint Petersburg","agent":"webchat","lang":"ru"}'
# compact ASCII output
mcporter call wttr-mcp.wttr_weather_view \
--args '{"location":"Saint Petersburg","agent":"codex","lang":"ru"}'
# structured current weather
mcporter call wttr-mcp.wttr_api_current \
--args '{"location":"Saint Petersburg","lang":"ru"}'β quality checks
npm run check:docs # exported entities must have Args/Returns/Throws docblocks
npm test
npm run smoke
npm run ci # check:docs + unit testsMakefile equivalents:
make check-docs
make test
make ci
make smokeπ§° install helpers
The repository includes installer scripts and Make targets for common MCP hosts.
make install-openclaw-source
make install-claude-linux-source
make install-claude-mac-source
make install-cursor-source
make install-cline-vscode-source
make install-windsurf-source
make install-codex-sourceRemote HTTP variants:
make install-cursor-http HTTP_URL=https://host.example/mcp
make install-windsurf-http HTTP_URL=https://host.example/mcp
make install-codex-http HTTP_URL=https://host.example/mcp BEARER_TOKEN_ENV_VAR=WTTR_TOKENGeneric installers:
make install-generic-source CONFIG=~/.cursor/mcp.json ROOT_KEY=mcpServers
make install-generic-docker CONFIG=~/.config/Claude/claude_desktop_config.json ROOT_KEY=mcpServers
make install-generic-http CONFIG=~/.codeium/windsurf/mcp_config.json ROOT_KEY=mcpServers HTTP_URL=https://host.example/mcpπ³ docker
docker build -t markstroinyi/wttr-mcp-server:0.3.0 .
docker run --rm -i markstroinyi/wttr-mcp-server:0.3.0ποΈ architecture in short
src/domainβ validation and API parsing.src/infrastructureβ upstream wttr HTTP adapter.src/applicationβ tool registry and weather rendering flow.src/presentationβ MCP server wiring and result presentation policy.
Patterns used in production code:
command
adapter
strategy + factory
composition root
For a full walkthrough, see docs/architecture.md and docs/practical-launch-targets.md.
π license
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Current weather and forecast lookup as an agent tool.
Weather forecasts from MET Norway (Yr): geocoding plus hourly forecasts worldwide.
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
Related MCP Servers
- FlicenseCqualityDmaintenanceProvides real-time weather information for any location worldwide using the wttr.in service, enabling AI assistants to fetch current weather conditions and temperatures through natural language queries.1-
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data for Chinese cities and global locations via wttr.in API, supporting tools like get_weather and list_supported_cities.MIT
- FlicenseNot gradedqualityDmaintenanceEnables querying weather data through natural language, providing current conditions, daily and hourly forecasts, and city comparisons using the wttr.in API.-
- AlicenseNot gradedqualityCmaintenanceEnables real-time weather queries for 12 major Chinese cities and global cities using the wttr.in API. Provides tools to get weather, list supported cities, and server info.MIT