x-search-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| XAI_API_KEY | No | xAI API key. | |
| XAI_BASE_URL | No | API base URL used with XAI_API_KEY. | https://api.x.ai/v1 |
| X_SEARCH_MCP_MODEL | No | Model for depth=standard. | grok-4.7 |
| X_SEARCH_MCP_RETRIES | No | Retries on 5xx and network errors. | 1 |
| X_SEARCH_MCP_DEEP_MODEL | No | Model for deep and deep_max. | grok-4.20-multi-agent |
| X_SEARCH_MCP_XAI_BASE_URL | No | Base URL stored at OAuth login (must be on x.ai). | |
| X_SEARCH_MCP_TIMEOUT_SECONDS | No | Request timeout (doubled for deep depths). | 180 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| x_searchA | Search X posts, profiles, and threads with xAI's server-side X Search (Grok reads the posts and answers with citations). Handles Chinese queries well. Use for current X discussion, reactions, and account or thread context. Billing is per post fetched, so precise queries give better results for the same cost. If a call times out or returns no citations: do not resend the same query. Narrow it (date range, specific accounts, fewer topics per query), split it into sub-questions, then cross-check with another source (Exa, web search, or the X website in a logged-in browser). If the error says credits ran out, stop calling this tool and use those other sources. |
| x_search_statusA | Report whether this standalone X Search MCP has usable xAI credentials. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools serve entirely different purposes: x_search performs the search operation, while x_search_status only reports credential validity. There is no realistic scenario where an agent would confuse them, and the status tool is clearly framed as a diagnostic rather than a search variant.
Both names use a shared snake_case prefix (x_search, x_search_status), with the status tool predictably derived from the base name. The convention is simple and uniformly applied across the entire surface.
Two tools is on the thin side even for a single-capability server; the status check is a sensible addition but the surface still boils down to one real operation. It is not mismatched to the narrow purpose, but there is little room for an agent to choose or compose.
Search is covered, but there is no direct way to fetch a specific post, thread, or profile by ID, and no exposed parameter surface (date range, account filters, pagination) beyond what the description says to embed in the query. Agents hitting timeouts or empty citations are told to fall back to other sources rather than to a complementary tool in this server.