Skip to main content
This guide connects a Strands Agents Python agent to the Xquik X Twitter data API. The agent can search tweets, read profiles, export followers and monitor accounts. Strands is the MCP client, and Xquik hosts the server.

Strands Agents prerequisites

  • Python 3.10 or later
  • An Xquik API key beginning with xq_
  • Xquik credits, because Xquik has no free plan
  • A model provider that Strands supports
  • A connected X account for private reads or writes
Public reads need no X Developer credentials. Authenticate through Xquik.

Install Strands Agents and MCP support

Set your key in the shell. Keep it out of source control.

Connect Strands Agents to Xquik

MCPClient opens the remote connection. Pass your key in the Authorization header. The read timeout gives long execute calls time to finish.
Keep the agent call inside the with block. The block closes the connection when it ends.

Xquik MCP tools in Strands Agents

Both search and execute run on Xquik’s servers. The agent should call search first, then execute. Searches and extractions charge only for delivered, unique, filter-matching results. An active monitor costs 30 credits an hour while it runs.

Keep X actions behind review

execute can run every operation your key allows. That includes posts, DMs and metered bulk jobs. To limit an agent to discovery, leave execute out of its tool list.