Grok MCP Server — Real X/Twitter Intelligence avatar
Grok MCP Server — Real X/Twitter Intelligence

Pricing

Pay per usage

Go to Apify Store
Grok MCP Server — Real X/Twitter Intelligence

Grok MCP Server — Real X/Twitter Intelligence

Access real X/Twitter data through xAI's Grok API. 10 tools: X search, X trends, chat, code generate/review/fix/explain, news, and analysis. Returns actual posts with real usernames and engagement metrics.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Quadruped

Quadruped

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

6 hours ago

Last modified

Categories

Share

Grok MCP Server — X Intelligence Platform

Real-time competitive intelligence and lead intent detection powered by Grok's native X access. The only Apify Actor with real X/Twitter data via xAI's native x_search tool.

What does Grok MCP Server do?

This Actor provides 14 tools for X/Twitter intelligence, AI chat, code assistance, and content analysis — all powered by xAI's Grok models.

Key capabilities:

  • Brand Monitoring — Track mentions with sentiment analysis
  • Lead Intent Detection — Find people actively seeking solutions
  • Competitive Intelligence — Compare brands side-by-side
  • Trend Analysis — See what's trending on X
  • AI Chat — Conversational AI with Grok
  • Code Tools — Generate, review, fix, and explain code

Why use this Actor?

FeatureThis ActorTraditional Scrapers
Real X/Twitter data✅ Native API❌ Scraping
Sentiment analysis✅ Built-in❌ Manual
Intent detection✅ AI-powered❌ None
Rate limits✅ Official limits⚠️ Blocks common
Data freshness✅ Real-time⚠️ Cached

How much does it cost?

xAI API is free until June 2025. After that, costs are based on xAI's token pricing. Typical runs use 1,000-10,000 tokens depending on the tool.

Apify platform costs are separate and based on compute units used (~0.01-0.05 CU per run).

Input

FieldTypeRequiredDefaultDescription
xaiApiKeyStringYesYour xAI API key from console.x.ai
modelStringNogrok-2-latestModel for chat/code tools
xModelStringNogrok-4-fastModel for X/Twitter tools (must be grok-4 family)
maxTokensIntegerNo4096Maximum response tokens (256-131072)
temperatureNumberNo0.7Randomness: 0=deterministic, 2=creative
toolCallObjectYesThe tool to execute (see below)

Tool Call Structure

{
"name": "grok_x_monitor",
"arguments": {
"query": "your search term",
"hours_back": 24
}
}

Available Tools

X/Twitter Intelligence Tools

🔍 grok_x_monitor — Brand Monitoring

Monitor brand mentions with sentiment analysis.

Arguments:

FieldTypeDefaultDescription
queryStringBrand or search term
sentiment_filterStringanypositive, negative, neutral, or any
min_engagementInteger0Minimum likes + retweets
hours_backInteger24How far back to search
limitInteger20Max results

Example:

{
"name": "grok_x_monitor",
"arguments": {
"query": "Acme Corp",
"sentiment_filter": "negative",
"min_engagement": 10,
"hours_back": 24,
"limit": 20
}
}

🎯 grok_x_intent — Lead Intent Detection

Find people expressing buying signals.

Arguments:

FieldTypeDefaultDescription
product_categoryStringProduct/service category
intent_typesArrayallTypes of intent to detect
exclude_brandsArray[]Brands to exclude
hours_backInteger48How far back to search
limitInteger25Max results

Intent Types:

  • seeking_recommendation — "anyone recommend a..."
  • expressing_frustration — "so frustrated with..."
  • comparing_options — "X vs Y?"
  • ready_to_switch — "thinking of switching from..."
  • asking_for_help — "how do I..."

Example:

{
"name": "grok_x_intent",
"arguments": {
"product_category": "CRM software",
"intent_types": ["seeking_recommendation", "ready_to_switch"],
"exclude_brands": ["Salesforce"],
"hours_back": 48
}
}

⚔️ grok_x_compete — Competitive Intelligence

Compare 2-5 brands side-by-side.

Arguments:

FieldTypeDefaultDescription
brandsArray2-5 brand names to compare
aspectStringgeneralFocus area (e.g., "customer support")
hours_backInteger168How far back to search

Example:

{
"name": "grok_x_compete",
"arguments": {
"brands": ["Slack", "Microsoft Teams", "Discord"],
"aspect": "enterprise features",
"hours_back": 168
}
}

🚨 grok_x_alerts — Webhook-Ready Monitoring

Get data formatted for automation tools.

Arguments:

FieldTypeDefaultDescription
alert_nameStringName for this alert
queryStringSearch query
sentiment_filterStringanySentiment to match
min_engagementInteger0Minimum engagement
alert_thresholdInteger1Trigger when this many found

Example:

{
"name": "grok_x_alerts",
"arguments": {
"alert_name": "Competitor Complaints",
"query": "hate @competitor",
"sentiment_filter": "negative",
"min_engagement": 5,
"alert_threshold": 3
}
}

Direct X/Twitter search without analysis.

Arguments:

FieldTypeDescription
queryStringSearch query
limitIntegerMax results

Get trending topics from X.

Arguments:

FieldTypeDescription
categoryStringCategory: general, tech, business, sports, entertainment
limitIntegerMax results

AI Chat & Analysis Tools

ToolDescriptionKey Arguments
grok_chatChat with Grokmessage
grok_newsLatest news on topictopic, limit
grok_analyzeSummarize/critique contentcontent, analysis_type

Code Tools

ToolDescriptionKey Arguments
grok_code_generateGenerate codedescription, language
grok_code_reviewReview for issuescode, focus
grok_code_fixFix broken codecode, error
grok_code_explainExplain codecode

Utility Tools

ToolDescription
grok_statsGet usage statistics

Output

Results are saved to the default dataset. Structure varies by tool.

Example output from grok_x_monitor:

{
"type": "tool_result",
"tool": "grok_x_monitor",
"success": true,
"result": {
"query": "Acme Corp",
"sentiment_summary": {
"positive": 12,
"negative": 3,
"neutral": 5,
"score": 0.45
},
"posts": [
{
"text": "Love the new Acme update!",
"author": "@user123",
"sentiment": "positive",
"engagement": { "likes": 45, "retweets": 12 },
"intent": "praise",
"timestamp": "2025-01-15T10:30:00Z"
}
],
"themes": ["product update", "customer satisfaction"]
},
"timestamp": "2025-01-15T12:00:00Z"
}

Use Cases

Brand Health Dashboard

Run grok_x_monitor daily to track sentiment over time.

Sales Prospecting

Run grok_x_intent hourly to find high-intent leads.

Competitive Analysis

Run grok_x_compete monthly to identify positioning opportunities.

Crisis Detection

Run grok_x_alerts every 15 minutes with webhook integration.

Integrations

  • Slack — Use grok_x_alerts output directly
  • Zapier/Make — Webhook payload included in alerts
  • CRM — Push leads from grok_x_intent to your pipeline
  • Analytics — Track sentiment scores over time

Limitations

  • X/Twitter tools require grok-4-fast or grok-4 model
  • xAI API rate limits apply (see xAI documentation)
  • Maximum 100 posts per search query
  • Historical data limited to ~7 days for most queries

Getting Your API Key

  1. Go to console.x.ai
  2. Sign in with your X account
  3. Create a new API key
  4. Copy the key to the Actor input

The API is free until June 2025.

Support

Questions or issues? Open an issue on the Actor's page or contact the developer.


Signature: [Claude-Jaclyn]