MCP server for xAI Grok API supporting chat, vision, image/video generation, web/X search, code execution, and file management.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Grok MCP.
chatstandard chat completion with optional persistent history and multi-agent support.
chat_with_visionanalyze local or remote images with a Grok vision model.
chat_with_fileschat grounded on previously uploaded documents.
stateful_chatcontinue a server-side stored conversation via `response_id`.
retrieve_stateful_responsefetch a stored response by ID.
delete_stateful_responsedelete a stored response by ID.
MCP server for xAIβs Grok API with Web/X search, vision, image/video generation and file support.
Add this to your Claude Desktop configuration file:
Run this command from inside the project directory:
Or if you have a .env file with your key:
Verify it's registered:
Claude Desktop can't send uploaded images in the chat to an MCP tool. The easiest way to give access to files directly from your computer is official Filesystem MCP server. After setting it up youβll be able to just write the imageβs file path (such as /Users/mert/Desktop/image.png) in chat and Claude can use it with any vision chat tool.
For stdio:
Docker:
Mcp Inspector:
Each tool has a full docstring in src/server.py with its arguments and return format. MCP client surfaces those directly, so this list is just a quick map of what's available.
Note: For using images and files, you must provide paths to chat. See Filesystem MCP (Optional) for setup.
chat β standard chat completion with optional persistent history, multi-agent support,
and a per request service_tier.chat_with_vision β analyze local or remote images with a Grok vision model.chat_with_files β chat grounded on previously uploaded documents.stateful_chat β continue a server-side stored conversation via response_id.retrieve_stateful_response β fetch a stored response by ID.delete_stateful_response β delete a stored response by ID.web_search β autonomous web research with domain filters and citations.x_search β autonomous search over X (Twitter) posts, with handle and date filters.code_executor β solve tasks by running Python in a sandbox.grok_agent β unified agent that mixes files, images, web search, X search, code execution,
and server-side image generation. Generated images are written to images/.generate_image β create or edit images with Grok Imagine (multi-reference editing supported).
Pass save=true to write the results to images/ instead of returning temporary URLs.generate_video β text-to-video, image-to-video, or video editing with Grok Imagine.extend_video β extend an existing generated video with a follow-up prompt.upload_file β upload a local document.list_files β list uploaded files with sorting.get_file β fetch file metadata by ID.get_file_content β download file content as text.delete_file β delete a file by ID.list_chat_sessions β list saved sessions in chats/.get_chat_history β get a session's full transcript.clear_chat_history β delete a session's local history file.list_models β list all Grok language and image models with live pricing.This project is open source and available under the MIT License.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/merterbak-grok-mcp)<a href="https://allmcps.com/mcp/merterbak-grok-mcp"><img src="https://allmcps.com/api/badge/merterbak-grok-mcp?style=directory" alt="Grok MCP on AllMCPs" /></a>