Twitter/X MCP for Gemini CLI
io.github.granitebps/twitter-mcp
Read public X posts, replies, profiles, and search results through Rettiwt or the official API.
client:Gemini CLI
transport:stdio
runtime:npm
Install Twitter/X MCP in Gemini CLI
~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json
{
"mcpServers": {
"twitter-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/twitter-mcp"
],
"env": {
"RETTIWT_API_KEY": "<RETTIWT_API_KEY>"
}
}
}
}
Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs