Back to Home
WebLegions icon

mcp-agg

Verified Safe

by WebLegions

Overview

Aggregates Model Context Protocol (MCP) servers (stdio, SSE, HTTP) and exposes their tools via a high-performance Fastify HTTP API.

Installation

Run Command
bun run cluster

Environment Variables

  • HOST
  • PORT
  • CLUSTER_WORKERS
  • CLUSTER_RESTART_MAX
  • CLUSTER_RESTART_WINDOW
  • CLUSTER_SHUTDOWN_TIMEOUT
  • TLS_CERT_PATH
  • TLS_KEY_PATH
  • CORS_ALLOWED_ORIGINS
  • ALLOWED_HOSTS
  • MCP_CONFIG_FILE
  • NODE_ENV

Security Notes

The project demonstrates strong security practices including explicit prototype pollution prevention, custom optimized input validation, and use of security middleware (Helmet, CORS, rate limiting). It leverages environment variables for sensitive configurations and mentions vulnerability scanning in CI/CD. The primary potential risk is the configuration of external MCP servers (via `.mcp.json`), which, if compromised, could direct the aggregator to untrusted endpoints. This is an operational security concern rather than a code vulnerability within the server itself.

Similar Servers

Stats

Interest Score31
Security Score9
Cost ClassLow
Avg Tokens300
Stars1
Forks0
Last Update2025-12-01

Tags

FastifyBunAPI GatewayMicroservicesMCPTool AggregationReal-time