Skip to main content
Glama

Twitter MCP 服务器

欢迎使用 Twitter MCP(多渠道平台)服务器!此应用程序提供多种强大功能,可帮助您以编程方式管理 Twitter 帐户。

特征

  • **获取时间线:**检索您的 Twitter 主页时间线。

  • **获取任何用户的推文:**从任何公共 Twitter 用户获取推文。

  • **标签搜索:**搜索包含任何标签(例如#AI )的推文。

  • **获取回复和摘要:**检索推文的回复并获取总结的见解。

  • **用户直接消息:**发送和接收 Twitter DM。

  • **创建帖子:**以编程方式创建新推文。

  • **删除帖子:**通过 API 删除您的推文。

  • 还有更多...

Twitter MCP 服务器

Twitter MCP 服务器

Related MCP server: TwitGhost

入门

先决条件

  • Python 3.11+

  • uvicorn (用于运行服务器)

  • Twitter API 凭证(在.env文件中设置)

安装

  1. 克隆此存储库。

  2. 安装依赖项:

    pip install -r requirements.txt
  3. 使用您的 Twitter API 凭证设置您的.env文件(请参阅.env.example )。

运行应用程序

要启动服务器,请运行:

uv run --with twikit --with mcp Path\\src\\tweet_service.py
{
  "mcpServers": {
  "twitter-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "Path\\src\\",
      "run",
      "--with",
      "twikit",
      "--with",
      "mcp",
      "tweet_service.py"
    ],
    "env": {
      "COOKIES_PATH": "Path\\cookies.json",
      "ENV_FILE": ".env"  
    }
  }

}
}

欢迎随意贡献或建议新功能!

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables interacting with Twitter/X through natural language, including searching tweets, posting, sending DMs, and managing timelines via any MCP client.
    8
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for the Twitter/X read API, enabling search, user profiles, tweets, followers, and more via natural language.
    94
    125 npm
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server to read X (Twitter) posts, threads, replies, quotes, and search using your own logged-in session, no API key required.
    8
    25 PyPI
    3
    MIT