grok-mcp
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-mcpwhat are the latest trends in AI research? use web search"
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
MCP server that wraps the xAI Grok API. Lets Claude and other AI agents delegate thinking, planning, and real-time search to Grok.
Setup
npm install -g grok-mcpOr use directly with npx:
npx grok-mcpYou need an xAI API key from console.x.ai.
Configure in Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"grok": {
"type": "stdio",
"command": "npx",
"args": ["grok-mcp"],
"env": {
"XAI_API_KEY": "your-xai-api-key"
}
}
}
}Tool: ask_grok
Single tool with options for different use cases.
Parameters
Parameter | Type | Required | Description |
| string | yes | The question or task for Grok |
| string | no | Custom system prompt |
| string | no | Model to use (default: |
| boolean | no | Enable real-time web search |
| boolean | no | Enable X/Twitter search |
Available Models
grok-4.20-reasoning— flagship reasoning (default)grok-4.20-non-reasoning— fast, no reasoninggrok-4.20-multi-agent— multi-agent mode, great for architecture and planninggrok-4.1-fast-reasoning— cheaper reasoninggrok-4.1-fast-non-reasoning— cheapest, fast
Examples
Ask a question:
prompt: "What are the trade-offs between microservices and monoliths?"Deep architecture planning (multi-agent):
prompt: "Design a system architecture for a real-time collaborative editor"
model: "grok-4.20-multi-agent"Search the web:
prompt: "What happened in tech news today?"
web_search: trueSearch X/Twitter:
prompt: "What are people saying about the new React release?"
x_search: trueLicense
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/PKWadsy/grok-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server