Get and Configure XAgent API Key
You need an API key from getxagent.com to use x-mcp or the HTTP MCP endpoint.
Register at getxagent.com (Sign up). After logging in, open the Dashboard to create an API key.
In x-mcp: pass the key via the TWITTER_API_KEY environment variable or as a command-line argument. In your MCP client (Cursor, Claude Desktop, etc.), set the same env or args when starting the MCP server.
Keep your API key private. Do not commit it to version control or share it publicly.
Get API Key