ghl-mcp

ghl-mcp

MCP server for GoHighLevel API v2 that provides 50+ tools for CRM, billing, marketing, and operations workflows, enabling natural language interaction with contacts, opportunities, conversations, and more.

Category
访问服务器

README

GoHighLevel MCP Server

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.

Features

  • 50 MCP tools covering high-value GoHighLevel CRM, billing, marketing, and operations workflows
  • Built on @modelcontextprotocol/sdk v1.x
  • Strict TypeScript configuration
  • Zod-validated tool inputs with descriptions on every field
  • Automatic locationId injection from environment variables
  • Basic request pacing to stay under GoHighLevel rate limits
  • Human-readable tool error payloads instead of raw stack traces

Requirements

  • Node.js 18+
  • A GoHighLevel API token
  • A GoHighLevel location ID

Installation

Local development

npm install
npm run build
node dist/index.js

Run with npx

npx -y ghl-mcp

Configuration

Set these environment variables in the MCP client configuration:

  • GHL_API_TOKEN: Private Integration token or OAuth access token
  • GHL_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-28

MCP Client Setup

Claude Code

Note: claude mcp add registers 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

Cursor / VS Code / Codex style config

{
  "mcpServers": {
    "gohighlevel": {
      "command": "npx",
      "args": ["-y", "ghl-mcp"],
      "env": {
        "GHL_API_TOKEN": "your-token-here",
        "GHL_LOCATION_ID": "your-location-id"
      }
    }
  }
}

MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

Tool List

Contacts

  • search_contacts: Search contacts by text, tag, pagination, or advanced filters
  • get_contact: Retrieve one contact by ID
  • create_contact: Create a contact
  • update_contact: Update contact fields
  • delete_contact: Delete a contact
  • add_contact_tags: Add tags to a contact
  • remove_contact_tags: Remove tags from a contact
  • get_contact_notes: List notes for a contact
  • create_contact_note: Create a note on a contact

Opportunities

  • search_opportunities: Search deals by query, pipeline, stage, status, contact, or owner
  • get_opportunity: Retrieve one opportunity by ID
  • create_opportunity: Create an opportunity
  • update_opportunity: Update opportunity fields
  • delete_opportunity: Delete an opportunity
  • update_opportunity_status: Change status to open, won, lost, or abandoned
  • list_pipelines: List pipelines and fetch their stages

Conversations

  • search_conversations: Search conversations
  • get_conversation: Retrieve one conversation by ID
  • get_conversation_messages: List messages in a conversation
  • send_message: Send SMS, email, WhatsApp, or similar messages
  • create_conversation: Start a new conversation

Calendars

  • list_calendars: List calendars
  • list_events: List events or appointments
  • create_event: Create an event
  • get_available_slots: Retrieve available booking slots

Workflows

  • list_workflows: List workflows
  • trigger_workflow: Trigger a workflow for a contact

Users

  • list_users: List users in the configured location
  • get_user: Retrieve one user by ID

Invoices And Payments

  • list_invoices: List invoices
  • create_invoice: Create an invoice
  • list_transactions: List payment transactions
  • list_orders: List payment orders
  • list_subscriptions: List subscriptions

Social

  • list_social_posts: List social posts
  • create_social_post: Create or schedule a social post
  • list_social_accounts: List connected social accounts
  • get_social_stats: Retrieve social statistics

Forms And Funnels

  • list_forms: List forms
  • list_funnels: List funnels
  • list_funnel_pages: List funnel pages

Tasks

  • list_tasks: List tasks for a contact
  • create_task: Create a task for a contact

Products

  • list_products: List products
  • list_product_prices: List prices for a product

Emails

  • list_email_templates: List email templates
  • list_email_schedules: List scheduled emails

Campaigns

  • list_campaigns: List campaigns

Documents

  • list_contracts: List contracts or documents
  • send_contract_link: Send a contract link for signing

Development

npm run dev

Build output goes to dist/.

Architecture

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

Implementation Notes

  • 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.

Example Workflows

Find a contact and add a note

  1. Call search_contacts with query: "jane@company.com"
  2. Call get_contact with the selected contactId
  3. Call create_contact_note with the contactId and note text

Create and advance an opportunity

  1. Call list_pipelines to find the target pipeline and stage IDs
  2. Call create_opportunity with contactId, pipelineId, pipelineStageId, and name
  3. Call update_opportunity or update_opportunity_status as the deal progresses

Book an appointment

  1. Call get_available_slots with a calendarId and date range
  2. Call create_event with the selected time slot and optional contactId

Publishing

npm publish --access public

The published package installs the ghl-mcp binary from dist/index.js.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选