Back to Home
jeffellin icon

authenticated-mcp-servers

Verified Safe

by jeffellin

Overview

A Python-based Model Context Protocol (MCP) server providing weather forecasting and alerts from the National Weather Service API, with optional JWT authentication.

Installation

Run Command
python server.py

Environment Variables

  • JWT_REQUIRED
  • JWT_JWKS_URI
  • JWT_CUSTOM_HEADER
  • JWT_ALGORITHM
  • JWT_AUDIENCE

Security Notes

The server implements JWT authentication using standard practices, fetching JWKS from a configurable URI for public key validation. It properly handles token extraction, validation (signature, expiration, etc.), and error cases (401 Unauthorized). No 'eval' or malicious patterns were found. Configuration is via environment variables, preventing hardcoded secrets. The reliance on an external JWKS URI introduces a trust dependency on that endpoint's security and availability, which is standard for JWT but a point to note. Input validation for weather tools is basic (e.g., coordinate rounding), which is generally sufficient for its purpose.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Stars0
Forks0
Last Update2025-11-30

Tags

MCPWeatherAPIPythonJWTAuthentication