Back to MCP directory
publicPublicdnsLocal runtime

mcp-twikit

MCP-Twikit是一个用于与Twitter交互的模型上下文协议(MCP)服务器,支持通过Smithery自动安装或手动配置,提供搜索推文、获取时间线等功能,并支持情感分析等高级应用。

article

README

🚀 MCP-Twikit

smithery徽章 这是一个与 Twitter 交互的模型上下文协议 (MCP) 服务器。

🚀 快速开始

📦 安装指南

使用 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": "me@example.com",
            "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

我将帮助你分析印度尼西亚这些互联网服务提供商的最新推文,以了解公众情绪。我将为每个账户使用 search_twitter 函数。

工具调用:
  search_twitter
  参数:
    查询:to:IndiHomeCare
    数量:20
    排序方式:最新

工具调用:
  search_twitter
  参数:
    查询:to:di_cbn
    数量:20
    排序方式:最新

工具调用:
  search_twitter
  参数:
    查询:to:BiznetHome
    数量:20
    排序方式:最新

工具调用:
  search_twitter
  参数:
    查询:to:ID_MyRepublic
    数量:20
    排序方式:最新

我将总结你的 Twitter 时间线中的关键亮点:

1. 专业/技术亮点:
- @ibamarief 正在准备让他们的第一位实习生入职,并指出这是一项重大责任
- @papanberjalan 分享了一篇关于网页开发者不了解计算机性能的评论
- @pathofexile 正在为他们的游戏进行 Twitch Drops 促销活动

2. 值得注意的推文:
- @elonmusk 发布了一条神秘的 “Hmm”
- @realDonaldTrump 讨论了取消夏令时的问题
- @blinkist 分享了一篇关于亿万富翁每年阅读多达 50 本书的文章

3. 其他有趣的推文:
- @nealtaparia 分享了一个关于围绕单一产品建立的 11 家公司的线程
- @Rixhabh__ 发布了关于创意和标志性广告的内容
- 一些印尼语推文涵盖了从个人故事到社会问题的各种主题

你是否希望我详细阐述这些推文中的任何一条,或者提供任何特定推文的更多背景信息?
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client