H
Hosted X MCP
Details
- Endpoint
-
https://api.x.com/mcp - Transport
- streamable-http
- Docs
- https://docs.x.com/tools/mcp
Authentication
$ xurl mcp https://api.x.com/mcp 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.