Skip to main content
Glama
GoHighLevel MCP Server (Safe)

GoHighLevel MCP Server (Safe)

by dwadlane
README.md
# GoHighLevel MCP Server (Safe)

[![CI](https://github.com/dwadlane/gohighlevel-mcp-safe/actions/workflows/ci.yml/badge.svg)](https://github.com/dwadlane/gohighlevel-mcp-safe/actions/workflows/ci.yml)

Built by Gaps2Gains. We cut a moving company's inquiry reply time from 13.8 hours to 9 seconds. [Book a Free Discovery Call](https://gaps2gains.com/diagnosis)

Ask Claude about your GoHighLevel account in plain English. "What money have I forgotten to chase?" "Which missed calls never got a callback?" "Draft a text to Sarah, and show me before it sends."

A curated [MCP](https://modelcontextprotocol.io) server that connects Claude (Desktop, Code or any MCP client) to GoHighLevel (HighLevel) through the v2 API. Twelve tools, chosen for the questions an Owner actually asks.

## Why Safe

Popular GoHighLevel MCP servers compete on tool count. One ships 269 tools and warns that it gives full sub-account access. We went the other way.

| | One popular GoHighLevel MCP | This one |
|---|---|---|
| Tools | 269 | 12 |
| Access | Warns it gives full sub-account access | Read-only by default |

On top of that, this server adds:

- Writes stay off until you set `GHL_ALLOW_WRITES=1`.
- Every write returns a dry-run preview of exactly what would change before anything happens.
- Applying a change takes a second call with `confirm: true`.
- Text messages show the full message and recipient first.

Every write tool takes `confirm`, which defaults to false. With `confirm: false` it returns a preview and touches nothing. Only `confirm: true` performs the change. A test suite proves the gate: with confirm off, no write method is ever called.

## What an Owner Can Ask

These are real outputs from the demo account, a fictional Melbourne electrician called Bright Spark Electrical.

> **You:** What money have I forgotten to chase?
>
> **Claude:** 5 open deals worth $26,450 have gone 14+ days with no activity. The big one is the townhouse rewire for Chen Property Group, $14,500, quiet for 18 days. Next is the Papadopoulos kitchen renovation electrical at $6,200, quiet for 30 days.

> **You:** How are we doing on calls?
>
> **Claude:** 4 of 10 inbound calls last week were missed and got no callback within 30 minutes. Priya Shah, Helen Papadopoulos and Aisha Rahman never got a call back. Mei Chen was called back after 190 minutes.

> **You:** Who is still waiting on a reply?
>
> **Claude:** 5 customers wrote or called and are still waiting on a reply, the longest for 6 days. Dave O'Brien asked what time the electrician arrives Thursday.

> **You:** Text Sarah about her switchboard quote.
>
> **Claude:** Here is the preview. Nothing has been sent. To Sarah Mitchell on +61400000101: "Hi Sarah, Bright Spark Electrical here. Your switchboard quote is still open. Want us to lock in a time this week?" Want me to send it?
>
> **You:** Send it.
>
> **Claude:** Sent.

## Tools

| Tool | What it does | Writes? |
|---|---|---|
| `find_contacts` | Search contacts by name, email or phone | No |
| `get_contact` | One contact with tags, recent notes and their deals | No |
| `list_pipelines` | Every pipeline with stage names and ids | No |
| `pipeline_summary` | Open deals per stage with counts and dollars, plus won, lost and win rate | No |
| `stale_opportunities` | Open deals with no activity in N days, with the total dollars. The money you forgot to chase | No |
| `missed_call_audit` | Inbound calls missed and not returned within N minutes, with a headline count | No |
| `unanswered_conversations` | Conversations where the customer spoke last and nobody has replied | No |
| `upcoming_appointments` | Booked appointments in the next N days | No |
| `add_contact_note` | Add a note to a contact | Yes, dry run first |
| `add_contact_tag` | Add tags to a contact | Yes, dry run first |
| `move_opportunity_stage` | Move a deal to another stage of its pipeline | Yes, dry run first |
| `send_sms` | Text a contact | Yes, dry run first |

**Read-only by default.** The four write tools only appear when you set `GHL_ALLOW_WRITES=1`, and each one still previews before it acts.

## Try It in 2 Minutes, No Account Needed

With no token it runs on demo data for Bright Spark Electrical, with dates relative to today so every tool has something to show.

```bash
git clone https://github.com/dwadlane/gohighlevel-mcp-safe.git
cd gohighlevel-mcp-safe
npm install && npm run build
```

Add it to Claude Desktop (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "gohighlevel": {
      "command": "node",
      "args": ["/full/path/to/gohighlevel-mcp-safe/dist/index.js"]
    }
  }
}
```

Or in Claude Code:

```bash
claude mcp add gohighlevel -- node /full/path/to/gohighlevel-mcp-safe/dist/index.js
```

To see the dry run and confirm flow in demo mode, add `"env": { "GHL_ALLOW_WRITES": "1" }`. Demo writes only change memory, never a real account.

## Connect Your Real GoHighLevel Account

1. In your sub-account, go to **Settings, Private Integrations** and create one. Give it only the scopes you need: read access to contacts, opportunities, conversations, messages and calendars. Add the matching write scopes only if you turn writes on.
2. Copy the token and your sub-account's Location ID (Settings, Business Profile).
3. Add them to the config:

```json
{
  "mcpServers": {
    "gohighlevel": {
      "command": "node",
      "args": ["/full/path/to/gohighlevel-mcp-safe/dist/index.js"],
      "env": {
        "GHL_PIT": "your-private-integration-token",
        "GHL_LOCATION_ID": "your-location-id",
        "GHL_ALLOW_WRITES": "0"
      }
    }
  }
}
```

Optional: set `GHL_CALENDAR_ID` to read one calendar. Without it, every calendar in the location is read.

The token stays on your machine and goes only to `services.leadconnectorhq.com`, as `Authorization: Bearer` with `Version: 2021-07-28`. Scopes are a second safety layer: a token without write scopes cannot write, whatever the server allows.

## How It's Built

- TypeScript on the official [MCP SDK](https://github.com/modelcontextprotocol/typescript-sdk), with input checks on every tool.
- One small client interface, so the demo data and the live HighLevel API run the same tool code. Each API path lives in one client method, so a change on HighLevel's side is a one line fix.
- The dry-run gate lives in the tool layer, not in the prompt. A model cannot talk its way past it.
- Plain-English errors for a bad token (401), a missing scope (403) and rate limits (429).
- 26 tests covering every tool on demo data, the dry-run gate, the HTTP headers and URLs with a mocked fetch, the error messages and the MCP server itself: `npm test`.
- A stdio smoke test that starts the built server and calls it with the MCP client SDK: `npm run smoke`.

## Want This Wired Into Your Business?

We build Claude connectors, AI receptionists and back office systems for service businesses. [Book a Free Discovery Call](https://gaps2gains.com/diagnosis).

Not affiliated with or endorsed by HighLevel.

## License

MIT

TDQS

B3.3/5.0

Scored across 8 tools

Disambiguation4/5

Most tools target clearly different resources: find_contacts (search) vs get_contact (single record) is a clean split, and pipeline_summary vs stale_opportunities differ in intent (aggregate stats vs aging deals). The main overlap is missed_call_audit vs unanswered_conversations, which both surface unresponded customer communication and require reading descriptions carefully to separate.

Naming Consistency3/5

Half the tools use a verb_noun pattern (find_contacts, get_contact, list_pipelines) while the other half use report-style noun phrases (pipeline_summary, stale_opportunities, missed_call_audit, unanswered_conversations, upcoming_appointments). The split is readable and somewhat predictable (verbs for lookups, nouns for reports), but it is not a single consistent convention.

Tool Count5/5

Eight tools is well within the sweet spot, and each one covers a distinct job-to-be-done (contact lookup, pipeline structure, deal stats, stale deals, call audit, unanswered threads, appointments) with no filler or redundancy.

Completeness3/5

The read-only 'safe' surface covers contacts, pipelines, deal health, calls, conversations and calendar, but has a dead end: list_pipelines tells the agent to use ids with move_opportunity_stage, a tool that is not present. There is also no way to fetch a full opportunity/pipeline detail or take any follow-up action on the stale/missed items the server surfaces.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues