Labsco
MCP SERVER

Grok Search

by stat-guy

Run web search and page fetches through a Grok model you choose, and switch Claude Code's built-in WebSearch and WebFetch off while you do.

Web Search Engines
Summary
Web search becomes a model you pick and a platform you aim at, rather than the client's default.

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.

What it is

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.

What you get
  • 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
Requirements

An xAI API key in XAI_API_KEY.

Setup effort

One command plus a key — npx grok-search-mcp, then supply credentials