Install guide · Claude Desktop
Install X (Twitter) for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "role1776-mcp-x": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/role1776/mcp-x:0.1.1" ], "env": { "X_API_KEY": "YOUR_X_API_KEY", "X_API_KEY_SECRET": "YOUR_X_API_KEY_SECRET", "X_ACCESS_TOKEN": "YOUR_X_ACCESS_TOKEN", "X_ACCESS_TOKEN_SECRET": "YOUR_X_ACCESS_TOKEN_SECRET", "MEDIA_ROOT": "", "MCP_TRANSPORT": "stdio", "MCP_NAME": "mcp-x", "MCP_PATH": "/mcp", "SERVER_PORT": "8080", "SERVER_READ_TIMEOUT": "60s", "SERVER_WRITE_TIMEOUT": "60s", "LOG_MODE": "local", "MAX_IDLE_CONNS_PER_HOST": "100", "X_DEBUG": "false", "POSTS_MAX_QUERIES": "5", "POSTS_MAX_USERNAMES": "5", "POSTS_MAX_IDS": "100", "POSTS_DEFAULT_RESULTS": "10", "POSTS_MAX_RESULTS": "100", "POSTS_DEFAULT_DAYS": "7", "POSTS_MAX_DAYS": "7", "POSTS_DEFAULT_TIMEOUT_MS": "15000", "POSTS_MIN_TIMEOUT_MS": "2000", "POSTS_MAX_TIMEOUT_MS": "60000", "USERS_MAX_USERNAMES": "100", "USERS_MAX_IDS": "100", "USERS_DEFAULT_RESULTS": "100", "USERS_MAX_RESULTS": "1000", "USERS_DEFAULT_TIMEOUT_MS": "15000", "USERS_MIN_TIMEOUT_MS": "2000", "USERS_MAX_TIMEOUT_MS": "60000", "LISTS_DEFAULT_RESULTS": "25", "LISTS_MAX_RESULTS": "100", "LISTS_DEFAULT_TIMEOUT_MS": "15000", "LISTS_MIN_TIMEOUT_MS": "2000", "LISTS_MAX_TIMEOUT_MS": "60000", "MEDIA_CHUNK_BYTES": "4194304", "MEDIA_POLL_INTERVAL_MS": "2000", "MEDIA_DEFAULT_TIMEOUT_MS": "120000", "MEDIA_MIN_TIMEOUT_MS": "5000", "MEDIA_MAX_TIMEOUT_MS": "600000" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |