MCP HubMCP Hub
adhikasp

mcp-twikit

by: adhikasp

A Model Context Protocol (MCP) server for interacting with Twitter.

144created 15/12/2024
Visit
Twitter
API

📌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

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

Sentiment Analysis Summary:

  1. IndiHomeCare:

    • Predominantly Negative Sentiment
    • Key Issues: Unstable internet connection, slow response times, long waiting times for customer support
  2. CBN (di_cbn):

    • Mostly Negative Sentiment
    • Key Issues: Prolonged internet outages, slow customer support response, lack of clear communication
  3. BiznetHome:

    • Strongly Negative Sentiment
    • Key Issues: Frequent network interruptions, poor customer support responsiveness
  4. MyRepublic (ID_MyRepublic):

    • Extremely Negative Sentiment
    • Key Issues: Severe service disruptions, inability to access online services

Overall Sentiment Ranking:

  1. IndiHomeCare (Bad)
  2. CBN (Worse)
  3. BiznetHome (Very Bad)
  4. MyRepublic (Extremely Bad)

Common Themes Across Providers:

  • Poor network stability
  • Slow customer support response
  • Lack of transparent communication

Getting Tweets from Your Home Timeline

$ llm what is happening on my twitter timeline?

Summary of Key Highlights:

  • Professional/Tech highlights
  • Notable tweets from influential figures
  • Various interesting tweets covering a range of topics

Would you like to elaborate on any specific tweet?