web_search takes a platform hint and a result-count range, so the query is something you tune, and switch_model persists which Grok model handles both search and fetch — useful when you want to compare answer quality against a faster model. toggle_builtin_tools is the unusual one: it edits a deny list so the host client's own WebSearch and WebFetch stop competing, which ties this server to Claude Code in a way that web_search, web_fetch, switch_model and get_config_info do not.
A search and fetch server backed by an xAI model, with a switch for which model answers and a toggle over the host client's own web tools.
- Natural-language web search returned as a JSON string, bounded by min_results and max_results and optionally focused on a platform such as Twitter, GitHub or Reddit
- A URL retrieved and parsed into a structured Markdown document, for pages that are not behind authentication or paywalls
- The default Grok model switched by model ID and persisted across sessions
- A configuration read-out that also tests connectivity by calling the /models endpoint
- Claude Code's built-in WebSearch and WebFetch blocked, allowed again, or reported on
An xAI API key in XAI_API_KEY.
One command plus a key — npx grok-search-mcp, then supply credentials
