# X MCP Server

> Connects AI assistants to the X (Twitter) API via an official hosted MCP server. Exposes 200+ read-only endpoints for post search, timeline reads, profile lookups, and trend analysis. No write access.

## Facts

- **Provider:** [X](https://x.com)
- **Homepage:** https://devcommunity.x.com/t/announcing-the-hosted-x-mcp/269558
- **Official:** Yes (X)
- **Verified:** Verified: link and access path checked, Nov 2026
- **Last checked:** 2026-11-02
- **Endpoint health:** Live (`ok`) · checked 2026-11-28T20:19:19Z
- **Access methods:** mcp
- **Auth:** OAuth 2.0 (`oauth2`)
- **Categories:** Communication & Messaging (`communication`)
- **Tags:** x, twitter, social-media, mcp, hosted, read-only, official, oauth
- **Streaming:** No · **Push notifications:** No

## Use it now

### MCP
- **Hosted endpoint:** `https://api.x.com/mcp`
- **Local command:** `npx -y @xdevplatform/xurl mcp https://api.x.com/mcp`
- **Claude Code:** `claude mcp add --transport http x-mcp https://api.x.com/mcp`

```json
{
  "mcpServers": {
    "x-mcp": {
      "url": "https://api.x.com/mcp"
    }
  }
}
```
- **Docs:** https://docs.x.com/tools/mcp

## Try this first

Ask your assistant, with X MCP Server connected:

- Use X MCP Server to search public X posts: ‹what you're looking for›
- Use X MCP Server to read a user's home and profile timelines: ‹what you need›

## Limitations

- needs a X sign-in

## Skills (3)

- **Post Search** (`post-search`): Searches public X posts and returns matching results with author, engagement, and timestamp metadata for analysis.
- **Timeline Reads** (`timeline-reads`): Reads a user's home and profile timelines using their own account permissions granted through OAuth authorization.
- **Trend Analysis** (`trend-analysis`): Surfaces trending topics and conversation activity so agents can monitor real-time signals on the platform.

## For agents

- Listing JSON: https://agentswitchboard.dev/api/agents/x-mcp
- Alternatives JSON: https://agentswitchboard.dev/api/agents/x-mcp/alternatives
- MCP server (organic, no auth): https://agentswitchboard.dev/api/mcp
- Site guide: https://agentswitchboard.dev/llms.txt · Full index: https://agentswitchboard.dev/llms-full.txt
- Canonical HTML page: https://agentswitchboard.dev/agents/x-mcp
