Connect PrimaryAPI’s MCP server and your agent can search X, read profiles, posts, replies and whole threads, and check what is trending, all with one account.
Add the URL and sign in, with no key to copy. An API key works too. You only pay when data comes back.
Server URL
claude mcp add --transport http primaryapi \
https://api.primaryapi.com/mcpRun it in a terminal, then type /mcp in Claude Code to sign in.
Ask your agent
Get the replies to this post and tell me which objections come up most: <post URL>
X APIs
Your agent runs each one with run_api and its name. Prices are in credits, from 1 credit per call, and a call that fails costs nothing.
X is a trademark of its owner. PrimaryAPI is not affiliated with X.
How it works
Connected to the server, the agent lists the X APIs or searches for what it needs, reads the chosen API’s input schema, and runs it on your workspace’s credits. You set the spend limit when you approve its sign-in, or on its key, so it can only spend what you allow.
What an MCP server is, and every tool it has · X in the API reference
// Find every X API. Free.
{
"name": "list_apis",
"arguments": {
"platform": "twitter"
}
}
// Run one. This spends credits.
{
"name": "run_api",
"arguments": {
"sku": "twitter.replies",
"input": {
"url": "https://x.com/NASA/status/1846987139428634858"
}
}
}Yes. Search takes X’s advanced search syntax, such as from: and since:, and returns posts with their author and engagement, a page at a time.
Yes. It resolves the thread a post belongs to, from the first post through the author’s own continuations, and it can list the replies to any post.
No. These APIs read public X data only, so an agent can research and monitor but not post, like or follow.
No. PrimaryAPI runs this MCP server and is not affiliated with X. It gives your agent public X data through PrimaryAPI’s APIs, next to every other platform in the catalog.
No. Your agent signs in to PrimaryAPI once, or uses one PrimaryAPI key, for every X API on this page and for the rest of the catalog. There is no X app to register.
Connecting and browsing are free. Each X API above has its own price in credits, and you only pay when data comes back.
Add one URL to your MCP client and sign in. Prefer a key? Make one with a spend limit in the dashboard.