Skip to main content
Glama

GoHighLevel MCP Server

by mastanley13
README-GITHUB.mdโ€ข7.4 kB
# ๐Ÿš€ GoHighLevel MCP Server [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/mastanley13/GoHighLevel-MCP) [![Donate to the Project](https://img.shields.io/badge/Donate_to_the_Project-๐Ÿ’_Support_Development-ff69b4?style=for-the-badge&logo=stripe&logoColor=white)](https://buy.stripe.com/28E14o1hT7JAfstfvqdZ60y) > **Transform ChatGPT into a GoHighLevel CRM powerhouse with 21 powerful tools** ## ๐ŸŽฏ What This Does This MCP (Model Context Protocol) server connects ChatGPT directly to your GoHighLevel account, enabling you to: - **๐Ÿ‘ฅ Manage Contacts**: Create, search, update, and organize contacts - **๐Ÿ’ฌ Handle Communications**: Send SMS and emails, manage conversations - **๐Ÿ“ Create Content**: Manage blog posts, authors, and categories - **๐Ÿ”„ Automate Workflows**: Combine multiple actions through ChatGPT ## ๐Ÿ”‘ **CRITICAL: GoHighLevel API Setup** ### **๐Ÿ“‹ Required: Private Integrations API Key** > **โš ๏ธ This project requires a PRIVATE INTEGRATIONS API key, not a regular API key!** **Quick Setup:** 1. **GoHighLevel Settings** โ†’ **Integrations** โ†’ **Private Integrations** 2. **Create New Integration** with required scopes (contacts, conversations, etc.) 3. **Copy the Private API Key** and your **Location ID** ## โšก Quick Deploy to Vercel ### 1. One-Click Deploy Click the button above or: [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/mastanley13/GoHighLevel-MCP) ### 2. Add Environment Variables ``` GHL_API_KEY=your_private_integrations_api_key_here GHL_BASE_URL=https://services.leadconnectorhq.com GHL_LOCATION_ID=your_location_id_here NODE_ENV=production ``` ### 3. Connect to ChatGPT Use your deployed URL in ChatGPT: ``` https://your-app-name.vercel.app/sse ``` ## ๐Ÿ› ๏ธ Available Tools (21 Total) ### ๐ŸŽฏ Contact Management (7 Tools) - `create_contact` - Create new contacts - `search_contacts` - Find contacts by criteria - `get_contact` - Retrieve contact details - `update_contact` - Modify contact information - `add_contact_tags` - Organize with tags - `remove_contact_tags` - Remove tags - `delete_contact` - Delete contacts ### ๐Ÿ’ฌ Messaging & Conversations (7 Tools) - `send_sms` - Send SMS messages - `send_email` - Send emails with HTML support - `search_conversations` - Find conversations - `get_conversation` - Get conversation details - `create_conversation` - Start new conversations - `update_conversation` - Modify conversations - `get_recent_messages` - Monitor recent activity ### ๐Ÿ“ Blog Management (7 Tools) - `create_blog_post` - Create blog posts with SEO - `update_blog_post` - Edit existing posts - `get_blog_posts` - List and search posts - `get_blog_sites` - Manage blog sites - `get_blog_authors` - Handle authors - `get_blog_categories` - Organize categories - `check_url_slug` - Validate URL slugs ## ๐ŸŽฎ ChatGPT Usage Examples ### Contact Management ``` "Create a contact for John Smith with email john@company.com and add tags 'lead' and 'hot-prospect'" ``` ### Communication ``` "Send an SMS to contact ID abc123 saying 'Thanks for your interest! We'll call you within 24 hours.'" ``` ### Blog Content ``` "Create a blog post titled 'Insurance Tips for 2024' with SEO-optimized content about life insurance benefits" ``` ### Advanced Workflows ``` "Search for contacts tagged 'VIP', get their recent conversations, and send them a personalized email about our premium services" ``` ## ๐Ÿ”ง Local Development ### Prerequisites - Node.js 18+ - GoHighLevel API access - Valid API key and Location ID ### Setup ```bash # Clone repository git clone https://github.com/mastanley13/GoHighLevel-MCP.git cd GoHighLevel-MCP # Install dependencies npm install # Create .env file cp .env.example .env # Add your GHL API credentials # Build and start npm run build npm start ``` ### Testing ```bash # Test health endpoint curl http://localhost:8000/health # Test tools endpoint curl http://localhost:8000/tools # Test SSE endpoint curl -H "Accept: text/event-stream" http://localhost:8000/sse ``` ## ๐ŸŒ Deployment Options ### Vercel (Recommended) - โœ… Free tier available - โœ… Automatic HTTPS - โœ… Global CDN - โœ… Easy GitHub integration ### Railway - โœ… Free $5 credit - โœ… Simple deployment - โœ… Automatic scaling ### Render - โœ… Free tier - โœ… Easy setup - โœ… Reliable hosting ## ๐Ÿ“‹ Project Structure ``` GoHighLevel-MCP/ โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ clients/ # GHL API client โ”‚ โ”œโ”€โ”€ tools/ # MCP tool implementations โ”‚ โ”œโ”€โ”€ types/ # TypeScript interfaces โ”‚ โ”œโ”€โ”€ server.ts # CLI MCP server โ”‚ โ””โ”€โ”€ http-server.ts # HTTP MCP server โ”œโ”€โ”€ tests/ # Comprehensive test suite โ”œโ”€โ”€ docs/ # Documentation โ”œโ”€โ”€ vercel.json # Vercel configuration โ”œโ”€โ”€ Dockerfile # Docker support โ””โ”€โ”€ README.md # This file ``` ## ๐Ÿ” Security & Environment ### Required Environment Variables ```bash GHL_API_KEY=your_private_integrations_api_key # Private Integrations API key (NOT regular API key) GHL_BASE_URL=https://services.leadconnectorhq.com GHL_LOCATION_ID=your_location_id # From Settings โ†’ Company โ†’ Locations NODE_ENV=production # Environment mode ``` ### Security Features - โœ… Environment-based configuration - โœ… Input validation and sanitization - โœ… Comprehensive error handling - โœ… CORS protection for web deployment - โœ… No sensitive data in code ## ๐Ÿšจ Troubleshooting ### Common Issues **Build Failures:** ```bash npm run build # Check TypeScript compilation npm install # Ensure dependencies installed ``` **API Connection Issues:** - Verify Private Integrations API key is valid (not regular API key) - Check location ID is correct - Ensure required scopes are enabled in Private Integration - Ensure environment variables are set **ChatGPT Integration:** - Confirm SSE endpoint is accessible - Check CORS configuration - Verify MCP protocol compatibility ## ๐Ÿ“Š Technical Stack - **Runtime**: Node.js 18+ with TypeScript - **Framework**: Express.js for HTTP server - **MCP SDK**: @modelcontextprotocol/sdk - **API Client**: Axios with interceptors - **Testing**: Jest with comprehensive coverage - **Deployment**: Vercel, Railway, Render, Docker ## ๐Ÿค Contributing 1. Fork the repository 2. Create feature branch (`git checkout -b feature/amazing-feature`) 3. Commit changes (`git commit -m 'Add amazing feature'`) 4. Push to branch (`git push origin feature/amazing-feature`) 5. Open Pull Request ## ๐Ÿ“ License This project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details. ## ๐Ÿ†˜ Support - **Documentation**: Check the `/docs` folder - **Issues**: Open a GitHub issue - **API Docs**: GoHighLevel API documentation - **MCP Protocol**: Model Context Protocol specification ## ๐ŸŽ‰ Success Story This server successfully connects ChatGPT to GoHighLevel with: - โœ… **21 operational tools** - โœ… **Real-time API integration** - โœ… **Production-ready deployment** - โœ… **Comprehensive error handling** - โœ… **Full TypeScript support** **Ready to automate your GoHighLevel workflows through ChatGPT!** ๐Ÿš€ --- Made with โค๏ธ for the GoHighLevel community

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/mastanley13/GoHighLevel-MCP'

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