GoHighLevel MCP Server
Enables AI assistants to interact with GoHighLevel's complete API including contacts, opportunities, calendars, workflows, communications, and business management tools. Supports both Bearer token and OAuth2 authentication with automatic token management.
README
GoHighLevel MCP Server
A Model Context Protocol (MCP) server providing access to the complete GoHighLevel API. This server enables AI assistants like Claude to interact with GoHighLevel's services including contacts, opportunities, calendars, workflows, and more.
🚀 Quick Start
npx @drausal/gohighlevel-mcp
Or install globally:
npm install -g @drausal/gohighlevel-mcp
🚀 Features
- Complete API Coverage: Access to all GoHighLevel API endpoints
- OAuth2 Support: Automatic token management and refresh
- Bearer Token Auth: Simple API key authentication
- Type-Safe: Full TypeScript implementation with Zod validation
- Stdio Transport: Works with Claude Desktop and other MCP clients
- Auto-Generated: Built from the official OpenAPI specification
📋 Prerequisites
- Node.js >= 20.0.0
- A GoHighLevel account with API access
- API credentials (Bearer token or OAuth2 client credentials)
🔧 Installation
Quick Start with npx (Recommended)
No installation needed! Use npx to run the server directly:
npx @drausal/gohighlevel-mcp
Alternative: Install Globally
For permanent installation:
npm install -g @drausal/gohighlevel-mcp
Then run:
gohighlevel-mcp
From Source (Development)
For development or customization:
git clone https://github.com/drausal/gohighlevel-mcp.git
cd gohighlevel-mcp
pnpm install
pnpm run build
pnpm start
🎯 Usage
Claude Desktop Configuration
Add this to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Using npx (Recommended):
{
"mcpServers": {
"gohighlevel": {
"command": "npx",
"args": [
"@drausal/gohighlevel-mcp"
],
"env": {
"BEARER_TOKEN_BEARERAUTH": "your_api_key_here",
"BEARER_TOKEN_BEARER": "your_api_key_here"
}
}
}
}
Using global installation:
{
"mcpServers": {
"gohighlevel": {
"command": "gohighlevel-mcp",
"args": [],
"env": {
"BEARER_TOKEN_BEARERAUTH": "your_api_key_here",
"BEARER_TOKEN_BEARER": "your_api_key_here"
}
}
}
}
Using local installation:
{
"mcpServers": {
"gohighlevel": {
"command": "node",
"args": [
"/absolute/path/to/gohighlevel-mcp/build/index.js"
],
"env": {
"BEARER_TOKEN_BEARERAUTH": "your_api_key_here",
"BEARER_TOKEN_BEARER": "your_api_key_here"
}
}
}
}
Warp Terminal Configuration
For Warp users, use the npx method:
{
"mcpServers": {
"gohighlevel": {
"command": "npx",
"args": [
"@drausal/gohighlevel-mcp"
],
"env": {
"BEARER_TOKEN_BEARERAUTH": "your_api_key_here",
"BEARER_TOKEN_BEARER": "your_api_key_here"
}
}
}
}
Running Standalone
# With npx
npx @drausal/gohighlevel-mcp
# With global installation
gohighlevel-mcp
# From source
pnpm start
🔐 Authentication
Bearer Token
The simplest authentication method. Get your API key from GoHighLevel:
- Log into your GoHighLevel account
- Go to Settings → API
- Copy your API key
- Set
BEARER_TOKEN_BEARERAUTHin your.envfile
OAuth2
For more advanced use cases with automatic token refresh:
-
Agency Access: For agency-level operations
- Set
OAUTH_CLIENT_ID_AGENCY_ACCESSandOAUTH_CLIENT_SECRET_AGENCY_ACCESS
- Set
-
Location Access: For location-specific operations
- Set
OAUTH_CLIENT_ID_LOCATION_ACCESSandOAUTH_CLIENT_SECRET_LOCATION_ACCESS
- Set
The server automatically:
- Obtains access tokens using client credentials flow
- Caches tokens for their lifetime
- Refreshes tokens when expired
See docs/oauth2-configuration.md for detailed OAuth2 configuration.
📚 Available Tools
The MCP server exposes all GoHighLevel API endpoints as MCP tools. Major categories include:
Core Resources
- Contacts: Create, update, search contacts
- Opportunities: Manage sales pipeline
- Calendars: Schedule appointments
- Workflows: Trigger and manage automation
Communication
- Conversations: Messaging and chat
- Emails: Email campaigns and templates
- SMS: Text message campaigns
Marketing
- Social Media Posting: Manage social campaigns
- Blogs: Content management
- Forms: Lead capture
Business Management
- Payments: Process transactions
- Invoices: Billing management
- Users: Team and permission management
- Locations: Sub-account management
To see all available tools, the MCP client will list them when connecting to the server.
🛠️ Development
Project Structure
gohighlevel-mcp/
├── src/
│ └── index.ts # Main MCP server implementation
├── build/ # Compiled JavaScript output
├── docs/ # Documentation
├── .env.example # Example environment configuration
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Scripts
pnpm run build- Compile TypeScript to JavaScriptpnpm start- Run the compiled serverpnpm run typecheck- Check TypeScript types without building
Type Safety
This server uses:
- Zod for runtime validation of inputs and outputs
- TypeScript for compile-time type checking
- json-schema-to-zod for generating validators from OpenAPI schemas
📖 Documentation
🔍 Troubleshooting
Server Won't Start
-
Check Node.js version:
node --version # Should be >= 20.0.0 -
Verify build succeeded:
ls -la build/index.js -
Check environment variables:
cat .env
Authentication Errors
- Bearer Token: Verify your API key is correct
- OAuth2: Ensure client ID and secret are valid
- Check token expiration (OAuth2 tokens expire after 1 hour)
Claude Desktop Integration Issues
- Verify the absolute path in
claude_desktop_config.json - Restart Claude Desktop after configuration changes
- Check Claude Desktop logs for error messages
Common Issues
"ENOENT" errors: Usually means the path in config is incorrect
"Permission denied": Run chmod +x build/index.js
"Invalid token": Check your API credentials in .env
🤝 Contributing
This project is auto-generated from the GoHighLevel OpenAPI specification. To update:
- Download the latest OpenAPI spec from GoHighLevel
- Run the generator again:
npx openapi-mcp-generator -i openapi.json -o . -n gohighlevel --force - Reinstall dependencies and rebuild
📝 License
This MCP server is generated from GoHighLevel's public API specification. Please refer to GoHighLevel's terms of service for API usage guidelines.
🆘 Support
- GoHighLevel API Issues: Contact GoHighLevel support
- MCP Protocol Issues: See MCP Documentation
- Server Issues: Check this README and troubleshooting section
🎉 Acknowledgments
- Built with openapi-mcp-generator
- Uses Model Context Protocol SDK
- Powered by GoHighLevel's comprehensive API
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。