mcp-weather-server
Verified Safeby 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
npx tsx src/server.tsEnvironment 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
felix
Real-time conversational AI voice assistant with local processing, autonomous tool execution, and PWA support.
McpWeatherServer
A server application designed to provide weather information to connected clients, likely within a Minecraft Coder Pack (MCP) environment.
weather-mcp-server
Provides live weather forecasts for any city in the world via a tool-enabled API, designed to be integrated with AI agents or LLMs.
mcp-server
Provides optical character recognition (OCR) capabilities for images, either from base64 encoded strings or remote URLs.