Twitter MCP Server

Twitter MCP Server

x-twitter•byenescinr

An MCP server that lets clients interact with Twitter, enabling posting tweets, searching Twitter, and reading your home timeline.

License: MIT•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Provides a post_tweet tool to post a new tweet, optionally as a reply or with up to 4 local images in JPG, PNG, GIF or WEBP format.
  • •Provides a search_tweets tool to search for tweets.
  • •Provides a get_home_timeline tool returning your reverse-chronological home timeline newest first, with optional count, since_days or start_time parameters.

BEST FOR

  • •Posting tweets from an MCP client such as Claude.
  • •Searching Twitter for tweets about a topic from an MCP client.
  • •Reviewing recent posts from accounts you follow.

ABOUT X-TWITTER

Twitter MCP Server is cataloged as an MCP server attributed to enescinr. An MCP server that lets clients interact with Twitter, enabling posting tweets, searching Twitter, and reading your home timeline. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Twitter MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the home timeline tool work on the free X API tier?

No; the home timeline endpoint is not available on the Free X API tier, and a paid tier such as Basic or higher is required.

Can I combine the since_days and start_time parameters?

No; use either since_days or start_time, not both.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 64524a9fe144 · 采集于 2026-11-13 09:27:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MseeP.ai Security Assessment Badge

Twitter MCP Server

smithery badge

This MCP server allows Clients to interact with Twitter, enabling posting tweets, searching Twitter and reading your home timeline.

Twitter Server MCP server

Quick Start

  1. Create a Twitter Developer account and get your API keys from Twitter Developer Portal

  2. Add this configuration to your Claude Desktop config file:

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. Restart Claude Desktop

That's it! Claude can now interact with Twitter through three tools:

  • post_tweet: Post a new tweet, optionally as a reply (reply_to_tweet_id) or with up to 4 images (media_paths: local JPG, PNG, GIF or WEBP files)
  • search_tweets: Search for tweets
  • get_home_timeline: Get recent tweets from accounts you follow

get_home_timeline

Returns your reverse-chronological home timeline (tweets from you and the accounts you follow), newest first. All parameters are optional:

  • count: number of tweets to return (1-100)
  • since_days: only return tweets from the last N days, e.g. 1, 3 or 7 (max 30)
  • start_time: only return tweets created after this ISO 8601 UTC timestamp, e.g. 2024-01-01T00:00:00Z

Use either since_days or start_time, not both.

Note: The home timeline endpoint (GET /2/users/:id/timelines/reverse_chronological) is not available on the Free X API tier. You need a paid tier (Basic or higher); on the Free tier this tool returns a Twitter API error.

Example Usage

Try asking Claude:

  • "Can you post a tweet saying 'Hello from Claude!'"
  • "Can you post a tweet saying 'New logo!' with the image /Users/me/Pictures/logo.png"
  • "Can you search for tweets about Claude AI?"
  • "What have the accounts I follow posted in the last 3 days?"

Troubleshooting

Logs can be found at:

  • Windows: %APPDATA%\Claude\logs\mcp-server-twitter.log
  • macOS: ~/Library/Logs/Claude/mcp-server-twitter.log

Development

If you want to contribute or run from source:

  1. Clone the repository:
git clone https://github.com/EnesCinr/twitter-mcp.git
cd twitter-mcp
  1. Install dependencies:
npm install
  1. Build:
npm run build
  1. Run:
npm start

Running evals

The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found here.

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

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Twitter MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/x-twitter)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication