Back to Home
samanhappy icon

mcphub

by samanhappy

Overview

An orchestration hub that aggregates, manages, and routes Model Context Protocol (MCP) servers and their tools, providing a centralized interface, user management, OAuth 2.0 authorization server capabilities, and AI-powered tool discovery and routing.

Installation

Run Command
node dist/index.js

Environment Variables

  • JWT_SECRET
  • DB_URL
  • OPENAI_API_KEY
  • AMAP_MAPS_API_KEY
  • SLACK_BOT_TOKEN
  • SLACK_TEAM_ID
  • GOOGLE_CLIENT_ID
  • GOOGLE_CLIENT_SECRET
  • GITHUB_CLIENT_ID
  • GITHUB_CLIENT_SECRET

Security Notes

CRITICAL RISKS: 1. Remote Code Execution (RCE) via `ServerConfig` 'command' and 'args' fields, allowing arbitrary command execution on the host system. This is a very high-severity vulnerability if server configuration can be modified by an attacker or unauthorized user. 2. DXT file uploads (ZIP archives) pose a high risk for path traversal and arbitrary file writes/execution due to inadequate sandboxing during extraction and processing. 3. Parsing of user-controlled base64-decoded JSON from the `state` parameter in OAuth callbacks could be vulnerable to prototype pollution. 4. The JWT_SECRET falls back to a temporary random key if not explicitly set, creating a critical security flaw in production as it leads to session invalidation on restarts and potential session hijacking if guessed or deduced. 5. Public OAuth dynamic client registration (RFC 7591) without authentication (default config) requires careful security considerations. 6. The `OpenAPIClient`'s `passthroughHeaders` could expose sensitive information or allow injection if not explicitly managed.

Similar Servers

Stats

Interest Score100
Security Score5
Cost ClassMedium
Avg Tokens2000
Stars1728
Forks214
Last Update2026-01-18

Tags

MCP HubAPI GatewayTool OrchestrationOAuth ServerAI Routing