Integrated for research capabilities, allowing the MCP server to search for information, facts, and news using Brave Search
Enables posting content to Mastodon with platform-specific formatting, managing API rate limits, and tracking post performance
Used for content generation, allowing the MCP server to create social media posts using OpenAI's models
Integrated as a research tool, allowing the MCP server to research topics and gather information for social media content
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Social Media MCP ServerPost about AI ethics trends on Twitter and LinkedIn"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Social Media MCP Server
A Model Context Protocol (MCP) server that connects to multiple social media platforms, allowing users to create and publish content across platforms through natural language instructions.
Features
Natural Language Interface: Create posts for multiple platforms with simple instructions
Research Capabilities: Automatically research hashtags, trends, facts, and news
Multi-platform Support: Post to Twitter/X, Mastodon, and LinkedIn with platform-specific formatting
Content Generation: Generate engaging content using multiple AI models
Rate Limit Management: Handle API rate limits gracefully with queuing and fallbacks
Analytics: Track post performance and optimize content strategy
Related MCP server: Unipile MCP Server
Getting Started
Prerequisites
Node.js (v18+)
npm or yarn
API keys for:
Twitter/X
Mastodon
LinkedIn
OpenAI and/or Anthropic (for content generation)
Brave Search (for research)
Installation
Clone the repository:
Install dependencies:
Create a
.envfile with your API keys:
Build the project:
Start the server:
MCP Integration
To use this MCP server with Claude or another MCP-compatible assistant, add it to your MCP settings:
Available Tools
create_post
Create and post content to social media platforms based on natural language instructions.
get_trending_topics
Get trending topics from social media platforms.
research_topic
Research a topic using Brave Search and Perplexity.
Development
Project Structure
Scripts
npm run build: Build the projectnpm run dev: Run in development mode with hot reloadingnpm start: Start the production servernpm test: Run testsnpm run lint: Run lintingnpm run format: Format code
Utility Scripts
The scripts directory contains utility scripts for the Social Media MCP Server:
scripts/linkedin-oauth.js: Handles the OAuth 2.0 flow for LinkedIn to obtain an access tokenUsage:
cd scripts && npm install && npm run linkedin-oauthSee scripts/README.md for more details
Documentation
The documentation directory contains detailed documentation for each social media platform integration:
License
This project is licensed under the ISC License.