X API v2
- URL
-
https://api.x.com/2 - Docs
- https://docs.x.com/x-api/overview
In the X Developer Console, create or open an app, then copy the app's Bearer Token from its keys/tokens page. The docs describe Bearer Token generation as part of app credentials in Apps and the quickstart in Make Your First Request.
This server does not support automatic client registration (no DCR or CIMD), so the MCP client cannot register itself. Create an OAuth app in the provider's developer settings, allow-list your MCP client's OAuth callback URL as a redirect URL, and give the client that app's client ID and secret. Then connect and approve access in the browser.
In the X Developer Console, create or open an app and copy its API Key and API Key Secret. For OAuth 1.0a user-context access, also obtain an Access Token and Access Token Secret for a user authorized against that app. X documents these app credentials in Apps and notes OAuth 1.0a user-context support in Authentication.