Skip to main content

Overview

Grok Search MCP Server supports multiple search types, each optimized for different content sources. The search_type parameter determines which sources are queried and how results are processed.

Available Search Types

Search Type Determination

The server automatically determines the search type based on the tool called:
// index.js:841-853
let actualSearchType = search_type;
let searchHandles = handles;

if (toolName === "grok_web_search") {
  actualSearchType = "web";
} else if (toolName === "grok_news_search") {
  actualSearchType = "news";
} else if (toolName === "grok_twitter") {
  actualSearchType = "twitter";
  searchHandles = handles;
}

Search Parameters

All search types support these common parameters:
const searchParams = {
  mode: "on",
  return_citations: true,
  max_search_results: maxResults,
  sources: this.getSearchSources(searchType, handles)
};

Comparison Matrix

FeatureWebNewsTwitter/XGeneral
SourcesWeb onlyNews + WebX onlyAll three
SpeedFastFastFastModerate
Recency FocusMediumHighVery HighHigh
Handle FilteringNoNoYesNo
Best ForEvergreen contentCurrent eventsSocial sentimentComprehensive view
Citation TypesURLsNews URLsTweet URLsMixed
For time-sensitive topics, combine news or Twitter search types with date range filtering for optimal results.

Build docs developers (and LLMs) love