To connect your GoHighLevel MCP Server to ChatGPT, you need to deploy it to a publicly accessible URL. Here are the best options:
- ✅ Free tier available
- ✅ Automatic HTTPS
- ✅ Easy GitHub integration
- ✅ Fast deployment
-
Sign up at Railway.app
-
Create New Project from GitHub:
- Connect your GitHub account
- Import this repository
- Railway will auto-detect the Node.js app
-
Set Environment Variables:
GHL_API_KEY=your_api_key_here GHL_BASE_URL=https://services.leadconnectorhq.com GHL_LOCATION_ID=your_location_id_here NODE_ENV=production PORT=8000 -
Deploy:
- Railway will automatically build and deploy
- You'll get a URL like:
https://your-app-name.railway.app
-
For ChatGPT Integration:
MCP Server URL: https://your-app-name.railway.app/sse
-
Sign up at Render.com
-
Create Web Service:
- Connect GitHub repository
- Select "Web Service"
- Runtime: Node
-
Configuration:
Build Command: npm run build Start Command: npm start -
Environment Variables: (Same as above)
-
For ChatGPT:
MCP Server URL: https://your-app-name.onrender.com/sse
-
Add Environment Variables during setup
-
For ChatGPT:
MCP Server URL: https://your-app-name.vercel.app/sse
-
Install Heroku CLI
-
Deploy Commands:
heroku create your-app-name heroku config:set GHL_API_KEY=your_key_here heroku config:set GHL_BASE_URL=https://services.leadconnectorhq.com heroku config:set GHL_LOCATION_ID=your_location_id_here heroku config:set NODE_ENV=production git push heroku main
-
For ChatGPT:
MCP Server URL: https://your-app-name.herokuapp.com/sse
Once deployed, test these endpoints:
GET https://your-domain.com/health
Should return:
{
"status": "healthy",
"server": "ghl-mcp-server",
"tools": { "total": 21 }
}GET https://your-domain.com/tools
Should return all 21 MCP tools.
GET https://your-domain.com/sse
Should establish Server-Sent Events connection.
-
Open ChatGPT Desktop App
-
Go to: Settings → Beta Features → Model Context Protocol
-
Add New Connector:
- Name:
GoHighLevel MCP - Description:
Connect to GoHighLevel CRM - MCP Server URL:
https://your-domain.com/sse - Authentication:
OAuth(or None if no auth needed)
- Name:
-
Save and Connect
Try asking ChatGPT:
"List all available GoHighLevel tools"
"Create a contact named Test User with email test@example.com"
"Show me recent conversations in GoHighLevel"
-
502 Bad Gateway:
- Check environment variables are set
- Verify GHL API key is valid
- Check server logs for errors
-
CORS Errors:
- Server includes CORS headers for ChatGPT
- Ensure your domain is accessible
-
Connection Timeout:
- Free tier platforms may have cold starts
- First request might be slow
-
SSE Connection Issues:
- Verify
/sseendpoint is accessible - Check browser network tab for errors
- Verify
# Check server status
curl https://your-domain.com/health
# Test tools endpoint
curl https://your-domain.com/tools
# Check SSE connection
curl -H "Accept: text/event-stream" https://your-domain.com/sse- Health check returns
status: "healthy" - Tools endpoint shows 21 tools
- SSE endpoint establishes connection
- ChatGPT can discover and use tools
- All environment variables configured
- HTTPS enabled (automatic on most platforms)
- Server responding to all endpoints
- ChatGPT integration working
- ✅ All platforms provide HTTPS automatically
- ✅ Environment variables are encrypted
- ✅ No sensitive data in code repository
- ✅ CORS configured for ChatGPT domains only
| Platform | Free Tier | Paid Plans | HTTPS | Custom Domain |
|---|---|---|---|---|
| Railway | 512MB RAM, $5 credit | $5/month | ✅ | ✅ |
| Render | 512MB RAM | $7/month | ✅ | ✅ |
| Vercel | Unlimited | $20/month | ✅ | ✅ |
| Heroku | None | $7/month | ✅ | ✅ |
Recommendation: Start with Railway's free tier!
- Choose a platform (Railway recommended)
- Deploy your server following the guide above
- Test the endpoints to verify everything works
- Connect to ChatGPT using your new server URL
- Start managing GoHighLevel through ChatGPT!
Your GoHighLevel MCP Server will be accessible at:
https://your-domain.com/sse
Ready to transform ChatGPT into your GoHighLevel control center! 🎯