Skip to main content
Glama
Twitter MCP Server

Twitter MCP Server

by EnesCinr

Твиттер MCP-сервер

значок кузнеца

Этот сервер MCP позволяет клиентам взаимодействовать с Twitter, позволяя публиковать твиты и выполнять поиск в Twitter.

Быстрый старт

  1. Создайте учетную запись разработчика Twitter и получите ключи API на портале разработчиков Twitter.

  2. Добавьте эту конфигурацию в файл конфигурации Claude Desktop:

Windows : %APPDATA%\Claude\claude_desktop_config.json
macOS : ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "twitter-mcp": {
      "command": "npx",
      "args": ["-y", "@enescinar/twitter-mcp"],
      "env": {
        "API_KEY": "your_api_key_here",
        "API_SECRET_KEY": "your_api_secret_key_here",
        "ACCESS_TOKEN": "your_access_token_here",
        "ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
      }
    }
  }
}
  1. Перезагрузить рабочий стол Клода

Вот и все! Теперь Клод может взаимодействовать с Twitter с помощью двух инструментов:

  • post_tweet : Опубликовать новый твит

  • search_tweets : Поиск твитов

Related MCP server: twitter-mcp

Пример использования

Попробуйте спросить Клода:

  • «Можете ли вы опубликовать твит «Привет от Клода!»?»

  • «Можно ли искать твиты о Claude AI?»

Поиск неисправностей

Журналы можно найти по адресу:

  • Windows : %APPDATA%\Claude\logs\mcp-server-twitter.log

  • macOS : ~/Library/Logs/Claude/mcp-server-twitter.log

Разработка

Если вы хотите внести свой вклад или запустить проект из исходного кода:

  1. Клонируйте репозиторий:

git clone https://github.com/EnesCinr/twitter-mcp.git
cd twitter-mcp
  1. Установите зависимости:

npm install
  1. Строить:

npm run build
  1. Бегать:

npm start

Запуск оценок

Пакет evals загружает клиент mcp, который затем запускает файл index.ts, поэтому нет необходимости перестраиваться между тестами. Вы можете загрузить переменные среды, указав префикс команды npx. Полную документацию можно найти здесь .

OPENAI_API_KEY=your-key  npx mcp-eval src/evals/evals.ts src/index.ts

Лицензия

Массачусетский технологический институт

Available Tools

3 tools
get_home_timelineA

Get recent tweets from accounts you follow (your home timeline), newest first. Requires a paid X API tier (Basic or higher).

Inputs: count, since_days, start_time.

post_tweetB

Post a new tweet to Twitter, optionally with up to 4 images

Inputs: text (required), media_paths, reply_to_tweet_id.

search_tweetsC

Search for tweets on Twitter

Inputs: count (required), query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 3 tools

    Disambiguation4/5

    Each tool maps to a distinct action: writing a tweet, reading the followed-accounts feed, and keyword search. The two read tools could be marginally confused, but the descriptions (home timeline vs. search) make the boundary clear.

    Naming Consistency5/5

    All three names follow a consistent verb_noun snake_case pattern: post_tweet, get_home_timeline, search_tweets. No mixing of conventions or vague verbs.

    Tool Count3/5

    Three tools is thin for a Twitter/X integration, covering only post and two read paths. It is a reasonable minimal surface but leaves the server feeling under-built for its scope.

    Completeness2/5

    The surface is essentially write-once plus two read paths: there is no delete_tweet, no reply/thread support, no user lookup, mentions, likes, or retweet operations. Agents attempting common Twitter workflows (replying, deleting, checking a user's profile) will hit dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      A lightweight Twitter MCP server for Claude Code with 17 tools for reading and writing tweets, including search, user profiles, and media uploads, using a hybrid API approach.
      2
      -
    • A
      license
      A
      quality
      F
      maintenance
      A Model Context Protocol (MCP) server that provides access to Twitter data through the TwitterAPI.io service, enabling Claude and other MCP clients to interact with Twitter's ecosystem without requiring Twitter developer account approval.
      11
      11 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables posting tweets, reading timelines, searching posts, and interacting with X (Twitter) API.
      17 npm
      2
      MIT