Grok-MCP-Claude
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Grok-MCP-ClaudeGenerate an image of a sunset over mountains"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Grok-MCP-Claude
Grok MCP server optimized for Claude Desktop — clean, single-file implementation using xAI's Grok for real-time web/X search and image generation.
Concept
Claude thinks, Grok searches.
Claude Desktop handles conversation, memory, and reasoning. Grok provides what Claude can't — real-time web search, X (Twitter) search, and image/video generation.

Related MCP server: computer-use-mcp
Features
Tool | Description |
| Real-time web and X (Twitter) search |
| Chat with vision, file, and code execution support |
| Multi-tool agent combining search, code execution, files, and images |
| Image generation with img2img support |
| Video generation with img2video and video2video support |
| Upload, list, retrieve, and delete files on xAI |
Requirements
Python 3.10+
Claude Desktop
Installation
git clone https://github.com/yourname/grok-mcp-claude.git
cd grok-mcp-claude
pip install -r requirements.txtConfiguration
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"grok": {
"command": "python",
"args": ["/path/to/grok-mcp-claude/grok.py"],
"env": {
"XAI_API_KEY": "your-api-key-here"
}
}
}
}Tool Reference
grok_search
Real-time search via web or X (Twitter).
Parameter | Default | Description |
| required | Search query |
|
|
|
|
| Model to use |
|
| Whitelist of domains (web) or handles (X) |
|
| Blacklist of domains (web) or handles (X) |
|
| Start date |
|
| End date |
|
| Return inline citations |
grok_chat
General-purpose chat with optional vision, file, and code execution.
Parameter | Default | Description |
| required | User message |
|
| Model to use |
|
| System prompt |
|
| xAI file IDs to attach |
|
| Local image paths |
|
| Image URLs |
|
| Previous response ID for stateful chat |
|
| Enable code execution |
grok_agent
Multi-tool agent. Combine web search, X search, code execution, files, and images freely.
Parameter | Default | Description |
| required | User message |
|
| Model to use |
|
| Enable web search |
|
| Enable X search |
|
| Enable code execution |
|
| Whitelist of domains or handles |
|
| Blacklist of domains or handles |
|
| xAI file IDs to attach |
|
| Local image paths |
|
| Image URLs |
|
| System prompt |
|
| Return inline citations |
|
| Max search iterations |
generate_image
Generate images. Pass image_path or image_url for img2img.
Parameter | Default | Description |
| required | Generation prompt |
|
| Model to use |
|
| Number of images |
|
| Local image for img2img |
|
| Image URL for img2img |
|
| e.g. |
generate_video
Generate videos from text, image, or video.
Parameter | Default | Description |
| required | Generation prompt |
|
| Model to use |
|
| Source image for img2video |
|
| Source video for video2video |
|
| Duration in seconds |
|
| Aspect ratio |
|
| Resolution |
manage_files
Manage files on xAI.
Action | Required params | Description |
|
| Upload a file |
| — | List uploaded files |
|
| Get file metadata |
|
| Get file content |
|
| Delete a file |
Models
DEFAULT_CHAT_MODEL = "grok-4-1-fast-non-reasoning"
DEFAULT_SEARCH_MODEL = "grok-4-1-fast-reasoning"
DEFAULT_IMAGE_MODEL = "grok-imagine-image"
DEFAULT_VIDEO_MODEL = "grok-imagine-video"License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that wraps the xAI Grok API, allowing Claude and other AI agents to delegate thinking, planning, and real-time search tasks to Grok. It provides a single tool with options for different use cases including web search, Twitter/X search, and multi-agent reasoning.Last updated227MIT
- Alicense-qualityAmaintenanceMCP server that enables Claude to control your computer, similar to Anthropic's computer use but easy to set up locally.Last updated534341MIT
- AlicenseAqualityDmaintenanceMCP server that bridges OpenAI's Agents SDK with Claude Code, enabling web search, file search, and computer use capabilities directly in your development environment.Last updated291MIT
- Flicense-qualityDmaintenanceA local MCP server providing free network access capabilities including HTTP requests, web search, webpage content extraction, and optional screenshots, designed for integration with Claude Desktop or Claude Code.Last updated
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for Grok Imagine AI video generation
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yukincom/grok-mcp-claude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server