Connect to the hosted service
In your client, select remote MCP (Streamable HTTP) and enterhttps://grok.mcp.acedata.cloud/mcp as the server address. Select OAuth, then follow the browser prompts to sign in to Ace Data Cloud and authorize access.
If using an application API key, select the application used for Grok on the application management page. Check that its allowed APIs include the conversation, video generation, or task query endpoints you intend to use, and confirm the balance. In the client’s private credential settings, set the request header to
Authorization: Bearer <应用 API Key>. Applications and API Keys
Using an application key with Gemini CLI and OpenCode
First, set the environment variableACEDATACLOUD_API_TOKEN to the application API key in the terminal where you launch the client. The following commands use macOS or Linux shell quoting and save a reference to the variable.
For OpenCode 1.x, add a service named
grok to the mcp object in your personal opencode.json. Set type to remote, url to the address above, oauth to false, and headers.Authorization to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x configuration
Connect locally via stdio
Install uv, open the local MCP configuration in Claude Desktop’s developer settings, and merge the following entries into your user configuration. Replace the placeholder with your application API key, save, and restart the client. Other clients that support stdio can also run theuvx mcp-grok command and pass the key to the process as an environment variable.
Verify the connection and available tools
Open the client’s tool list and find Grok. First, ask the assistant to callgrok_list_models to list the chat and video models separately. This query checks whether the client has loaded the tools without submitting a production request.
Usage examples
To write a storyboard, enter: “Usegrok_chat_completions to write three storyboard descriptions of a street after the rain.” Read the text directly from the chat response.
To generate a video, enter: “Use Grok to turn my reference image into a video with the camera slowly moving forward.” Provide an accessible image URL as image_url and ask the assistant to choose a model that supports image-to-video. If the response contains a pending task_id, use grok_get_task to query the same task and retrieve the video URL once it succeeds. If it fails, check the task’s error message.
Before making a request, check the service pages for current pricing and availability. Grok service · Chat API · Video generation API · Task query API
