
basicmachines-co/open-ghl-mcp 是从 https://github.com/basicmachines-co/open-ghl-mcp. 导入的一个 MCP 候选服务器
概览
basicmachines-co/open-ghl-mcp 是从 https://github.com/basicmachines-co/open-ghl-mcp. 导入的一个 MCP 候选服务器
概述(AI 翻译)
一台模型上下文协议(MCP)服务器,提供与GoHighLevel API v2的无缝集成。该服务器使AI助手能够与GoHighLevel的CRM功能交互,从全面的联系人管理开始。
特色
- 🔐 OAuth 2.0 认证:全 OAuth 流程,带自动令牌管理
- 🏢 代理机构或子账户范围:代理机构(公司)令牌管理所有 通过自动机构→地点令牌交换的子账户;一个子账户 (位置)令牌直接使用,并锁定在该子账户
- 👥 策划域名:联系人、对话与消息、机会等 管道、日历和约会、表单、自定义字段和数值, 笔记与任务、用户与工作流——处理API特性的类型工具
- 🌐 全表面网关:
ghl_list_endpoints+ghl_request到达 整个GoHighLevel v2 API(超越策划工具的长尾部分),其中 自动令牌路由、个性归一化和确认门禁 破坏性/高影响力写作 - 🔄 自动令牌刷新:无缝处理令牌过期
- 🛠️ MCP 工具与资源:灵活集成的工具和资源
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
GoHighLevel MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with the GoHighLevel API v2. This server enables AI assistants to interact with GoHighLevel’s CRM functionality, starting with comprehensive contact management.
Features
- 🔐 OAuth 2.0 Authentication: Full OAuth flow with automatic token management
- 🏢 Agency or sub-account scope: An agency (Company) token manages every sub-account via automatic agency→location token exchange; a sub-account (Location) token is used directly and is locked to that one sub-account
- 👥 Curated domains: Contacts, conversations & messaging, opportunities & pipelines, calendars & appointments, forms, custom fields & values, notes & tasks, users, and workflows — typed tools that handle API quirks
- 🌐 Full-surface gateway:
ghl_list_endpoints+ghl_requestreach the entire GoHighLevel v2 API (the long tail beyond the curated tools), with automatic token routing, quirk normalization, and confirmation gating on destructive/high-impact writes - 🔄 Automatic Token Refresh: Handles token expiration seamlessly
- 🛠️ MCP Tools & Resources: Both tools and resources for flexible integration
Prerequisites
- Python 3.12+
uvpackage manager (or pip)- One of the following:
- Standard Mode Configuration: Access via our hosted GoHighLevel app (coming soon)
- Custom Mode Configuration: Your own GoHighLevel Marketplace App credentials
Getting Started - Installation
- Clone the repository:
git clone https://github.com/basicmachines-co/open-ghl-mcp.git
cd open-ghl-mcp
- Install dependencies:
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
- Start the server:
python -m src.main
1. Configuration
Basic Machines team members: skip this — use the shared app credentials from 1Password and follow Team Setup instead of creating your own app.
For external/self-hosted use, create your own GoHighLevel Marketplace App:
- Create your own GoHighLevel Marketplace App
- Set the redirect URL to:
http://localhost:8080/oauth/callback - Enable the scopes you want for the tools below (the server requests its full
ALL_SCOPESset at authorization; the granted token is the intersection of that and the scopes your app enables)
2. Usage
Running the MCP Server
- Start the server:
python -m src.main
-
Complete the setup wizard.
-
Configure your LLM to use the MCP server
First-time Authentication
Custom Mode Setup
- The server will ask you for your GHL Marketplace App Client ID and Secret
- Install your App to generate an OAuth Token
Team Setup (Basic Machines)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"ghl": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/open-ghl-mcp", "python", "-m", "src.main"]
}
}
}