Search for tweets matching a specific query
Retrieve tweets from your home timeline
Twikit is a Model Context Protocol server that enables AI assistants to interact with Twitter. It provides capabilities to search tweets, view your home timeline, and analyze sentiment across different Twitter accounts. This tool is particularly useful for monitoring social media presence, conducting sentiment analysis, and staying updated with your Twitter feed.
Twikit is a Model Context Protocol (MCP) server that allows AI assistants to interact with Twitter. It provides a set of tools for searching tweets, viewing your timeline, and analyzing Twitter content.
The easiest way to install Twikit is through Smithery:
npx -y @smithery/cli install mcp-twikit --client claude
To manually install Twikit, add the following configuration to your AI assistant's settings:
{
"mcpServer": {
"command": "uvx",
"args": ["--from", "git+https://github.com/adhikasp/mcp-twikit", "mcp-twikit"],
"env": {
"TWITTER_USERNAME": "@yourusername",
"TWITTER_EMAIL": "your.email@example.com",
"TWITTER_PASSWORD": "yourpassword"
}
}
}
Replace the environment variables with your actual Twitter credentials.
Twikit requires your Twitter credentials to authenticate with the Twitter API. You need to provide:
TWITTER_USERNAME
: Your Twitter handle (including the @ symbol)TWITTER_EMAIL
: The email address associated with your Twitter accountTWITTER_PASSWORD
: Your Twitter passwordThese credentials are used to authenticate your requests to Twitter.
You can search for tweets using specific queries:
search for the latest tweets about artificial intelligence
To see what's happening on your Twitter timeline:
what is happening on my twitter timeline?
You can analyze sentiment across different Twitter accounts:
compare the latest tweets directed at @Company1, @Company2, and @Company3. What is the sentiment toward these brands?
You can perform more specific searches with parameters:
find the 20 most popular tweets about climate change from the past week
Please note that your Twitter credentials are used only for authentication purposes. It's recommended to use this tool with caution and ensure your credentials are stored securely.