T

twitter.com

Twitter, now branded as X, is a social networking platform for publishing and consuming short-form posts, media, conversations, and related account and advertising data. Its developer platform provides programmatic access to X content and account capabilities through APIs and AI-tool integrations.

5 integrations · MCP · REST · CLI

twitter.com exposes two documented HTTP API generations (current v2 and legacy v1.1), plus hosted MCP endpoints for the API and docs, and an official `xurl` CLI used to authenticate and bridge MCP access.

discovered 1d ago
MCP servers2
REST · OpenAPI2
CLI1
Credentials
X API bearer tokenbearerGet token

Create an app in the X Developer Console and use the quickstart in Make your first request to obtain API credentials. The X API v2 OpenAPI defines a BearerToken security scheme, and X's hosted MCP announcement says the bridge injects a fresh Bearer token after OAuth login. For MCP, the easiest path is to create an app with OAuth 2.0 enabled in the console, register redirect URI http://localhost:8080/callback, then authenticate through xurl as described in Announcing the hosted X MCP.

X OAuth app (client ID and client secret)oauth2Set up OAuth

Create an app in the X Developer Console. For the hosted MCP flow, X documents creating an app with OAuth 2.0 enabled, registering redirect URI http://localhost:8080/callback (or setting REDIRECT_URI), and placing CLIENT_ID and CLIENT_SECRET in the MCP client config before running xurl mcp https://api.x.com/mcp as described in Announcing the hosted X MCP. On first run, xurl opens a browser for one-time OAuth login and caches/refreshes the token.

conventions · 0/8 published

Publish these signals → /publishing