Grok MCP
UnclaimedMCP server for xAI’s Grok API with Web/X search, vision, image/video generation and file support
Install
claude mcp add grok-mcp -e XAI_API_KEY=your_api_key_here -- uv run --directory /path/to/Grok-MCP python main.pySet up this server
More in Search & Web
Browse the full directoryUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
22 of 22 tools
Documented tools (22)
From project documentation. A server handshake does not verify each tool’s description or behavior.
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.
Tool change history
FAQ
Questions about Grok MCP Server
- How do I connect Grok MCP Server to Claude?
- The listing records `claude mcp add grok-mcp -e XAI_API_KEY=your_api_key_here -- uv run --directory /path/to/Grok-MCP python main.py` as its setup step. Run it, then follow the repository's instructions for the client configuration; the listing names Claude Desktop, Claude Code as compatible clients.
- Is Grok MCP Server free?
- The listed licence is MIT. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can Grok MCP Server do?
- Grok MCP Server documents 22 tools to the agent, including chat, chat_with_files, chat_with_vision. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.