GoHighLevel
HTTP-SSEMCP server for GoHighLevel CRM integration with contact management and API access.
MCP server for GoHighLevel CRM integration with contact management and API access.
A Model Context Protocol (MCP) server that provides seamless integration with the GoHighLevel API v2. This server enables AI assistants to interact with GoHighLevel's CRM functionality, starting with comprehensive contact management.
uv package manager (or pip)git clone https://github.com/basicmachines-co/open-ghl-mcp.git cd open-ghl-mcp
uv venv source .venv/bin/activate uv pip install -r requirements.txt
python -m src.main
Use your own GoHighLevel Marketplace App:
http://localhost:8080/oauth/callbackpython -m src.main
Complete the setup wizard.
Configure your LLM to use the MCP server
This MCP server provides comprehensive access to GoHighLevel API v2 through both Tools (for actions) and Resources (for data browsing). All endpoints are fully tested and validated.
| Tool | GoHighLevel Endpoint | Description |
|---|---|---|
create_contact | POST /contacts | Create a new contact |
update_contact | PUT /contacts/{id} | Update existing contact |
delete_contact | DELETE /contacts/{id} | Delete a contact |
get_contact | GET /contacts/{id} | Get a single contact |
search_contacts | GET /contacts | Search contacts with filters |
add_contact_tags | POST /contacts/{id}/tags | Add tags to a contact |
remove_contact_tags | DELETE /contacts/{id}/tags | Remove tags from a contact |
| Tool | GoHighLevel Endpoint | Description |
|---|---|---|
get_conversations | GET /conversations/search | Search and list conversations |
get_conversation | GET /conversations/{id} | Get a single conversation |
get_messages | GET /conversations/{id}/messages | Get messages from a conversation |
send_message | POST /conversations/{id}/messages | Send messages (SMS ✅, Email ✅, WhatsApp, IG, FB, Custom, Live_Chat) |
update_message_status | PUT /conversations/messages/{messageId}/status | Update message delivery status |
| Tool | GoHighLevel Endpoint | Description |
|---|---|---|
get_opportunities | GET /opportunities/search | Search opportunities with filters |
get_opportunity | GET /opportunities/{id} | Get a single opportunity |
create_opportunity | POST /opportunities | Create new opportunity |
update_opportunity | PUT /opportunities/{id} | Update existing opportunity |
delete_opportunity | DELETE /opportunities/{id} | Delete opportunity |
update_opportunity_status | PUT /opportunities/{id}/status | Update opportunity status |
get_pipelines | GET /opportunities/pipelines | List all pipelines |
| Tool | GoHighLevel Endpoint | Description |
|---|---|---|
get_calendars | GET /calendars/?locationId={id} | List all calendars for location |
get_calendar | GET /calendars/{id} | Get calendar details (54+ fields) |
get_appointments | GET /contacts/{contactId}/appointments | Get appointments for contact |
get_free_slots | GET /calendars/{id}/free-slots | Get available time slots |
| Tool | GoHighLevel Endpoint | Description |
|---|---|---|
get_forms | GET /forms | List all forms (basic info: id, name, locationId) |
get_all_form_submissions | GET /forms/submissions | Get all submissions with filtering |
upload_form_file | POST /forms/upload-custom-files | Upload file to custom field |
Note: Limited API support for forms. The following are NOT available:
GET /forms/{id}(401 "Route not supported")GET /forms/{id}/submissions(404 Not Found)POST /forms/submit(401 Unauthorized)
| Resource URI | GoHighLevel Endpoint | Description |
|---|---|---|
contacts://{location_id} | GET /contacts | Browse all contacts for location |
contact://{location_id}/{contact_id} | GET /contacts/{id} | View single contact details |
| Resource URI | GoHighLevel Endpoint | Description |
|---|---|---|
conversations://{location_id} | GET /conversations/search | Browse all conversations for location |
conversation://{location_id}/{conversation_id} | GET /conversations/{id} | View conversation with messages |
| Resource URI | GoHighLevel Endpoint | Description |
|---|---|---|
opportunities://{location_id} | GET /opportunities/search | Browse all opportunities for location |
opportunity://{location_id}/{opportunity_id} | GET /opportunities/{id} | View single opportunity details |
pipelines://{location_id} | GET /opportunities/pipelines | Browse all pipelines with stages |
| Resource URI | GoHighLevel Endpoint | Description |
|---|---|---|
calendars://{location_id} | GET /calendars/ | Browse all calendars for location |
calendar://{location_id}/{calendar_id} | GET /calendars/{id} | View calendar details |
appointments://{location_id}/{contact_id} | GET /contacts/{id}/appointments | Browse appointments for contact |
All endpoints require proper authentication:
# Get all contacts for your location contacts://YOUR_LOCATION_ID # Get specific contact details contact://YOUR_LOCATION_ID/YOUR_CONTACT_ID # Browse appointments for a contact appointments://YOUR_LOCATION_ID/YOUR_CONTACT_ID # Browse opportunities for your location opportunities://YOUR_LOCATION_ID # View conversation details conversation://YOUR_LOCATION_ID/YOUR_CONVERSATION_ID
For local testing with real GoHighLevel accounts, you'll need:
Create your own testing guidelines and keep sensitive data like location IDs and contact IDs in local files that are not committed to the repository.
# Run all tests uv run pytest # Run tests with coverage report uv run pytest --cov=src --cov-report=term-missing # Run specific test file uv run pytest tests/test_api_client.py -v
This project uses automated code quality tools. Before committing changes:
# Format code with Black uv run black src/ tests/ # Check linting with flake8 uv run flake8 src/ tests/ # Run type checking with mypy uv run mypy src/ --ignore-missing-imports # Run all checks at once uv run black src/ tests/ && uv run flake8 src/ tests/ && uv run mypy src/ --ignore-missing-imports
To automatically format code before commits:
# Create a git pre-commit hook echo '#!/bin/sh uv run black src/ tests/ uv run flake8 src/ tests/ ' > .git/hooks/pre-commit chmod +x .git/hooks/pre-commit
The project uses GitHub Actions for CI/CD:
The server follows a modular architecture:
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For issues and feature requests, please use the GitHub issues tracker.