We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/itstanner5216/multi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
#!/bin/bash
# Multi-MCP Production Startup Script
#
# This script starts the multi-mcp proxy server with:
# - SSE transport mode (for HTTP/network access)
# - Port 8085 (production default)
# - Production configuration (msc/mcp.json)
# - Lazy loading enabled
# - API key authentication (if MULTI_MCP_API_KEY set)
#
# Required environment variables:
# - GITHUB_PERSONAL_ACCESS_TOKEN (for GitHub MCP server)
# - BRAVE_API_KEY (for Brave Search MCP server)
#
# Optional environment variables:
# - MULTI_MCP_API_KEY (for authentication)
# - MULTI_MCP_HOST (default: 0.0.0.0)
# - MULTI_MCP_PORT (default: 8085)
# - MULTI_MCP_CONFIG (default: msc/mcp.json)
set -e
# Colors for output
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Check required environment variables
check_env_var() {
local var_name=$1
local var_value=${!var_name}
if [ -z "$var_value" ]; then
echo -e "${RED}β Error: Required environment variable $var_name is not set${NC}"
return 1
else
echo -e "${GREEN}β
$var_name is set${NC}"
return 0
fi
}
echo "π Multi-MCP Production Startup"
echo "================================"
echo ""
# Check required API keys
echo "Checking required environment variables..."
all_set=true
if ! check_env_var "GITHUB_PERSONAL_ACCESS_TOKEN"; then
all_set=false
fi
if ! check_env_var "BRAVE_API_KEY"; then
all_set=false
fi
# Check optional API key for authentication
if [ -n "$MULTI_MCP_API_KEY" ]; then
echo -e "${GREEN}β
MULTI_MCP_API_KEY is set (authentication enabled)${NC}"
else
echo -e "${YELLOW}β οΈ MULTI_MCP_API_KEY is not set (authentication disabled)${NC}"
fi
echo ""
if [ "$all_set" = false ]; then
echo -e "${RED}β Missing required environment variables. Please set them and try again.${NC}"
echo ""
echo "Example:"
echo " export GITHUB_PERSONAL_ACCESS_TOKEN='your-token-here'"
echo " export BRAVE_API_KEY='your-api-key-here'"
echo " export MULTI_MCP_API_KEY='your-secret-key' (optional, for auth)"
echo ""
exit 1
fi
# Set defaults
HOST="${MULTI_MCP_HOST:-0.0.0.0}"
PORT="${MULTI_MCP_PORT:-8085}"
CONFIG="${MULTI_MCP_CONFIG:-msc/mcp.json}"
echo "Configuration:"
echo " Host: $HOST"
echo " Port: $PORT"
echo " Config: $CONFIG"
echo " Auth: $([ -n "$MULTI_MCP_API_KEY" ] && echo 'Enabled' || echo 'Disabled')"
echo ""
# Verify config file exists
if [ ! -f "$CONFIG" ]; then
echo -e "${RED}β Error: Config file not found: $CONFIG${NC}"
exit 1
fi
echo -e "${GREEN}β
Config file found: $CONFIG${NC}"
echo ""
# Start the server
echo "Starting multi-mcp proxy server..."
echo "================================"
echo ""
exec python main.py \
--transport sse \
--host "$HOST" \
--port "$PORT" \
--config "$CONFIG"