---
name: ghl-official-mcp-setup
description: "Connect Claude Code, Claude.ai, ChatGPT, or Codex to GoHighLevel Official Hosted MCP v2 (/mcp/anthropic/v2 and /mcp/openai/v2) using OAuth 2.0 PKCE S256 and least-privilege scopes."
---

# Official HighLevel MCP v2 Setup & Scope Guide

Author: Daniel Hallman | Publisher: Moosh Works

## When to use this skill

Use this skill when connecting an AI client (Claude Code, Claude.ai, Cursor, ChatGPT, or Codex) to a GoHighLevel sub-account or agency over Official Hosted MCP v2, choosing from its 181 OAuth scopes, or recovering a dropped OAuth session.

## Official Hosted MCP v2 endpoints

- Claude / Anthropic clients: `https://services.leadconnectorhq.com/mcp/anthropic/v2`
- ChatGPT / Codex / OpenAI clients: `https://services.leadconnectorhq.com/mcp/openai/v2`
- Claude Code CLI registration:

```bash
claude mcp add --transport http highlevel https://services.leadconnectorhq.com/mcp/anthropic/v2
```

- Runnable `.mcp.json` files:
  - `https://danielhallman.com/mcp/configs/claude-ghl-official.mcp.json`
  - `https://danielhallman.com/mcp/configs/openai-ghl-official.mcp.json`

## OAuth 2.0 handshake and why 401 appears first

Hosted MCP v2 uses RFC 9728 protected-resource metadata and RFC 8414 dynamic client registration with PKCE `S256`. An unauthenticated probe returns `401` with a `WWW-Authenticate` header so the MCP client opens HighLevel's OAuth consent screen automatically. Never paste a static Private Integration Token (PIT) header into `https://services.leadconnectorhq.com/mcp/*/v2`.

## Least-privilege scope bundles (from 181 scopes)

1. **Inspection bundle (start here):**
   `locations.readonly`, `workflows.readonly`, `workflows.logs`, `contacts.readonly`, `conversations.readonly`, `calendars.readonly`, `opportunities.readonly`, `funnels/page.readonly`.
2. **Automation and AI builder bundle (add only when building):**
   `workflows.write`, `workflows.publish`, `voice-ai-agents.write`, `voice-ai-agent-goals.write`, `conversation-ai.write`, `knowledge-bases.write`, `forms.write`, `emails/builder.write`, `saas/location.write`.
3. **Exclude destructive scopes:**
   Leave `workflows.delete` unchecked during OAuth consent.

## Capability boundary

- `funnels/page.readonly` is view-only inside Official Hosted MCP v2. Use local `ghl-crm` when editing funnel or website page JSON layouts.
- Authoritative RFC 1035 DNS/BIMI lookups run via local `ghl-onboard` or `apple-branded-mail`.
- Cross-location snapshot comparisons run via local `ghl-agency`.

## Verification

1. Run one view-only location lookup first to confirm the active `locationId` and sub-account name.
2. Confirm no write scope runs until the operator confirms the target sub-account.
