@nightsquawktech/gohighlevel-mcp-server
Stdio MCP server for curated GoHighLevel API v2 coverage, enabling create, update, and delete operations on custom fields, contacts, opportunities, tags, conversations, calendars, and more, with safe guarded destructive tools requiring explicit confirmation.
README
@nightsquawktech/gohighlevel-mcp-server
Stdio MCP server for curated GoHighLevel API v2 coverage. It is intended to run beside the official hosted HighLevel MCP and fill the gaps that server does not expose:
- create, update, and delete custom fields
- delete contacts
- guarded duplicate-contact merge workaround for records that are safe to hard-delete
This implementation covers all phases in SCOPE.md: custom fields, custom values, contacts, opportunities, tags, conversations, calendars, locations/users, contact notes/tasks, and Custom Fields V2/folders. Destructive and outbound tools (deletes, merges, message sends) require an explicit confirm: true parameter and should only be run with explicit human approval.
Custom Field API Fork
The P1 custom-field write tools use the current location-scoped endpoints:
PUT /locations/{locationId}/customFields/{id}DELETE /locations/{locationId}/customFields/{id}
The newer /custom-fields/{id} V2 API is documented separately and says it only supports Custom Objects and Company/Business today. It is implemented as separate V2/folder tools instead of replacing the location-scoped contact/opportunity custom-field tools.
Setup
Configure your MCP client to run the server with npx:
{
"mcpServers": {
"gohighlevel": {
"command": "npx",
"args": ["-y", "@nightsquawktech/gohighlevel-mcp-server"],
"env": {
"GHL_API_TOKEN": "pit-...",
"GHL_LOCATION_ID": "<location id>",
"GHL_API_VERSION": "2021-07-28"
}
}
}
}
Environment
GHL_API_TOKENrequired. Private Integration Token or OAuth sub-account access token.GHL_LOCATION_IDrequired. Default sub-account/location ID.GHL_BASE_URLoptional, defaulthttps://services.leadconnectorhq.com.GHL_API_VERSIONoptional, default2021-07-28.GHL_TIMEOUT_MSoptional, default30000.
Required Private Integration scopes for the full server roadmap:
locations/customFields.readonly,locations/customFields.writelocations/customValues.readonly,locations/customValues.writecontacts.readonly,contacts.writeopportunities.readonly,opportunities.writeconversations.readonly,conversations.writeconversations/message.readonly,conversations/message.writecalendars.readonly,calendars.writecalendars/events.readonly,calendars/events.writelocations.readonly,locations.writeworkflows.readonly
Tools
ghl_list_custom_fieldsghl_get_custom_fieldghl_create_custom_fieldghl_update_custom_fieldghl_delete_custom_fieldrequiresconfirm: trueghl_list_custom_valuesghl_get_custom_valueghl_create_custom_valueghl_update_custom_valueghl_delete_custom_valuerequiresconfirm: trueghl_search_contactsghl_get_contactghl_create_contactghl_update_contactghl_upsert_contactghl_delete_contactrequiresconfirm: trueghl_merge_contacts_delete_loserpreviews by default; requiresconfirm: true, deletes the loser only after zero-history preflight checks, then updates the survivor emailghl_add_contact_tagsghl_remove_contact_tagsrequiresconfirm: trueghl_add_contact_to_workflowghl_remove_contact_from_workflowrequiresconfirm: trueghl_get_contact_notesghl_create_contact_noteghl_get_contact_tasksghl_create_contact_taskghl_search_opportunitiesghl_get_pipelinesghl_get_opportunityghl_create_opportunityghl_update_opportunityghl_update_opportunity_statusghl_delete_opportunityrequiresconfirm: trueghl_list_tagsghl_get_tagghl_create_tagghl_update_tagghl_delete_tagrequiresconfirm: trueghl_search_conversationsghl_get_conversation_messagesghl_send_messagerequiresconfirm: trueghl_list_calendarsghl_get_calendar_eventsghl_get_free_slotsghl_create_appointmentghl_update_appointmentghl_delete_appointmentrequiresconfirm: trueghl_get_locationghl_list_usersghl_list_custom_fields_v2ghl_get_custom_field_v2ghl_create_custom_field_v2ghl_update_custom_field_v2ghl_delete_custom_field_v2requiresconfirm: trueghl_create_custom_field_folderghl_update_custom_field_folderghl_delete_custom_field_folderrequiresconfirm: true
All tools return both text content and structuredContent. Read tools support response_format: "markdown" | "json".
Verification
Read-only smoke tests:
$h = @{
Authorization = "Bearer $env:GHL_API_TOKEN"
Version = $env:GHL_API_VERSION ?? "2021-07-28"
Accept = "application/json"
}
Invoke-RestMethod "https://services.leadconnectorhq.com/locations/$env:GHL_LOCATION_ID/customFields" -Headers $h
Invoke-RestMethod "https://services.leadconnectorhq.com/locations/$env:GHL_LOCATION_ID/customValues" -Headers $h
Invoke-RestMethod "https://services.leadconnectorhq.com/locations/$env:GHL_LOCATION_ID/tags" -Headers $h
Invoke-RestMethod "https://services.leadconnectorhq.com/contacts/search" -Method Post -Headers $h -ContentType "application/json" -Body (@{ locationId = $env:GHL_LOCATION_ID; pageLimit = 1 } | ConvertTo-Json)
Invoke-RestMethod "https://services.leadconnectorhq.com/opportunities/pipelines?locationId=$env:GHL_LOCATION_ID" -Headers $h
Invoke-RestMethod "https://services.leadconnectorhq.com/calendars/?locationId=$env:GHL_LOCATION_ID" -Headers $h
Invoke-RestMethod "https://services.leadconnectorhq.com/users/?locationId=$env:GHL_LOCATION_ID" -Headers $h
Owner-approved write/delete test plan:
- Create a disposable custom value, read it back, update its
value, then delete it withconfirm: true. - Create a disposable custom field named with a clear test prefix, read it back, update its placeholder, then delete it with
confirm: true. - Pick or create a disposable contact, add a disposable tag, remove the tag with
confirm: true, then delete the contact withconfirm: trueonly if the owner approves contact deletion. - Add a disposable contact to a safe test workflow, then remove it with
confirm: true. - Create/update/upsert a disposable contact, then verify no production contact was modified.
- Create a disposable opportunity in a test pipeline/stage, update it, update its status, then delete it with
confirm: true. - Send a message only to an owner-approved test contact/channel with
confirm: true. - Create/update/delete a disposable appointment on a test calendar with
confirm: truefor delete. - Create/update/delete a disposable Custom Fields V2 field and folder only under an owner-approved test object key, with
confirm: truefor deletes. - Create a disposable contact note and task only on an owner-approved test contact.
- For each destructive tool, first call it without
confirm: trueand verify it returns an MCP error without calling GoHighLevel. - For
ghl_merge_contacts_delete_loser, first runconfirm: falseagainst an owner-approved duplicate pair and verify the preview shows the loser email, survivor email, and zero notes/tasks/conversations/opportunities/history-check errors. For the destructive test, use only disposable contacts: create a survivor and loser, set the loser's email, verify no history exists, run withconfirm: true, verify the loser is gone and the survivor has the copied email. Separately verify the guard by adding a note/task to a disposable loser and confirming the merge is skipped without deletion.
Use stderr only for logs. Never commit .env or real tokens.
Development
npm install
npm run dev
npm run build
License
Licensed under the GNU AGPL v3.0. Free for personal and open-source use.
Organizations that cannot comply with the AGPL can purchase a commercial license. See COMMERCIAL.md or contact hello@nightsquawk.tech.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。