GoHighLevel MCP server

Integrates with GoHighLevel CRM to manage contacts, conversations, blog posts, calendars, workflows, and media through comprehensive API access for marketing automation and client communication workflows.
Back to servers
Setup instructions
Provider
mastanley13
Release date
Jun 09, 2025
Language
Go
Stats
61 stars

The GoHighLevel MCP Server is a powerful connector that enables AI automation by providing access to all GoHighLevel API endpoints through Model Context Protocol (MCP), allowing Claude Desktop to directly interact with your GHL account.

Prerequisites

GoHighLevel Private Integrations API Key

To use this MCP server, you'll need a Private Integrations API key:

  1. Login to your GoHighLevel account
  2. Navigate to Settings → Integrations → Private Integrations
  3. Create a new Private Integration:
    • Name: MCP Server Integration (or your preferred name)
    • Webhook URL: Leave blank
  4. Select required scopes based on functionality needed:
    • contacts.readonly/write
    • conversations.readonly/write
    • opportunities.readonly/write
    • calendars.readonly/write
    • locations.readonly/write
    • workflows.readonly
    • campaigns.readonly
    • blogs.readonly/write
    • users.readonly
    • custom_objects.readonly/write
    • invoices.readonly/write
    • payments.readonly
    • products.readonly/write
  5. Save the integration and copy the generated Private API Key
  6. Copy your Location ID from Settings → Company → Locations

Deployment Options

Vercel (Recommended)

Deploy with Vercel

Vercel offers:

  • Free tier with generous limits
  • Automatic HTTPS and global CDN
  • Zero-config deployment

Railway

Deploy on Railway

Railway offers:

  • $5 free monthly credit
  • Simple one-click deployment
  • Automatic scaling

Render

Render provides:

  • Free tier available
  • Auto-deploy from GitHub
  • Built-in SSL

Local Development

Installation & Setup

# Clone the repository
git clone https://github.com/mastanley13/GoHighLevel-MCP.git
cd GoHighLevel-MCP

# Install dependencies
npm install

# Create environment file
cp .env.example .env
# Configure your GHL credentials in .env

# Build the project
npm run build

# Start the server
npm start

# For development with hot reload
npm run dev

Environment Configuration

# Required 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

# Optional Configuration
PORT=8000
CORS_ORIGINS=*
LOG_LEVEL=info

Claude Desktop Integration

MCP Configuration

Add to your Claude Desktop mcp_settings.json:

{
  "mcpServers": {
    "ghl-mcp-server": {
      "command": "node",
      "args": ["path/to/ghl-mcp-server/dist/server.js"],
      "env": {
        "GHL_API_KEY": "your_private_integrations_api_key",
        "GHL_BASE_URL": "https://services.leadconnectorhq.com",
        "GHL_LOCATION_ID": "your_location_id"
      }
    }
  }
}

HTTP MCP Integration

For web-based MCP clients, use the HTTP endpoint:

https://your-deployment-url.vercel.app/sse

Example Usage with Claude Desktop

Contact Management

"Search for contacts tagged 'VIP' who haven't been contacted in 30 days, then send them a personalized SMS about our new premium service offering"

Sales Pipeline Management

"Create an opportunity for contact John Smith for our Premium Package worth $5000, add it to the 'Enterprise Sales' pipeline, and schedule a follow-up appointment for next Tuesday"

Business Intelligence

"Get all invoices from the last quarter, analyze payment patterns, and create a report of our top-paying customers with their lifetime value"

E-commerce Operations

"List all products with low inventory, create a restock notification campaign, and send it to contacts tagged 'inventory-manager'"

Troubleshooting

Common Issues & Solutions

API Connection Issues:

  • Ensure you're using a Private Integrations API key (not a regular API key)
  • Verify all required scopes are enabled in your Private Integration
  • Confirm your Location ID matches your GHL account
  • Check that environment variables are properly set

Claude Desktop Integration:

  1. Verify MCP configuration syntax
  2. Check file paths are absolute
  3. Ensure environment variables are set
  4. Restart Claude Desktop after changes

Security Best Practices

  • Never commit API keys to version control
  • Use environment variables for all sensitive data
  • Implement proper CORS policies
  • Rotate API keys regularly
  • Monitor API usage and rate limits

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "gohighlevel" '{"command":"node","args":["path/to/ghl-mcp-server/dist/server.js"],"env":{"GHL_API_KEY":"your_private_integrations_api_key","GHL_BASE_URL":"https://services.leadconnectorhq.com","GHL_LOCATION_ID":"your_location_id"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "gohighlevel": {
            "command": "node",
            "args": [
                "path/to/ghl-mcp-server/dist/server.js"
            ],
            "env": {
                "GHL_API_KEY": "your_private_integrations_api_key",
                "GHL_BASE_URL": "https://services.leadconnectorhq.com",
                "GHL_LOCATION_ID": "your_location_id"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "gohighlevel": {
            "command": "node",
            "args": [
                "path/to/ghl-mcp-server/dist/server.js"
            ],
            "env": {
                "GHL_API_KEY": "your_private_integrations_api_key",
                "GHL_BASE_URL": "https://services.leadconnectorhq.com",
                "GHL_LOCATION_ID": "your_location_id"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later