mcp-twikit
by: adhikasp
A Model Context Protocol (MCP) server for interacting with Twitter.
📌Overview
Purpose: To provide a server framework for interacting with Twitter, facilitating sentiment analysis and retrieval of tweets.
Overview: MCP-Twikit is a Model Context Protocol server designed to enhance Twitter interactions. It enables the analysis of user sentiments regarding various Twitter accounts and helps visualize trending topics through automated retrieval of tweets from timelines.
Key Features:
-
Sentiment Analysis: Analyzes the latest tweets directed at specified accounts to determine public sentiment, identifying key issues and common complaints.
-
Timeline Retrieval: Fetches and summarizes tweets from a user's home timeline, highlighting significant updates and discussions from followed accounts.
MCP-Twikit
A Model Context Protocol (MCP) server for interacting with Twitter.
Installation
Installing via Smithery
To install Twikit Twitter Search for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-twikit --client claude
Manual Installation
{
"mcpServer": {
"command": "uvx",
"args": ["--from", "git+https://github.com/adhikasp/mcp-twikit", "mcp-twikit"],
"env": {
"TWITTER_USERNAME": "@example",
"TWITTER_EMAIL": "me@example.com",
"TWITTER_PASSWORD": "secret"
}
}
}
Example Usage
Using mcp-client-cli
Comparing sentiments across different Twitter accounts
$ llm compare 20 latest tweet directed @IndiHomeCare, @di_cbn, @BiznetHome, @ID_MyRepublic. What are people sentiment to the product? Do 1 search for each account
The tool performs a sentiment analysis on the latest tweets directed at these internet service providers in Indonesia.
Sentiment Analysis Summary:
-
IndiHomeCare
- Predominantly Negative Sentiment
- Issues: Unstable internet, slow response, intermittent service disruptions, long customer support wait times
- Complaints: Network instability, lagging internet, unresolved technical issues, lack of timely communication
-
CBN (di_cbn)
- Mostly Negative Sentiment
- Issues: Prolonged outages, slow customer support, poor communication
- Complaints: LOS issues, delayed technical problem resolution, delayed email and support responses
-
BiznetHome
- Strongly Negative Sentiment
- Issues: Frequent interruptions, slow speeds, poor customer support
- Complaints: Packet loss, inconsistent connection, long download times, unresolved technical issues
-
MyRepublic (ID_MyRepublic)
- Extremely Negative Sentiment
- Issues: Severe service disruptions, complete outages, inability to access services, poor support
- Complaints: Multi-day outages, inability to access websites/games, missed technician appointments, no compensation or clear communication
Overall Sentiment Ranking (from Bad to Worst):
- IndiHomeCare (Bad)
- CBN (Worse)
- BiznetHome (Very Bad)
- MyRepublic (Extremely Bad)
Common Themes Across Providers:
- Poor network stability
- Slow customer support response
- Lack of transparent communication
- Prolonged service interruptions
- Unresolved technical issues
Recommendation: Significant customer satisfaction issues exist with these Indonesian internet service providers. Customers are frustrated with unreliable services and poor support.
Getting tweets from your home timeline
$ llm what is happening on my twitter timeline?
The tool retrieves and summarizes the latest tweets from your timeline:
Summary:
-
Professional/Tech Highlights:
- @ibamarief onboarding their first intern
- @papanberjalan critique on web developers and performance
- @pathofexile running a Twitch Drops promotion
-
Notable Tweets:
- @elonmusk posted "Hmm"
- @realDonaldTrump discussed eliminating Daylight Saving Time
- @blinkist shared an article about billionaires reading up to 50 books per year
-
Miscellaneous:
- @nealtaparia on 11 companies built around a single product
- @Rixhabh__ on creative and iconic ads
- Various tweets in Indonesian covering personal stories and social issues
Would you like elaboration or more context on any specific tweet?