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
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
Getting Started
Prerequisites
- Node.js (v18+)
- npm or yarn
- API keys for:
- Twitter/X
- Mastodon
- OpenAI and/or Anthropic (for content generation)
- Brave Search (for research)
Installation
- Clone the repository:
- Install dependencies:
- Create a
.env
file 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 token- Usage:
cd scripts && npm install && npm run linkedin-oauth
- See scripts/README.md for more details
- Usage:
Documentation
The documentation
directory contains detailed documentation for each social media platform integration:
License
This project is licensed under the ISC License.
Acknowledgements
This server cannot be installed
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.
Connects to multiple social media platforms (Twitter/X, Mastodon, LinkedIn), allowing users to create and publish content across platforms through natural language instructions.
Related MCP Servers
- AsecurityAlicenseAqualityServer for X (Twitter) integration that provides tools for reading your timeline and engaging with tweets. Designed for use with Claude desktop.Last updated -389JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).Last updated -37JavaScriptMIT License
- -securityAlicense-qualityEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.Last updated -25010TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.Last updated -535PythonMIT License