This social-media-mcp server allows you to manage X (formerly Twitter) posts with the following capabilities:
- Post messages to X, including replying to existing threads
- Create new threads on X with provided content
- List X posts with optional filtering by limit and thread ID
- Access platform information for X via the provided endpoint
Social Media Server
A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).
Features
- Post messages to X (Twitter)
- Create threads on X
- Reply to existing threads
- List X posts with filtering options
- Platform information endpoints
Prerequisites
- Node.js 16 or higher
- Twitter API credentials
- API Key
- API Secret
- Access Token
- Access Secret
Installation
Installing via Smithery
To install Social Media Server for Claude Desktop automatically via Smithery:
Manual Installation
- Clone the repository
- Install dependencies:
- Create a .env file with your Twitter credentials:
Building
To build the project, run:
Available Tools
post_to_x
- Post a message to X- Required:
content
(string) - Optional:
threadId
(string)
- Required:
create_x_thread
- Create a new thread on X- Required:
content
(string)
- Required:
list_x_post
- List X posts with optional filtering- Optional:
limit
(number) - Optional:
threadId
(string)
- Optional:
Resources
The server provides platform information via:
socialmedia://platforms/x
Development
The project uses TypeScript and follows the Model Context Protocol specification. The main server implementation is in index.ts, with types defined in types.ts.
License
This project is licensed under the MIT License
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server implementation that provides EMQX MQTT broker interaction.Last updated -418PythonApache 2.0
- -securityAlicense-qualityA Model Context Protocol server that enables AI models and applications to interact directly with Twitter/X, providing capabilities to create posts, reply to tweets, retrieve user data, and manage account actions.Last updated -48TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).Last updated -191JavaScriptApache 2.0
- -securityFlicense-qualityModel Context Protocol server that enables LLMs to interact with X.com (formerly Twitter) through OAuth 2.0 authentication, supporting major Post-related operations including reading, writing, searching, and managing posts, likes, retweets, and bookmarks.Last updated -5553TypeScript