Generate Image And Post MCP
A Twitter/X tweet - posting server based on the Model Context Protocol, supporting text and image posting and AI image generation functions, achieving secure access through OAuth authentication.
rating : 2 points
downloads : 6.9K
What is the Twitter MCP Server?
The Twitter MCP Server is a bridge connecting AI assistants with the Twitter/X platform. It allows AI assistants like Claude to directly post tweets, upload images, and even generate images using AI and share them on Twitter. With simple conversational instructions, you can let the AI assistant manage your Twitter content for you.How to use the Twitter MCP Server?
First, you need to complete the configuration of the Twitter API and the optional Gemini API, and then enable this MCP server in Claude Desktop. After completion, you can directly tell Claude to post tweets or generate images in natural language, as simple as having a conversation with an assistant.Use cases
Suitable for content creators, social media managers, marketers, or any users who want to automate Twitter content posting through AI assistants. Whether it's regularly posting updates, sharing creatively generated images by AI, or managing multiple social media accounts, this tool can greatly improve efficiency.Main features
Post text tweets
Supports posting pure text tweets, up to 280 characters, authenticated through secure OAuth 2.0.
Upload and attach images
You can upload up to 4 images (in JPG, PNG, GIF, WebP formats) and attach them to tweets, with a maximum size of 15MB per image.
AI image generation
Use the Google Gemini API to generate high - quality images based on text descriptions, and then directly share them on Twitter.
Automatic token refresh
The OAuth 2.0 access token will be automatically refreshed when it expires, eliminating the need for manual re - authentication.
Secure credential storage
All API keys and tokens are securely stored in the user directory, protected by strict file permissions.
Dual - server architecture
The Twitter function and the image generation function run as independent MCP servers and can be used simultaneously.
Advantages
No programming knowledge required: You can post content by interacting with the AI assistant in natural language.
Integrated solution: Combines Twitter posting and AI image generation functions.
Safe and reliable: Uses industry - standard OAuth authentication and secure credential storage.
Simple configuration: Provides an interactive setup wizard to guide you through all configuration steps.
Flexible expansion: Supports customizing the image storage directory and configuration options.
Limitations
Requires a Twitter developer account: You must apply for Twitter API access rights.
Depends on external APIs: Requires valid Twitter and Google Gemini API keys.
Image quantity limit: Each tweet can only attach up to 4 images.
File size limit: Each image cannot exceed 15MB.
Platform limitation: Currently mainly supports Claude Desktop, and other MCP clients may require additional configuration.
How to use
Get API credentials
First, you need to register a Twitter developer account and create an application to obtain the API keys for OAuth 2.0 and OAuth 1.0a. If you need the AI image generation function, you also need to obtain the Google Gemini API key.
Run the setup wizard
Use the provided npm command to run the setup wizard, and follow the prompts to enter the API keys and complete the authentication process.
Configure Claude Desktop
Edit the configuration file of Claude Desktop and add the path information of the Twitter MCP server.
Start using
Start Claude Desktop. Now you can directly tell Claude to post tweets or generate images in natural language.
Usage examples
Daily tweet posting
Let the AI assistant help post daily updates or share thoughts
Image sharing
Share local images on Twitter and add descriptions
AI creative content
Generate AI images and directly share them on social media
Multi - image tweet
Create a tweet display containing multiple images
Frequently Asked Questions
Do I need to pay to use this tool?
Which image formats are supported?
How to update or re - configure the API keys?
Is this tool safe? Will my Twitter account be at risk?
Can it be used with other AI assistants besides Claude?
What should I do if the tweet posting fails?
Can I schedule tweets for a specific time?
Where are the generated images stored?
Related resources
Twitter Developer Portal
Apply for Twitter API keys and create a developer account
Google AI Studio
Get the Google Gemini API key
Model Context Protocol Official Website
Learn about the MCP protocol and technical details
Claude Desktop Download
Download and install the Claude Desktop application
GitHub Repository
View the source code and submit issues (assuming there is a public repository)
Node.js Download
Download the Node.js runtime environment (version 18+ required)

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
28.5K
4.3 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.2K
5 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
23.9K
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
80.5K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
37.5K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.8K
4.5 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
56.5K
4.8 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
25.1K
4.5 points

