Overview
Use the X Live Search MCP server from your ATXP-powered agent to search X (formerly Twitter) for posts and conversations using xAI’s Grok models. The server provides advanced filtering capabilities and returns AI-generated summaries with citations to source posts.Example prompts
- “What are the latest updates from Stripe?”
- “Find popular tweets about AI from the last week with at least 100 likes”
- “Search for posts from @elonmusk about SpaceX”
Tools
x_live_search
x_live_search
Searches X (formerly Twitter) for posts matching the query and optional filters. Returns an AI-generated summary of findings with citations to source posts.
Arguments
Accepts a JSON object with the following properties:The search query to execute on X (formerly Twitter).
List of X handles to include in search (up to 10). Format without @ symbol, e.g., [“elonmusk”, “OpenAI”]
List of X handles to exclude from search (up to 10). Format without @ symbol.
Minimum number of favorites (likes) a post must have.
Minimum number of views a post must have.
Start date for posts in ISO8601 format (YYYY-MM-DD).
End date for posts in ISO8601 format (YYYY-MM-DD).
Response
Returns a JSON object with the following properties:The status of the search operation. Returns “success” when the search completes successfully, or “error” on failure.
The original search query that was executed.
AI-generated summary of the search findings. Only present when status is “success”.
Array of X post URLs used as sources for the summary. Only present when status is “success”.
Error details if the search failed. Only present when status is “error”.
Usage
1
Define the X Live Search service
Create a reusable service configuration that points to the MCP server and standardizes how you pass arguments and read results. This lets your agent easily interact with the X Live Search tool in a consistent manner.
2
Create an ATXP client
- Using an ATXP account
- Using a Base account
- Using a Solana account
- Using a Worldchain account
- Using a Polygon account
Create a client using an ATXP account by importing the ATXP client SDK and other dependencies.
3
Use the X Live Search service in your agent
Call the X Live Search tool by passing your search query and optional filters as arguments.Read the response using the
getResult
method.You should see the search summary and citations printed in your console.