Back to Home
georgiedekker icon

enterprise_mcp_server

Verified Safe

by georgiedekker

Overview

Provides a robust, multi-component Model Context Protocol (MCP) solution with an API Gateway for routing and management, an Enterprise MCP Server for core services like authentication and tool administration, and a Tool Server for operational tool execution, designed for integration with clients like Cursor and Claude Code.

Installation

Run Command
docker compose up -d

Environment Variables

  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • POSTGRES_DB
  • POSTGRES_HOST
  • POSTGRES_PORT
  • REDIS_URL
  • GATEWAY_PORT
  • GATEWAY_HOST
  • ENTERPRISE_MCP_SERVER_URL
  • MCP_SERVER_NAME
  • CORS_ALLOWED_ORIGINS
  • DEFAULT_RATE_LIMIT
  • CLIENT_ID
  • CLIENT_SECRET
  • JWT_SECRET_KEY
  • JWT_ALGORITHM
  • JWT_ACCESS_TOKEN_EXPIRE_MINUTES
  • ANTHROPIC_API_KEY
  • KEYCLOAK_URL
  • KEYCLOAK_REALM
  • KEYCLOAK_CLIENT_ID
  • KEYCLOAK_CLIENT_SECRET
  • ADMIN_PASSWORD
  • DEFAULT_ADMIN_PASSWORD_HASH
  • SKIP_SANDBOX
  • AUDIT_RETENTION_DAYS
  • AUDIT_CLEANUP_INTERVAL_HOURS

Security Notes

CRITICAL: The `src/asgi.py` file contains hardcoded client credentials (`VALID_CLIENTS = {"cursor_client": "cursor_secret"}`) for its `/token` endpoint, posing a severe vulnerability for any client relying on this authentication mechanism. CRITICAL: The `docker-compose.yml` exposes Redis on `0.0.0.0:6378:6379` without authentication, making it susceptible to unauthorized access and data manipulation. The `claude_code` tool, while sandboxed (though bypassable via `SKIP_SANDBOX` env var), permits dynamic execution of `Read`, `Write`, and `Bash` tools, which could lead to remote code execution if the prompt input is compromised. Password hashing uses PBKDF2, which is less resilient than modern algorithms like bcrypt. An `/test-token` endpoint (in `src/api.py`) generates admin-level tokens, which could be dangerous if exposed in production. However, the system benefits from a layered architecture, Keycloak integration for advanced authentication, robust RBAC, parameterized SQL, and comprehensive audit logging, which improve overall security posture.

Similar Servers

Stats

Interest Score22
Security Score4
Cost ClassHigh
Avg Tokens1000
Stars2
Forks0
Last Update2026-01-01

Tags

API GatewayMCPTool ManagementAuthenticationCoding Agents