---
title: "X API MCP server: read posts, users and timelines from AI agents"
description: "Add the X API MCP server to an Aldena project with an X app's Bearer token, and agents search posts and read users and timelines on X."
url: "https://aldena.ai/mcp-servers/x-api"
---

# Let agents read what people say on X through the X API

X API MCP server. Add the X API MCP server to an Aldena project with an X app's Bearer token, and agents search posts and read users and timelines on X.

- **Sign-in**: Token header
- **Installs as**: `x-api`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-30

X is where many developer communities, customers and status updates move fastest, and the X API is how software reads it. The X API MCP server exposes that API to an agent: searching recent posts, reading users and their timelines, and following threads, with the App-only Bearer token Aldena sends in an `Authorization` header.

In an Aldena project that turns social listening into agent work with a record. After a release, an agent searches for posts about the new feature, sorts reports of bugs from general reactions, and files the reproducible ones as issues through the [Linear MCP server](https://aldena.ai/mcp-servers/linear). During an incident, it reads what affected users are posting and adds the timeline to the incident notes, so the team sees the customer side alongside the logs.

The App-only token reads public data without acting as anyone, which keeps the connection read-only: agents can draft a reply or an announcement, but a person publishes it. Every tool still gets its own row in the project's [permissions](https://aldena.ai/features/human-in-the-loop). For the X developer documentation, install the [X Docs MCP server](https://aldena.ai/mcp-servers/x-docs) beside it, and for scheduling posts across networks, see the [AdaptlyPost MCP server](https://aldena.ai/mcp-servers/adaptlypost).

## With X API, your agents can

- Search recent posts by keyword, hashtag or account
- Read a user's profile and their recent posts
- Follow a thread from its first post to the replies
- Track mentions of a product or release over time

## Try asking

- “Search X for posts about our product from the last week and sort the complaints from the praise.”
- “Read the recent posts of the three accounts that reported the outage and summarize what they saw and when.”
- “Find the X thread where people discussed our pricing change and list the objections that came up more than once.”

## Server

- **Server URL**: `https://api.x.com/mcp`
- **Website**: [x.com](https://x.com)
- **MCP docs**: [X API MCP docs](https://docs.x.com/tools/mcp)

## How to connect X API

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install X API.** Search for X API and press Install. Aldena adds it as `x-api`.
3. **Add your token header.** The install sends no X API credentials. Press Edit on the server, turn on Send an authentication header, and enter the Header name and Token the X API docs give: often `Authorization` and `Bearer <token>`.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [X Docs MCP server](https://aldena.ai/mcp-servers/x-docs): Search the X developer documentation.
- [AdaptlyPost MCP server](https://aldena.ai/mcp-servers/adaptlypost): Schedule social posts, answer the inbox, and read engagement analytics.
- [Zapier MCP server](https://aldena.ai/mcp-servers/zapier): Trigger actions across thousands of connected apps.
- [Zenable MCP server](https://aldena.ai/mcp-servers/zenable): Check code and configuration against policies.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### Which X token does Aldena send to the X API MCP server?

Your X app's App-only Bearer token, from the Keys and tokens page of the app in the X Developer Console. Press Edit on the installed server, turn on Send an authentication header, keep the Header name Authorization, and enter Bearer followed by that token.

### Can an agent post to X through the MCP server in Aldena?

No. An App-only Bearer token reaches read-only endpoints with no user context, so the server can search and read but cannot post, reply or like as you. Agents draft posts for a person to publish instead, which most teams prefer anyway.

### What is the difference between the X API and X Docs MCP servers?

X Docs searches the X developer documentation and needs no token. The X API server reads live data from X itself: posts, users and timelines. Engineers building on the X API often install both, one to read the docs and one to check real responses.
