X-Post MCP

X-Post MCP

x-post-mcp•bysubhadeeproy3902

An MCP server that lets AI models create and publish posts to X (formerly Twitter) through a standardized tool interface.

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

WHAT IT DOES

  • •Exposes a createPost tool over MCP for posting to X.
  • •Uses Google Gemini models to generate post content.
  • •Automatically truncates posts that exceed X's character limit.
  • •Uses Server-Sent Events for communication between the server and clients.

BEST FOR

  • •Instructing an AI assistant to compose and publish tweets to X.
  • •Testing MCP-based posting through an interactive chat interface.

ABOUT X-POST-MCP

X-Post MCP is cataloged as an MCP server attributed to subhadeeproy3902. An MCP server that lets AI models create and publish posts to X (formerly Twitter) through a standardized tool interface. 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 X-Post MCP 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

What tool does the MCP server expose?

It exposes a createPost tool that posts content to X.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ca499510a702 · 采集于 2026-11-13 10:32:10 UTC

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

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

🐦 X-Post MCP 🚀

License: MIT Bun TypeScript

A powerful integration that allows AI models to post directly to X (formerly Twitter) using the Model Context Protocol (MCP) 🤖✨

📋 Overview

X-Post MCP is a client-server application that enables AI models to create and publish posts on X (formerly Twitter) through a standardized interface. It leverages the Model Context Protocol to provide a seamless integration between AI models and the X platform.

✨ Features

  • 🔄 Seamless integration with X (Twitter) API
  • 🧠 AI-powered post creation using Google's Gemini models
  • 🛠️ MCP server exposing X posting functionality as a tool
  • 💬 Interactive chat interface for testing and demonstration
  • 🔒 Secure handling of API credentials
  • ✂️ Automatic truncation of posts exceeding X's character limit

🛠️ Technologies

📦 Installation

Prerequisites

  • Bun v1.2.5 or later
  • X (Twitter) API credentials
  • Google Gemini API key

Server Setup

# Clone the repository
git clone https://github.com/subhadeeproy3902/x-post-mcp.git
cd x-post-mcp

# Install server dependencies
cd server
bun install

Client Setup

# From the project root
cd client
bun install

⚙️ Configuration

Obtaining X (Twitter) API Credentials

  1. Create a Developer Account:

    • Go to the X Developer Portal
    • Sign in with your X account or create a new one
    • Apply for a developer account if you don't have one already
  2. Create a Project & App:

    • Once approved, create a new Project in the Developer Portal
    • Within the project, create a new App
    • Give your app a name and description
  3. Set App Permissions:

    • In your App settings, navigate to the "User authentication settings" section
    • Edit the settings and enable OAuth 1.0a
    • Set App permissions to Read and Write and Direct Messages
    • Save your changes
  4. Generate Access Tokens:

    • Navigate to the "Keys and Tokens" tab
    • Generate "Consumer Keys" (API Key and Secret)
    • Generate "Access Token and Secret" for your account
    • Make sure to save all four values as they will be needed for configuration

⚠️ Important: Keep your API keys and tokens secure and never commit them to public repositories.

Server Environment Variables

Create a .env file in the server directory with the following variables:

# X (Twitter) API Credentials
TWITTER_API_KEY=your_twitter_api_key
TWITTER_API_SECRET=your_twitter_api_secret
TWITTER_ACCESS_TOKEN=your_twitter_access_token
TWITTER_ACCESS_SECRET=your_twitter_access_secret

Obtaining Google Gemini API Key

  1. Create a Google AI Studio Account:

  2. Get API Key:

⚠️ Important: Keep your API key secure and never commit it to public repositories.

Client Environment Variables

Create a .env file in the client directory with the following variables:

# Google Gemini API Key
GEMINI_API_KEY=your_gemini_api_key

🚀 Usage

Starting the Server

cd server
bun run dev

The server will start on http://localhost:3001.

Starting the Client

cd client
bun run index.ts

The client will connect to the server and provide an interactive chat interface where you can interact with the AI model and instruct it to post to X.

Example Commands

Once the client is running, you can interact with the AI model:

You: Post a tweet about the beautiful weather today

The AI will use the Gemini model to generate a post and then use the MCP tool to publish it to X.

🏗️ Architecture

Server

The server component is built with Express and implements the Model Context Protocol. It exposes a tool called createPost that can be used to post to X. The server uses Server-Sent Events (SSE) for communication with clients.

Client

The client component connects to the MCP server and provides an interface for interacting with Google's Gemini AI models. It translates user requests into AI-generated content and can call the server's tools to post to X.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgements

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 X-Post MCP 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-post-mcp)

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