Skip to content
X (Twitter)
Install guide · Cursor

Install X (Twitter) for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "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

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json