Add the connector
1
Share your server
2
Open connectors
Go to grok.com/connectors.
3
New Connector → Custom
Click New Connector and choose Custom.
4
Enter your MCP server URL
--bearer, there’s nothing to fill in.Your server must be publicly reachable
xAI’s documentation is explicit that a local MCP server needs a tunnel to be usable, and points at ngrok or Cloudflare Tunnel for it. Either of those will get bytes to your laptop. What they can’t do is tell you that Grok dropped the connection because your content-type was wrong, or that a tool description is too long, or show you the arguments Grok actually sent when a call failed — because a generic tunnel doesn’t know what MCP is. That’s the part HeyMCP adds. The URL is the easy half.Authentication
Grok’s custom connector dialog handles authentication as part of setup. If it offers a way to send anAuthorization header, --bearer
will work; if it doesn’t, share without it.
It’s not showing up
Nothing in the inspector
Nothing in the inspector
Grok never reached the edge. Check the URL ends in
/mcp and that
heymcp share is still running.Connected, but no tools appear
Connected, but no tools appear
Look at the
LIST← row in the inspector to see what your server actually
returned, and check the handshake report.401 in the inspector
401 in the inspector
Your tunnel requires a bearer token that Grok isn’t sending. Restart without
--bearer.