Twitter MCP Tool

by jalaj-pandey

Integrations

  • Uses environment variables stored in .env files to securely manage Twitter API keys and other sensitive credentials

  • Supports repository cloning as part of the installation process

  • Hosts the repository that can be cloned during installation

Twitter MCP 工具

此仓库包含Twitter MCP 工具,这是一个使用 Python 简化社交媒体任务的工具。它包含发推文、用户名更改历史记录、获取最新推文以及向用户发送私信等功能。

特征

1.推文发布

直接在 Twitter 上发布带有或不带有图片的推文。

2.查询用户名变更

跟踪任何 Twitter 帐户的用户名更改历史记录。

3.获取最近的推文

从任何公共 Twitter 用户的时间线中检索最新推文。

4.发送直接消息 (DM)

直接向 Twitter 用户发送私人消息。

安装依赖项并运行

  1. 使用克隆 repo
    git clone https://github.com/jalaj-pandey/twitter-mcp-tool.git
  2. 安装依赖项:
    uv venv .venv\Scripts\activate pip install -r requirements.txt mcp dev script.py
    如果你想将它安装在 Claude 桌面上,那么使用
    pip install script.py
  3. 使用以下键创建.env文件:
    X_api_key=<your_twitter_api_key> X_api_key_sec=<your_twitter_api_secret> X_access_token=<your_twitter_access_token> X_access_token_sec=<your_twitter_access_token_secret> X_bearer_token=<your_twitter_bearer_token> GEMINI_API_KEY=<your_gemini_api_key>

用法

打开您的 Claude 桌面,您将看到 Twitter MCP Tool 已可供使用。

如果没有,则将config.json复制粘贴到您的 claude_desktop_config.json 中

文件夹结构

. ├── script.py # MCP core logic ├── .env # Environment variables ├── requirements.txt # Python dependencies ├── config.json # config file for claude desktop └── readme.md # Project documentation
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

这是一个基于 Python 的工具,它允许用户发布推文、跟踪用户名更改、获取最近的推文以及在 Twitter 上发送直接消息,从而简化社交媒体任务。

  1. 特征
    1. 1.推文发布
    2. 2.查询用户名变更
    3. 3.获取最近的推文
    4. 4.发送直接消息 (DM)
  2. 安装依赖项并运行
    1. 用法
      1. 文件夹结构

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Server for X (Twitter) integration that provides tools for reading your timeline and engaging with tweets. Designed for use with Claude desktop.
          Last updated -
          3
          0
          9
          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
        • -
          security
          F
          license
          -
          quality
          Provides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.
          Last updated -
          4
          1
          JavaScript
          • 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
          65
          202
          TypeScript
          MIT License
          • Apple

        View all related MCP servers

        ID: slcutxprv1