# Connect Grok API (xAI) to HighLevel (GHL): Setup, Business Dashboard & App Integrations

> xAI's API supports remote MCP tools in its SDK and OpenAI-compatible Responses API. Pass HighLevel's URL and headers and xAI's servers connect, list tools and call them for you.

Last verified: October 25, 2026 · Source page: https://ghlfounders.com/agents/xai-api

## Key facts
| Fact | Grok API (xAI) |
| --- | --- |
| Maker | xAI |
| Type | Model APIs |
| Launched | Remote MCP tools |
| Access & price | xAI API key |
| Where it lives | Your code |
| Route to HighLevel | HighLevel MCP |
| Always on | If you schedule it |
| Approval controls | Your own |
| Scheduling | Your own |
| Runs on | xAI servers call the MCP server |
| Official GHL MCP tools | Yes (direct) |

## How Grok API (xAI) connects to HighLevel
- **HighLevel MCP:** Connects straight to HighLevel's official MCP server with a Private Integration Token kept on your machine or server.

## Set up Grok API (xAI) with HighLevel in 3 steps
1. Get an xAI API key.
2. Add HighLevel as a remote MCP tool with headers (extra_headers in the xAI SDK).
3. Use allowed_tools to limit which HighLevel tools load.

Python (OpenAI-compatible):

```
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["XAI_API_KEY"], base_url="https://api.x.ai/v1")
resp = client.responses.create(
  model="grok-4.3",  # check docs.x.ai for current models
  input="Which opportunities moved stages this week?",
  tools=[{
    "type": "mcp",
    "server_label": "highlevel",
    "server_url": "https://services.leadconnectorhq.com/mcp/",
    "headers": {
      "Authorization": "Bearer " + os.environ["GHL_PIT"],
      "locationId": os.environ["GHL_LOCATION_ID"]
    }
  }]
)
```

## Best HighLevel jobs for Grok API (xAI)
- Custom Grok-powered agents
- Voice agents via xAI's Voice Agent API

## Use Grok API (xAI) as your HighLevel business dashboard
Build Grok-powered reports or voice briefings from HighLevel and other MCP tools in your own code.

## Connect HighLevel to your other business apps with Grok API (xAI)
Business app reach: Any remote MCP server you attach

| App category | How Grok API (xAI) reaches it |
| --- | --- |
| Remote MCP | Multiple servers per request with allowed_tools |
| Voice | Voice Agent API supports remote MCP tools |


## Permissions to grant
- opportunities.readonly
- contacts.readonly

## Limits and watch-outs
- The MCP server must be publicly reachable; connections come from xAI's servers.
- require_approval isn't supported in the Responses API.

## FAQ
### Does the Grok API support MCP?
Yes. Remote MCP tools work in the xAI SDK, the OpenAI-compatible Responses API and the Voice Agent API.

### Can Grok API (xAI) connect HighLevel to Gmail, Slack, QuickBooks and my other apps?
Yes, within its reach: Any remote MCP server you attach. Remote MCP: Multiple servers per request with allowed_tools. Voice: Voice Agent API supports remote MCP tools.

### Can Grok API (xAI) power a HighLevel business dashboard?
Build Grok-powered reports or voice briefings from HighLevel and other MCP tools in your own code.

## Sources
- [xAI remote MCP tools](https://docs.x.ai/developers/tools/remote-mcp)
- [How to Setup and Use the HighLevel MCP Server](https://help.gohighlevel.com/support/solutions/articles/155000005741)
- [HighLevel MCP developer docs](https://marketplace.gohighlevel.com/docs/other/mcp)
