ghl-mcp-proxy
A minimal multi-sub-account MCP proxy for GoHighLevel that allows listing configured accounts and making authenticated REST API calls on behalf of any account.
README
ghl-mcp-proxy
A minimal multi-sub-account MCP proxy for GoHighLevel / LeadConnector. Holds a Private Integration Token (PIT) + Location ID per sub-account and exposes two tools to Claude:
list_accounts— shows which sub-accounts are configuredghl_api_request— makes an authenticated call to the LeadConnector REST API on behalf of a chosen account
1. Configure your accounts
Copy .env.example to .env and fill in:
PROXY_SHARED_SECRET— a long random string (openssl rand -hex 32). This is the "password" Cowork will send back to this server.GHL_ACCOUNTS_JSON— one entry per sub-account, keyed by a friendly name:
{
"acme_dental": { "pit": "pit-xxxxxxxx", "locationId": "loc-xxxxxxxx" },
"joes_plumbing": { "pit": "pit-yyyyyyyy", "locationId": "loc-yyyyyyyy" }
}
Keep this as valid JSON on one line in the real .env file.
2. Deploy on Hostinger
Option A — Hostinger VPS (recommended, most control)
-
SSH into your VPS.
-
Install Node 20+ and git if not already present:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - sudo apt-get install -y nodejs git -
Upload this project (via
git clonefrom your own repo, orscp). -
cd ghl-mcp-proxy && cp .env.example .envthen edit.envwith real values. -
Install dependencies and run with a process manager so it survives reboots:
npm install --omit=dev npm install -g pm2 pm2 start src/server.js --name ghl-mcp-proxy pm2 save pm2 startup # follow the printed instructions -
Put Nginx in front of it for HTTPS (Hostinger VPS panel can issue a free Let's Encrypt cert). Point a subdomain, e.g.
mcp.yourdomain.com, at the VPS, then reverse-proxy port 443 →localhost:8080.Minimal Nginx server block:
server { listen 443 ssl; server_name mcp.yourdomain.com; ssl_certificate /etc/letsencrypt/live/mcp.yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mcp.yourdomain.com/privkey.pem; location / { proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } -
Test:
curl https://mcp.yourdomain.com/healthshould return{"ok":true,"accounts":2}.
Option B — Hostinger Node.js App (hPanel, if on a plan that supports it)
- In hPanel, create a new Node.js application, point it at this project (upload via File Manager or Git).
- Set the entry point to
src/server.js. - Add all variables from
.env.exampleunder the app's Environment Variables section (do not upload a real.envfile to a shared host). - Set the app's port to match what Hostinger assigns via
process.env.PORT(already handled inserver.js). - Attach your domain/subdomain and enable SSL (Hostinger issues this automatically for most plans).
- Restart the app, then test
https://your-subdomain/health.
3. Add it as a custom connector in Cowork
- In Claude/Cowork: Customize → Connectors → "+".
- Name:
GoHighLevel Proxy(or anything). - URL:
https://mcp.yourdomain.com/mcp - Advanced settings → set a custom header:
Authorization: Bearer <your PROXY_SHARED_SECRET> - Click Add, then Connect.
4. Use it
Ask Claude something like:
"List my connected GHL accounts, then for acme_dental find contacts tagged 'hot lead' and summarize what's happening with them."
Claude will call list_accounts, then ghl_api_request with
account: "acme_dental" and the right REST path.
Adding more sub-accounts later
Just add another entry to GHL_ACCOUNTS_JSON and restart the app
(pm2 restart ghl-mcp-proxy on VPS, or restart via hPanel). No code changes
needed.
Security notes
- This single server holds credentials for all your clients — treat the
shared secret and
.envfile like a master password. - Use the narrowest PIT scopes each workflow actually needs.
- Rotate PITs periodically from GHL Settings → Private Integrations.
- Never commit
.envto git (already covered by.gitignore).
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。