The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Grok MCP listing page.
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.