Back to Home
schornio icon

mcp-server-examples

by schornio

Overview

This server provides a collection of example Model Context Protocol (MCP) servers, demonstrating integration with various external data sources and smart home devices (Philips HUE, Austrian public data like Linz Innovationshaupplatz, klimaaktiv funding, Firmenbuch, and legal texts).

Installation

Run Command
npx @schornio/mcp-server-examples@latest <example-name>

Environment Variables

  • FIRMENBUCH_API_KEY
  • PHILIPS_HUE_BRIDGE_ADDRESS
  • PHILIPS_HUE_API_KEY
  • PHILIPS_HUE_LIGHT_IDS

Security Notes

The Philips HUE example (`examples/philips-hue/fetchHUE.ts`) explicitly sets `rejectUnauthorized: false` for its `undici` agent. This critically disables SSL/TLS certificate validation for connections to the Philips HUE bridge. While possibly intended for local networks or specific development setups where self-signed certificates might be used, this practice opens the connection to Man-in-the-Middle (MITM) attacks. An attacker on the local network could easily intercept or alter communication with the Hue Bridge. This is a severe security flaw for any network communication. Additionally, the server depends on API keys (Firmenbuch, Philips HUE) passed via environment variables, which is a good practice, but the overall lack of robust input sanitization beyond `zod` schemas (which validate structure but not necessarily malicious content for external systems) could be a concern if the external APIs are untrusted.

Similar Servers

Stats

Interest Score30
Security Score3
Cost ClassMedium
Avg Tokens1160
Stars1
Forks0
Last Update2025-12-10

Tags

MCP ServerAPI IntegrationPublic DataSmart HomeNode.js