mcp-twitter

by LuniaKunal

Twitter MCP 服务器

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

特征

  • **获取时间线:**检索您的 Twitter 主页时间线。
  • **获取任何用户的推文:**从任何公共 Twitter 用户获取推文。
  • **标签搜索:**搜索包含任何标签(例如#AI )的推文。
  • **获取回复和摘要:**检索推文的回复并获取总结的见解。
  • **用户直接消息:**发送和接收 Twitter DM。
  • **创建帖子:**以编程方式创建新推文。
  • **删除帖子:**通过 API 删除您的推文。
  • 还有更多...

入门

先决条件

  • Python 3.8+
  • 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" } } } }

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

-
security - not tested
-
license - not tested
-
quality - not tested

mcp-twitter

  1. Features
    1. Getting Started
      1. Prerequisites
      2. Installation
      3. Running the Application

    Related MCP Servers

    • -
      security
      F
      license
      -
      quality
      An MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
      Last updated -
      1
      16
      JavaScript
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).
      Last updated -
      3
      7
      JavaScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      An MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.
      Last updated -
      5
      35
      Python
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      An MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.
      Last updated -
      2
      90
      151
      TypeScript
      MIT License
      • Apple

    View all related MCP servers

    ID: gmfu9bkmjl