ghl-mcp is a Model Context Protocol server for GoHighLevel API v2. It exposes contacts, opportunities, conversations, calendars, workflows, users, invoices, payments, social, forms, funnels, tasks, products, emails, campaigns, and documents as MCP tools over stdio so Claude Code, Cursor, Codex, OpenClaw, VS Code, and other MCP clients can work directly with GoHighLevel CRM data.
- 50 MCP tools covering high-value GoHighLevel CRM, billing, marketing, and operations workflows
- Built on
@modelcontextprotocol/sdkv1.x - Strict TypeScript configuration
- Zod-validated tool inputs with descriptions on every field
- Automatic
locationIdinjection from environment variables - Basic request pacing to stay under GoHighLevel rate limits
- Human-readable tool error payloads instead of raw stack traces
- Node.js 18+
- A GoHighLevel API token
- A GoHighLevel location ID
npm install
npm run build
node dist/index.jsnpx -y ghl-mcpSet these environment variables in the MCP client configuration:
GHL_API_TOKEN: Private Integration token or OAuth access tokenGHL_LOCATION_ID: GoHighLevel location or sub-account ID
The server sends these headers on every request:
Authorization: Bearer {GHL_API_TOKEN}
Content-Type: application/json
Version: 2021-07-28Note:
claude mcp addregisters a local server name — it doesn't download from a registry. The part after--is the actual command that runs the server.
# After npm publish (recommended):
claude mcp add gohighlevel --scope user \
--env GHL_API_TOKEN="your-token" \
--env GHL_LOCATION_ID="your-location-id" \
-- npx -y ghl-mcp
# Local development (before publishing):
claude mcp add gohighlevel --scope user \
--env GHL_API_TOKEN="your-token" \
--env GHL_LOCATION_ID="your-location-id" \
-- node /absolute/path/to/ghl-mcp/dist/index.js{
"mcpServers": {
"gohighlevel": {
"command": "npx",
"args": ["-y", "ghl-mcp"],
"env": {
"GHL_API_TOKEN": "your-token-here",
"GHL_LOCATION_ID": "your-location-id"
}
}
}
}npx @modelcontextprotocol/inspector node dist/index.jssearch_contacts: Search contacts by text, tag, pagination, or advanced filtersget_contact: Retrieve one contact by IDcreate_contact: Create a contactupdate_contact: Update contact fieldsdelete_contact: Delete a contactadd_contact_tags: Add tags to a contactremove_contact_tags: Remove tags from a contactget_contact_notes: List notes for a contactcreate_contact_note: Create a note on a contact
search_opportunities: Search deals by query, pipeline, stage, status, contact, or ownerget_opportunity: Retrieve one opportunity by IDcreate_opportunity: Create an opportunityupdate_opportunity: Update opportunity fieldsdelete_opportunity: Delete an opportunityupdate_opportunity_status: Change status toopen,won,lost, orabandonedlist_pipelines: List pipelines and fetch their stages
search_conversations: Search conversationsget_conversation: Retrieve one conversation by IDget_conversation_messages: List messages in a conversationsend_message: Send SMS, email, WhatsApp, or similar messagescreate_conversation: Start a new conversation
list_calendars: List calendarslist_events: List events or appointmentscreate_event: Create an eventget_available_slots: Retrieve available booking slots
list_workflows: List workflowstrigger_workflow: Trigger a workflow for a contact
list_users: List users in the configured locationget_user: Retrieve one user by ID
list_invoices: List invoicescreate_invoice: Create an invoicelist_transactions: List payment transactionslist_orders: List payment orderslist_subscriptions: List subscriptions
list_social_posts: List social postscreate_social_post: Create or schedule a social postlist_social_accounts: List connected social accountsget_social_stats: Retrieve social statistics
list_forms: List formslist_funnels: List funnelslist_funnel_pages: List funnel pages
list_tasks: List tasks for a contactcreate_task: Create a task for a contact
list_products: List productslist_product_prices: List prices for a product
list_email_templates: List email templateslist_email_schedules: List scheduled emails
list_campaigns: List campaigns
list_contracts: List contracts or documentssend_contract_link: Send a contract link for signing
npm run devBuild output goes to dist/.
src/
├── index.ts
├── client.ts
├── types.ts
└── tools/
├── calendars.ts
├── campaigns.ts
├── contacts.ts
├── conversations.ts
├── documents.ts
├── emails.ts
├── forms.ts
├── invoices.ts
├── opportunities.ts
├── products.ts
├── social.ts
├── tasks.ts
├── users.ts
└── workflows.ts
- Most endpoints require
locationId. This server injects it automatically into request query strings and JSON bodies unless a value is already provided. - The client applies a minimum delay between requests to reduce the chance of hitting GoHighLevel's rate limits.
- Tool responses are returned as JSON text blocks with a short summary and the raw API payload.
- Pipeline listing fetches pipeline stage details for each returned pipeline so agents get usable stage metadata in one call.
- Call
search_contactswithquery: "jane@company.com" - Call
get_contactwith the selectedcontactId - Call
create_contact_notewith thecontactIdand note text
- Call
list_pipelinesto find the target pipeline and stage IDs - Call
create_opportunitywithcontactId,pipelineId,pipelineStageId, andname - Call
update_opportunityorupdate_opportunity_statusas the deal progresses
- Call
get_available_slotswith acalendarIdand date range - Call
create_eventwith the selected time slot and optionalcontactId
npm publish --access publicThe published package installs the ghl-mcp binary from dist/index.js.