Back to Home
kumaran-is icon

mcp-weather-server

Verified Safe

by kumaran-is

Overview

Provides current and forecasted weather data as a tool for AI agents (like Cline), as well as for general production APIs and custom applications, with robust resilience and security features.

Installation

Run Command
npx tsx src/server.ts

Environment Variables

  • NODE_ENV
  • MCP_TRANSPORT
  • MCP_HTTP_PORT
  • WEATHER_API_KEY
  • MCP_SERVER_API_KEYS

Security Notes

The server demonstrates a strong focus on security with comprehensive features including: - **Input Sanitization:** Uses `DOMPurify` via `SecurityManager` to prevent XSS, SQL injection, command injection, and path traversal in all inputs (body, query, params, headers). - **Threat Detection:** `SecurityMonitor` actively detects brute force attempts, rate limit violations, and suspicious patterns (SQL/XSS/command injection) and can auto-block malicious IPs. - **Authentication & Authorization:** API key validation with permissions and rate limiting (`auth.ts`, `rate-limit.ts`) is in place, supporting different client tiers. - **Audit Logging:** `AuditLogger` provides detailed audit trails for security, data access, and API usage, with configurable severity, categories, and sensitive data masking. - **Resilience Patterns:** `CircuitBreaker`, `RetryStrategy`, `Bulkhead`, and `RateLimiter` prevent cascading failures and protect external APIs. - **Secure Headers:** Automatically adds `Content-Security-Policy`, `X-Content-Type-Options`, `X-Frame-Options`, `X-XSS-Protection`, and `Referrer-Policy` headers. - **No obvious hardcoded secrets:** Environment variables are used for API keys and sensitive configurations. Potential areas for even higher scores (though already excellent): - Real-time threat intelligence feeds for dynamic pattern updates. - More advanced behavioral analysis for anomaly detection beyond defined patterns. - External security audits and penetration testing results.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens30
Stars0
Forks0
Last Update2025-12-04

Tags

AI AgentsWeather APIModel Context ProtocolResilienceSecurity