social-media-mcp

social-media-mcp

A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).

angheljf

Social Media
Visit Server

Tools

post_to_x

Post a message to X (formerly Twitter)

list_x_posts

List X (formerly Twitter) posts

create_x_thread

Create a thread on X (formerly Twitter)

README

Social Media Server

smithery badge A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).

Example

<a href="https://glama.ai/mcp/servers/55bvn41dtb"> <img width="380" height="200" src="https://glama.ai/mcp/servers/55bvn41dtb/badge" /> </a>

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:

npx -y @smithery/cli install social-media-server --client claude

Manual Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Create a .env file with your Twitter credentials:
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET=your_api_secret
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_SECRET=your_access_secret

Building

To build the project, run:

npm run build

Available Tools

  • post_to_x - Post a message to X

    • Required: content (string)
    • Optional: threadId (string)
  • create_x_thread - Create a new thread on X

    • Required: content (string)
  • list_x_post - List X posts with optional filtering

    • Optional: limit (number)
    • Optional: threadId (string)

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

Recommended Servers

@wopal/mcp-server-hotnews

@wopal/mcp-server-hotnews

A Model Context Protocol server that provides real-time hot trending topics from major Chinese social platforms and news sites.

Featured
actors-mcp-server

actors-mcp-server

Use 3,000+ pre-built cloud tools from Apify, known as Actors, to extract data from websites, e-commerce, social media, search engines, maps, and more

Official
TypeScript
mcp-maigret

mcp-maigret

MCP server for maigret, a powerful OSINT tool that collects user account information from various public sources. This server provides tools for searching usernames across social networks and analyzing URLs.

Local
JavaScript
Instagram MCP Server

Instagram MCP Server

A server that allows fetching Instagram posts using Chrome's existing login session via Model Context Protocol (MCP).

Local
TypeScript
X(Twitter) MCP Server

X(Twitter) MCP Server

An MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.

Local
Python
LinkedIn MCP Server

LinkedIn MCP Server

A Model Context Protocol server that enables seamless interaction with LinkedIn for job applications, profile retrieval, feed browsing, and resume analysis through natural language commands.

Local
Python
Twitter MCP Server

Twitter MCP Server

Provides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.

Local
JavaScript
Twitch MCP Server

Twitch MCP Server

Enables interaction with the Twitch API, allowing users to retrieve comprehensive information about channels, streams, games, and more, with additional support for searching and accessing chat elements like emotes and badges.

TypeScript
LinkedIn Browser MCP Server

LinkedIn Browser MCP Server

A FastMCP-based server that enables programmatic LinkedIn automation and data extraction through browser automation, offering secure authentication and tools for profile operations and post interactions while respecting LinkedIn's rate limits.

Python
Hive MCP Server

Hive MCP Server

Enables AI assistants to interact with the Hive blockchain through the Model Context Protocol, allowing for account info retrieval, content reading/creation, cryptocurrency transfers, and cryptographic operations.

TypeScript