Integration · Developer tools
Connect Claude & ChatGPT to Grok by xAI
Give your AI assistant access to Grok models through your own xAI account. Claude or ChatGPT can send a question to Grok and get its reply, generate or edit images, start a video generation, create embeddings and count tokens. It can also list the available models and read files uploaded to your xAI account.
Free plan, no credit card. Takes about a minute.
Try asking
“Ask Grok for its take on this product description.”
The AI sends the text to a Grok model and shows Grok's reply next to its own.
“Generate three images of a red bicycle on a Copenhagen street.”
It asks the image model for three images from the prompt and returns them.
“Make the background of this image white.”
It sends the image and the instruction to image editing and returns the edited image.
What your AI can do
Chat with Grok
Send messages to a Grok model with your choice of model, temperature and max tokens, and count tokens before you send.
Images and video
Generate images from a prompt, edit existing images, and start video generations and check their results.
Models, files and embeddings
List language, image and video models, read uploaded files, and create embeddings for text.
“Start a 10-second video of waves on a beach.”
It starts the video generation, gets a request ID and then checks the status with that ID.
“Which Grok models can I use, and what do they cost?”
It lists the chat models available to your API key, with pricing and context limits.
“How many tokens is this document for Grok?”
It tokenizes the text for the model you pick and returns the count.
14 tools for Grok by xAI
These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.
chat_completionChanges dataAsk a Grok model a question. Pass `messages` (role + content list) and optionally `model`, `temperature` and `max_tokens`. Returns the model's reply.count_tokensChanges dataTokenize `text` for a given `model` to see how many tokens it uses.create_embeddingChanges dataCreate vector embeddings for text `input` with an embedding `model`.edit_imageChanges dataEdit an existing image according to a text `prompt`. Pass the source `image` (or `images`).generate_imageChanges dataGenerate an image from a text `prompt`. Optionally set `model`, `n` (number of images) and `aspect_ratio`. Returns image URLs or data.generate_videoChanges dataStart generating a video from a text `prompt` (optionally with a starting `image`, `duration` and `aspect_ratio`). Returns a request ID; check it with get_video.get_fileGet metadata for one uploaded file by `file_id`.get_file_contentDownload the content of an uploaded file by `file_id`.get_language_modelGet details for one language model by `model_id`.get_videoGet the status and result of a video generation by `request_id`.list_filesList files uploaded to your xAI account.list_image_modelsList the image generation models available to this API key.list_language_modelsList the Grok chat models available to this API key, with pricing and context limits.list_video_modelsList the video generation models available to this API key.
Set up in three steps
- 1
Pick the app
Create a free PipMCP account and choose Grok by xAI from the app list.
- 2
Paste your key
Paste your xAI API key. Sign in to the xAI console (console.x.ai), open the API Keys page, create an API key and paste it here.
- 3
Add the link to your AI
You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:
- Click your name, then Settings › Connectors › Add custom connector.
- Paste your link as the Remote MCP server URL.
- Switch it on from the + menu in a chat.
Questions
What can the AI do in Grok by xAI?
The AI can send chat messages to Grok models, generate and edit images, start video generations and check their status, create embeddings and count tokens. It can list language, image and video models and read the metadata and content of files uploaded to your xAI account.
Does the AI see my xAI API key?
No. Your xAI API key is encrypted at rest and never shown to the AI. After you save it, it is not shown again, not even to you. The AI only sees the results of the tools it calls.
Can I control what the AI is allowed to do?
Yes. You choose which tools are switched on, for example chat without image or video generation. Every call to Grok uses your xAI account, so these tools can require your approval before they run. Every tool call is logged.
Does it work with ChatGPT?
Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.
What does it cost?
PipMCP has a free plan with no credit card required. Paid plans bill per completed task. You also need your own xAI account. Grok usage is billed by xAI on your own xAI account, so anything xAI charges is between you and xAI.
Why connect Grok to Claude or ChatGPT?
It lets the assistant you already use call Grok models from the same chat, for example to get a second answer, generate images or create embeddings. Requests use your own xAI API key and the models available to it.
Related integrations
Let your AI work in Grok by xAI today.
Start free. Your key stays encrypted, and you decide what the AI may do.
Connect Grok by xAI freePipMCP is not affiliated with Grok by xAI. Product names are trademarks of their owners.






