Skip to main content
Glama

GHL MCP Server

env.template3.47 kB
# ============================================================================= # GHL MCP Server Environment Configuration Template # ============================================================================= # SETUP INSTRUCTIONS: # 1. Copy this file to .env in your project root # 2. Fill in your actual values below # 3. DO NOT commit your .env file with real credentials! # ============================================================================= # 🔐 REQUIRED: GoHighLevel API Configuration # ============================================================================= # Your GoHighLevel API base URL (usually doesn't need to change) GHL_API_BASE_URL=https://rest.gohighlevel.com/v1 # Your GoHighLevel API key (REQUIRED) # 📍 Find this at: GHL → Settings → API Keys (create or use existing) GHL_API_KEY=sk_your_primary_api_key_here # Your GoHighLevel sub-account ID (REQUIRED) # 📍 Find this: URL bar while inside the sub-account dashboard GHL_SUB_ACCOUNT_ID=abc123456789 # ============================================================================= # 🌐 Server Configuration # ============================================================================= # CORS allowed origins (use * for development, specific domains for production) ALLOWED_ORIGINS=* # MCP Server port (default: 8000) MCP_SERVER_PORT=8000 # MCP Server host (default: 0.0.0.0 for all interfaces) MCP_SERVER_HOST=0.0.0.0 # ============================================================================= # 🤖 OPTIONAL: AI Integration # ============================================================================= # Anthropic API key for LangGraph agent examples # 📍 Get this from: https://console.anthropic.com/ ANTHROPIC_API_KEY=your_anthropic_api_key_here # ============================================================================= # 🚀 OPTIONAL: Production Deployment # ============================================================================= # Ngrok authentication token (for tunneling during development) # NGROK_AUTHTOKEN=your_ngrok_token_here # Azure App Service URL (if deploying to Azure) # AZURE_APP_SERVICE_URL=https://your-app.azurewebsites.net # ============================================================================= # 📋 REFERENCE: GHL Scavenger Hunt Checklist # ============================================================================= # # To complete your setup, collect these from GoHighLevel: # # ✅ GHL_API_KEY → GHL → Settings → API Keys # ✅ GHL_SUB_ACCOUNT_ID → URL bar in sub-account dashboard # 📋 Webhook URLs → Automations → Webhook → Copy URL # 📋 Pipeline/Funnel IDs → Funnels → Click → Copy from URL # 📋 Contact IDs (testing) → Contacts → Click any → Copy ID from URL # # ============================================================================= # ============================================================================= # 🚀 QUICK START COMMANDS # ============================================================================= # # After setting up your .env file: # # 1. Install dependencies: # pip install -r requirements.txt # # 2. Start the MCP server: # python scripts/start_server.py # # 3. Test the server: # python examples/simple_client.py # # 4. Interactive testing: # python examples/simple_client.py interactive # # =============================================================================

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JewelreyBoxAI/MCP-GHL'

If you have feedback or need assistance with the MCP directory API, please join our Discord server