mcpField
M
MCP-Twikit

MCP-Twikit

本地服务
github.com/adhikasp社交媒体23785 周前更新

关于 MCP-Twikit

MCP-Twikit 是一个用于与 Twitter 交互的 MCP 服务,可让 AI 客户端搜索推文并读取主页时间线。它基于 Python 实现,通过 uvx 运行,适合希望在 AI 对话中分析 Twitter 内容的用户。

主要功能

  1. 01搜索推文
  2. 02读取主页时间线
  3. 03基于 uvx 运行

适用场景

  1. 01搜索指定账号相关的推文并分析舆情
  2. 02在 AI 对话中查看 Twitter 时间线

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"twikit": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
启动命令npx -y @smithery/cli

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@smithery/cli

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

MCP-Twikit

smithery badge 用于与 Twitter 交互的模型上下文协议(MCP)服务。

mcp-twikit MCP server

安装

通过 Smithery 安装

通过 Smithery 自动为 Claude Desktop 安装 Twikit Twitter Search:

npx -y @smithery/cli install mcp-twikit --client claude
手动安装
{
    "mcpServer": {
        "command": "uvx",
        "args": ["--from", "git+https://github.com/adhikasp/mcp-twikit", "mcp-twikit"],
        "env": {
            "TWITTER_USERNAME": "@example",
            "TWITTER_EMAIL": "[email protected]",
            "TWITTER_PASSWORD": "secret",
        }
    }
}

示例用法

使用 mcp-client-cli

比较不同 Twitter 账号的情绪
$ 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

I'll help you analyze the latest tweets for these internet service providers in Indonesia to understand the public sentiment. I'll use the search_twitter function for each account.

Tool Calls:
  search_twitter
  Args:
    query: to:IndiHomeCare
    count: 20
    sort_by: Latest

Tool Calls:
  search_twitter
  Args:
    query: to:di_cbn
    count: 20
    sort_by: Latest

Tool Calls:
  search_twitter
  Args:
    query: to:BiznetHome
    count: 20
    sort_by: Latest

Tool Calls:
  search_twitter
  Args:
    query: to:ID_MyRepublic
    count: 20
    sort_by: Latest

Sentiment Analysis Summary:

1. IndiHomeCare:
- Predominantly Negative Sentiment
- Key Issues:
  - Unstable internet connection
  - Slow response times
  - Intermittent service disruptions
  - Long waiting times for customer support
- Specific Complaints:
  - Network instability
  - Lagging internet
  - Unresolved technical issues
  - Lack of timely communication

2. CBN (di_cbn):
- Mostly Negative Sentiment
- Key Issues:
  - Prolonged internet outages (some reporting 1-2 days of no service)
  - Slow customer support response
  - Lack of clear communication about service disruptions
- Specific Complaints:
  - LOS (Line of Sight) issues
  - No timely resolution of technical problems
  - Delayed email and support responses

3. BiznetHome:
- Strongly Negative Sentiment
- Key Issues:
  - Frequent network interruptions
  - Slow internet speeds
  - Poor customer support responsiveness
- Specific Complaints:
  - Packet loss
  - Inconsistent connection
  - Long download times
  - Unresolved technical issues

4. MyRepublic (ID_MyRepublic):
- Extremely Negative Sentiment
- Key Issues:
  - Severe and prolonged service disruptions
  - Complete internet outages
  - Inability to access online services and games
  - Extremely poor customer support
- Specific Complaints:
  - Multi-day service interruptions
  - Inability to access websites and online games
  - Missed technician appointments
  - Lack of compensation or clear communication

Overall Sentiment Ranking (from Bad to Worst):
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
- Prolonged service interruptions
- Unresolved technical issues

Recommendation: These Indonesian internet service providers are experiencing significant customer satisfaction issues. Customers are frustrated with unreliable services, poor technical support, and lack of timely problem resolution.
获取主页时间线中的推文
$ llm what is happening on my twitter timeline?

I'll help you check your Twitter timeline. I'll retrieve the latest tweets from your timeline:

Tool Calls:
  get_timeline
  Args:

I'll summarize the key highlights from your Twitter timeline:

1. Professional/Tech Highlights:
- @ibamarief is preparing to onboard their first intern, noting it's a significant responsibility
- @papanberjalan shared a critique about web developers not understanding computer performance
- @pathofexile is running a Twitch Drops promotion for their game

2. Notable Tweets:
- @elonmusk posted a cryptic "Hmm"
- @realDonaldTrump discussed eliminating Daylight Saving Time
- @blinkist shared an article about billionaires reading up to 50 books per year

3. Miscellaneous Interesting Tweets:
- @nealtaparia shared a thread about 11 companies built around a single product
- @Rixhabh__ posted about creative and iconic ads
- Several tweets in Indonesian covering various topics from personal stories to social issues

Would you like me to elaborate on any of these tweets or provide more context about any specific post?

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。