Searches Twitter/X with natural language queries and returns raw tweets or an analysis, with filtering and pagination.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add twitter-x --env RAPIDAPI_KEY='<RAPIDAPI_KEY>' -- node YOUR_ABSOLUTE_PATH_TO/main.js~/.codex/config.toml
[mcp_servers.twitter-x]
command = "node"
args = ["YOUR_ABSOLUTE_PATH_TO/main.js"]
env = { RAPIDAPI_KEY = "<RAPIDAPI_KEY>" }
# codex mcp add twitter-x --env RAPIDAPI_KEY='<RAPIDAPI_KEY>' -- node YOUR_ABSOLUTE_PATH_TO/main.js~/.cursor/mcp.json
{
"mcpServers": {
"twitter-x": {
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/main.js"
],
"env": {
"RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"twitter-x": {
"type": "stdio",
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/main.js"
],
"env": {
"RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"twitter-x": {
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/main.js"
],
"env": {
"RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"twitter-x": {
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/main.js"
],
"env": {
"RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"twitter-x": {
"command": "node",
"args": [
"YOUR_ABSOLUTE_PATH_TO/main.js"
],
"env": {
"RAPIDAPI_KEY": "<RAPIDAPI_KEY>"
}
}
}
}Environment variables
RAPIDAPI_KEY
Replace the placeholders with your own credentials and keep them out of version control.