Grok MCP
未认领MCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support
安装
claude mcp add grok-mcp -e XAI_API_KEY=your_api_key_here -- uv run --directory /path/to/Grok-MCP python main.py工具(22 个)
chat
standard chat completion with optional persistent history and multi-agent support.
chat_with_files
chat grounded on previously uploaded documents.
chat_with_vision
analyze local or remote images with a Grok vision model.
clear_chat_history
delete a session's local history file.
code_executor
solve tasks by running Python in a sandbox.
delete_file
delete a file by ID.
delete_stateful_response
delete a stored response by ID.
extend_video
extend an existing generated video with a follow-up prompt.
generate_image
create or edit images with Grok Imagine (multi-reference editing supported).
generate_video
text-to-video, image-to-video, or video editing with Grok Imagine.
get_chat_history
get a session's full transcript.
get_file
fetch file metadata by ID.
get_file_content
download file content as text.
grok_agent
unified agent that mixes files, images, web search, X search, and code execution.
list_chat_sessions
list saved sessions in chats/.
list_files
list uploaded files with sorting.
list_models
list all Grok language and image models with live pricing.
retrieve_stateful_response
fetch a stored response by ID.
stateful_chat
continue a server-side stored conversation via responseid.
upload_file
upload a local document.
web_search
autonomous web research with domain filters and citations.
x_search
autonomous search over X (Twitter) posts, with handle and date filters.