grok mcp commands, the config.toml paths and the /mcps keys below. The endpoint results above come from public HTTP probes and hostname lookups. Neither source check ran a Grok Build CLI command.
- Add
https://mcp.connectkey.ai/mcpto your client. - Sign in to ConnectKey.
- Pick a workspace.
- Allow access to that workspace.
Copy the MCP URL for Grok Build CLI
Prerequisites
- Grok Build CLI installed.
- A ConnectKey account.
Steps
- xAI’s documented command (not tested in Grok Build CLI): run
grok mcp add --transport http connectkey https://mcp.connectkey.ai/mcp. xAI documents this form for a remote server and says OAuth is handled automatically. - Add
--scope projectto write.grok/config.tomlin the current directory instead of your user configuration. - Alternatively declare the server in
~/.grok/config.tomlunder[mcp_servers.connectkey]withurlset tohttps://mcp.connectkey.ai/mcp. - On first use Grok opens a browser for OAuth: sign in to ConnectKey, pick a workspace and allow access (Untested: requires sign-in and a serving
/mcpendpoint). xAI says tokens are stored under~/.grok/mcp_credentials.json.
What to check
grok mcp listshows theconnectkeyserver (--jsonoutputs machine-readable data).- Inside the CLI,
/mcpsopens the MCP tab where you can see the server, toggle it withSpace, refresh withr, and authenticate OAuth servers withi(Untested: a listed server is not a tested connection).
If it fails
- Run
grok mcp doctor connectkey(orgrok mcp doctor connectkey --json) to diagnose configuration and connectivity. grok inspectshows every loaded server and where it came from; Grok also loads servers from~/.claude.json,.cursor/mcp.jsonand project.mcp.jsonfiles.- Probed 2026-11-25: on the staging MCP host,
/healthzand/readyzreturned 200 while/mcp,/.well-known/oauth-protected-resource, and/.well-known/oauth-authorization-serverreturned 404, and the production MCP host did not resolve, so connection attempts fail until/mcpserves.
Does the Grok Build guide apply to Grok chat or the xAI API?
No. xAI documents these MCP features for the Grok Build CLI. They do not establish how Grok chat, Grok Bot or the xAI API handles the same server. ConnectKey has not been tested in Grok Build.Does Grok Build need a chat prompt to register a remote server?
xAI documents a CLI command,grok mcp add, with an HTTP transport option. Its guide does not establish that a prompt in chat will configure ConnectKey.
Where does Grok Build save a project-scoped server?
Grok Build writes project-scoped settings to .grok/config.toml. That file identifies the configuration for the project, rather than for every project on the machine.How can I tell whether Grok Build imported a server?
xAI saysgrok inspect shows every loaded server and its origin. A matching server name alone does not tell you where the entry came from.
Where does Grok Build show MCP management and sign-in options?
xAI documents/mcps inside the CLI for managing servers and authentication (including i to authenticate OAuth servers). The management view is distinct from the command that adds a server.
When does Grok Build open a browser for remote OAuth?
xAI says the browser flow starts on first use. Adding a server entry is not the same as completing sign-in, and no ConnectKey authorization has been verified in this CLI.Evidence
- Status: documented
- Vendor documentation retrieved: 2026-11-25
- Real-client result: None recorded for Grok Build CLI. xAI’s public MCP page, last updated 2026-07-02, describes the commands, configuration paths and TUI keys; the public endpoint probes on 2026-11-25 only check HTTP responses (staging
/mcp,/.well-known/oauth-protected-resource, and/.well-known/oauth-authorization-serverreturned 404) and hostname resolution (the production MCP host did not resolve). None of these checks verify adding a server, signing in, listing or calling tools, or removing access in Grok Build. - xAI: MCP servers in Grok Build