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-mcpsummarize X posts about Rust programming from @rustlang"
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
FastMCP server for searching X (Twitter) via the xAI Grok API.
Uses the xAI Responses API with the x_search server-side tool — Grok autonomously searches X, analyses results, and returns a grounded answer with citations.
Tools
search_x
Search X posts and get a summarised answer with source citations.
Parameter | Type | Default | Description |
|
| required | Natural-language search query |
|
|
| X usernames to restrict search to (max 10) |
|
|
| X usernames to exclude (max 10) |
|
|
| Start date filter (ISO 8601, e.g. |
|
|
| End date filter (ISO 8601) |
|
|
| Analyse images in posts |
|
|
| Analyse video clips in posts |
|
|
| Grok model to use |
|
|
| Custom system prompt |
|
|
| Sampling temperature (0-2) |
Returns: { text, citations?, model, usage }
Related MCP server: grok-mcp-server
Setup
Get an API key from console.x.ai
Copy the env template and add your key:
cp .env.example .env # edit .env with your XAI_API_KEYInstall dependencies:
uv sync
Usage with Claude Code
Add to your Claude Code MCP config (~/.claude/settings.json or project .claude/settings.json):
{
"mcpServers": {
"grok": {
"command": "uv",
"args": ["run", "--directory", "/path/to/grok", "python", "server.py"]
}
}
}Model Options
Model | Context | Input $/1M | Output $/1M | Notes |
| 2M | $0.20 | $0.50 | Default — fast, cheap, great for search |
| 256K | $3.00 | $15.00 | Flagship reasoning |
| 128K | $2.00 | $10.00 | Stable general purpose |
Live search costs an additional ~$0.025 per source retrieved.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables searching X (formerly Twitter) using xAI's Responses API with support for filtering by handles, date ranges, and media understanding, returning structured results with citations.Last updated1301MIT
- Alicense-qualityFmaintenanceSearch X (formerly Twitter) in real-time from your AI assistant using xAI's Grok API, with no X API account required.Last updated29MIT
- AlicenseAqualityDmaintenanceEnables real-time search of X.com (Twitter) posts, users, threads, and trends via xAI's Grok API, directly from Claude.Last updated54MIT
- Flicense-qualityCmaintenanceEnables real-time search of X (Twitter) posts, user timelines, and trends using either xAI's Responses API or the official X API v2.Last updated4
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
Twitter/X, Instagram, Reddit & TikTok data for AI agents. Billions of posts. No API keys.
AI-agent search API: Google, YouTube, Amazon, Reddit, TikTok, TikTok Shop, Instagram, X, LinkedIn
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/Pantainos-Toolkit/grok-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server