x-search
x-search-mcp
Un wrapper MCP stdio ligero alrededor de la herramienta x_search del lado del servidor de xAI.
El servidor lee su configuración upstream de las variables de entorno y reenvía cada llamada search a un endpoint compatible con Responses de OpenAI/xAI. Está diseñado para funcionar tanto con el endpoint oficial de xAI como con middleware como CLIProxyAPI que implementa el mismo protocolo Responses + x_search.
Interfaz MCP
Nombre del servidor:
x-searchTransporte: stdio
Herramienta:
search
Argumentos de la herramienta:
Campo | Obligatorio | Predeterminado | Notas |
| sí | — | Solicitud de búsqueda para Grok |
| no | omitido | Máx. 20; mutuamente excluyente con |
| no | omitido | Máx. 20; mutuamente excluyente con |
| no | omitido | Incluye |
| no | omitido | Incluye |
| no |
| Se pasa a |
| no |
| Se pasa a |
El estado del filtro de handles es una de tres opciones: sin filtro (predeterminado), una lista de permitidos o una lista de excluidos. Proporcionar ambas listas se rechaza.
Related MCP server: X Search MCP Server
Entorno
El cliente MCP proporciona exactamente tres ajustes upstream al proceso iniciado:
XAI_BASE_URL— por ejemplohttps://api.x.ai/v1o una URL base de middleware compatible con OpenAI/xAI que termine en/v1XAI_MODEL— por ejemplogrok-4.6XAI_API_KEY— credencial de tipo bearer aceptada por el upstream configurado
La implementación solo usa la API de Responses. Envía una herramienta x_search nativa y fuerza el uso de la herramienta con tool_choice: "required".
Instalación / ejecución
Para clientes que admitan servidores MCP stdio, ejecuta directamente desde GitHub:
npx -y github:sandlong/x-search-mcpy proporciona las tres variables en la configuración env de ese servidor MCP. Por ejemplo:
{
"command": "npx",
"args": ["-y", "github:sandlong/x-search-mcp"],
"env": {
"XAI_BASE_URL": "https://api.x.ai/v1",
"XAI_MODEL": "grok-4.6",
"XAI_API_KEY": "..."
}
}Desarrollo
npm install
npm run typecheck
npm test
npm run buildComportamiento
Sin capa de compatibilidad con Chat Completions.
Sin reescritura de resultados ni limpieza de citas; el texto de salida de xAI/middleware se devuelve tal como se recibe.
Los cuerpos de respuesta upstream no-2xx se devuelven al cliente MCP tal cual.
Sin servidor HTTP, base de datos ni estado persistente.
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
- AlicenseNot gradedqualityAmaintenanceLive X (Twitter) and web search for any coding agent through your existing Grok subscription. Exposes a grok_search MCP tool, so no X API key or X developer account is needed.3125Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables searching X (Twitter) posts, discussions, trends, and web content via Grok API using natural language.231MIT
- AlicenseAqualityBmaintenanceMCP server for live X/Twitter and web search, driven by your locally logged-in Grok CLI and leveraging your X Premium or SuperGrok subscription quota.31MIT
- AlicenseCqualityCmaintenanceEnables Claude or any MCP client to call Grok (xAI) for answers via a simple, phone-first tool.1Apache 2.0
Related MCP Connectors
Agentic search over your Dewey document collections from any MCP-compatible client.
Serper MCP — wraps the Serper Google Search API (serper.dev)
x402-gated web search gateway. Tools: search, search_enriched.
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/sandlong/x-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server