X
Give the Sazabi agent tools to search posts and access real-time X data from your X developer app.
About
This is an MCP connector that gives the Sazabi agent tools from X's hosted MCP server at https://api.x.com/mcp. X does not support OAuth dynamic client registration for this server, so you supply your app's app-only Bearer Token, which Sazabi sends in the Authorization header. The hosted server runs in app-only mode: the agent can search and read X data, but cannot post or act as a user.
What the agent can do:
- Search X posts and retrieve real-time data
- Look up users, posts, and engagement metadata
- Browse user timelines, mentions, and trends
Prerequisites
- An X Developer account with API access
- An X app with an app-only Bearer Token (from Keys and tokens)
Set up in the dashboard
Configure connectors in the dashboard under Settings > MCP connectors.
Open the connector
Find X in Settings > MCP connectors.
Add your Bearer Token
Go to the X Developer Portal, open the project and app you want Sazabi to use, and confirm the app has access to the API tiers you need. In your app's Keys and tokens, find the app-only Bearer Token and copy it (regenerate it if you don't have it saved). Sazabi stores it securely and sends it as Authorization: Bearer <token> to X's hosted MCP endpoint (https://api.x.com/mcp).
Set up with the CLI
X authenticates with an app-only Bearer Token, and sazabi mcp-connectors connect only supports OAuth providers — so set up this connector in the dashboard first (above). Once it's connected, the Sazabi CLI can inspect and manage it (installed and authenticated — see sazabi mcp-connectors reference):
sazabi mcp-connectors list
sazabi mcp-connectors details <connection-id>Find the connection ID with sazabi mcp-connectors list. To rotate the stored credentials later, use sazabi mcp-connectors update-credentials <connection-id>.
Verify
Open the connector's connection page under Settings > MCP connectors and confirm Sazabi lists the tools it discovered. Then, in a thread, ask the agent to use one of those tools and confirm it runs. If no tools appear, confirm the Bearer Token is correct.
Troubleshooting
No tools discovered — Confirm the app-only Bearer Token is valid and has not been regenerated since you last connected. Re-enter it from Settings > MCP connectors.
Connection shows needs attention — The authorization or key may have expired or been revoked; reconnect from Settings > MCP connectors.