M

Meteoswiss MCP

by malkreide · io.github.malkreide/meteoswiss-mcp

Enables AI models to access Swiss weather and climate data from MeteoSwiss, including current observations, forecasts, and warnings.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-malkreide-meteoswiss-mcp": {
      "command": "uvx",
      "args": [
        "meteoswiss-mcp"
      ],
      "env": {
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8000",
        "MCP_API_KEY": "",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_TRANSPORT": "stdio",
        "MCP_CACHE_ENABLED": "1",
        "OTEL_SERVICE_NAME": "meteoswiss_mcp",
        "MCP_ALLOW_ANY_HOST": "",
        "MCP_CACHE_TTL_STAC": "300",
        "MCP_STATELESS_HTTP": "0",
        "MCP_ALLOWED_ORIGINS": "",
        "MCP_WARNINGS_API_URL": "",
        "MCP_CACHE_TTL_OPENDATA": "3600",
        "MCP_CACHE_TTL_WARNINGS": "300",
        "MCP_CACHE_TTL_GEOCODING": "3600",
        "MCP_CACHE_TTL_OPEN_METEO": "600",
        "MCP_CLIMATE_NORMALS_PATH": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "",
        "MCP_CLIMATE_NORMALS_URL_TEMPLATE": ""
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-malkreide-meteoswiss-mcp": {
      "command": "uvx",
      "args": [
        "meteoswiss-mcp"
      ],
      "env": {
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8000",
        "MCP_API_KEY": "",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_TRANSPORT": "stdio",
        "MCP_CACHE_ENABLED": "1",
        "OTEL_SERVICE_NAME": "meteoswiss_mcp",
        "MCP_ALLOW_ANY_HOST": "",
        "MCP_CACHE_TTL_STAC": "300",
        "MCP_STATELESS_HTTP": "0",
        "MCP_ALLOWED_ORIGINS": "",
        "MCP_WARNINGS_API_URL": "",
        "MCP_CACHE_TTL_OPENDATA": "3600",
        "MCP_CACHE_TTL_WARNINGS": "300",
        "MCP_CACHE_TTL_GEOCODING": "3600",
        "MCP_CACHE_TTL_OPEN_METEO": "600",
        "MCP_CLIMATE_NORMALS_PATH": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "",
        "MCP_CLIMATE_NORMALS_URL_TEMPLATE": ""
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-malkreide-meteoswiss-mcp": {
      "command": "uvx",
      "args": [
        "meteoswiss-mcp"
      ],
      "env": {
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8000",
        "MCP_API_KEY": "",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_TRANSPORT": "stdio",
        "MCP_CACHE_ENABLED": "1",
        "OTEL_SERVICE_NAME": "meteoswiss_mcp",
        "MCP_ALLOW_ANY_HOST": "",
        "MCP_CACHE_TTL_STAC": "300",
        "MCP_STATELESS_HTTP": "0",
        "MCP_ALLOWED_ORIGINS": "",
        "MCP_WARNINGS_API_URL": "",
        "MCP_CACHE_TTL_OPENDATA": "3600",
        "MCP_CACHE_TTL_WARNINGS": "300",
        "MCP_CACHE_TTL_GEOCODING": "3600",
        "MCP_CACHE_TTL_OPEN_METEO": "600",
        "MCP_CLIMATE_NORMALS_PATH": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "",
        "MCP_CLIMATE_NORMALS_URL_TEMPLATE": ""
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-malkreide-meteoswiss-mcp": {
      "command": "uvx",
      "args": [
        "meteoswiss-mcp"
      ],
      "env": {
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8000",
        "MCP_API_KEY": "",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_TRANSPORT": "stdio",
        "MCP_CACHE_ENABLED": "1",
        "OTEL_SERVICE_NAME": "meteoswiss_mcp",
        "MCP_ALLOW_ANY_HOST": "",
        "MCP_CACHE_TTL_STAC": "300",
        "MCP_STATELESS_HTTP": "0",
        "MCP_ALLOWED_ORIGINS": "",
        "MCP_WARNINGS_API_URL": "",
        "MCP_CACHE_TTL_OPENDATA": "3600",
        "MCP_CACHE_TTL_WARNINGS": "300",
        "MCP_CACHE_TTL_GEOCODING": "3600",
        "MCP_CACHE_TTL_OPEN_METEO": "600",
        "MCP_CLIMATE_NORMALS_PATH": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "",
        "MCP_CLIMATE_NORMALS_URL_TEMPLATE": ""
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-malkreide-meteoswiss-mcp": {
      "command": "uvx",
      "args": [
        "meteoswiss-mcp"
      ],
      "env": {
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8000",
        "MCP_API_KEY": "",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_TRANSPORT": "stdio",
        "MCP_CACHE_ENABLED": "1",
        "OTEL_SERVICE_NAME": "meteoswiss_mcp",
        "MCP_ALLOW_ANY_HOST": "",
        "MCP_CACHE_TTL_STAC": "300",
        "MCP_STATELESS_HTTP": "0",
        "MCP_ALLOWED_ORIGINS": "",
        "MCP_WARNINGS_API_URL": "",
        "MCP_CACHE_TTL_OPENDATA": "3600",
        "MCP_CACHE_TTL_WARNINGS": "300",
        "MCP_CACHE_TTL_GEOCODING": "3600",
        "MCP_CACHE_TTL_OPEN_METEO": "600",
        "MCP_CLIMATE_NORMALS_PATH": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "",
        "MCP_CLIMATE_NORMALS_URL_TEMPLATE": ""
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-malkreide-meteoswiss-mcp": {
      "command": "uvx",
      "args": [
        "meteoswiss-mcp"
      ],
      "env": {
        "MCP_HOST": "127.0.0.1",
        "MCP_PORT": "8000",
        "MCP_API_KEY": "",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_TRANSPORT": "stdio",
        "MCP_CACHE_ENABLED": "1",
        "OTEL_SERVICE_NAME": "meteoswiss_mcp",
        "MCP_ALLOW_ANY_HOST": "",
        "MCP_CACHE_TTL_STAC": "300",
        "MCP_STATELESS_HTTP": "0",
        "MCP_ALLOWED_ORIGINS": "",
        "MCP_WARNINGS_API_URL": "",
        "MCP_CACHE_TTL_OPENDATA": "3600",
        "MCP_CACHE_TTL_WARNINGS": "300",
        "MCP_CACHE_TTL_GEOCODING": "3600",
        "MCP_CACHE_TTL_OPEN_METEO": "600",
        "MCP_CLIMATE_NORMALS_PATH": "",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "",
        "MCP_CLIMATE_NORMALS_URL_TEMPLATE": ""
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MCP_HOST No Bind address Default: 127.0.0.1
MCP_PORT No Port for HTTP transport Default: 8000
MCP_API_KEY No API key for authentication (requests need X-API-Key or Authorization: Bearer header)
MCP_LOG_LEVEL No Log level: DEBUG, INFO, WARNING, ERROR Default: INFO
MCP_TRANSPORT No Transport mode: stdio or streamable-http Default: stdio
MCP_CACHE_ENABLED No Set to 0 to disable caching Default: 1
OTEL_SERVICE_NAME No OpenTelemetry service name Default: meteoswiss_mcp
MCP_ALLOW_ANY_HOST No Set to 1 to allow binding to 0.0.0.0 (required for container/cloud)
MCP_CACHE_TTL_STAC No TTL in seconds for STAC SMN observations cache Default: 300
MCP_STATELESS_HTTP No Set to 1 to enable stateless mode (each request opens new session) Default: 0
MCP_ALLOWED_ORIGINS No Comma-separated list of allowed CORS origins (empty = CORS disabled)
MCP_WARNINGS_API_URL No URL of structured MeteoSwiss warnings API
MCP_CACHE_TTL_OPENDATA No TTL in seconds for opendata.swiss catalog cache Default: 3600
MCP_CACHE_TTL_WARNINGS No TTL in seconds for warnings API cache Default: 300
MCP_CACHE_TTL_GEOCODING No TTL in seconds for geocoding lookups cache Default: 3600
MCP_CACHE_TTL_OPEN_METEO No TTL in seconds for ICON forecasts cache Default: 600
MCP_CLIMATE_NORMALS_PATH No Path to JSON file with additional climate normals
OTEL_EXPORTER_OTLP_ENDPOINT No OpenTelemetry OTLP HTTP endpoint
MCP_CLIMATE_NORMALS_URL_TEMPLATE No URL template for runtime lookup of climate normals

Similar servers