Social CLI MCP
Allows sending emails via Gmail SMTP for outreach campaigns.
Allows posting photo/video posts and carousels to Instagram (requires Business or Creator account).
Allows posting text posts, link posts, and cross-posting to subreddits.
Provides a Telegram bot for remote control of posting, with security confirmation and Claude AI chat.
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 CLI MCPpost 'Just released v2.0!' to 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 CLI MCP 📱
CLI tool for posting to social media platforms with MCP server support for AI agents
Post to Twitter/X, Reddit, LinkedIn, and Instagram from your terminal or via AI agents.
Features
🐦 Twitter/X - Posts, threads, media uploads, analytics
🤖 Reddit - Text posts, link posts, cross-posting
💼 LinkedIn - Updates with links and images
📸 Instagram - Photo/video posts, carousels (Creator/Business accounts)
📧 Email - Gmail SMTP for outreach campaigns
🤖 MCP Server - AI agent integration
🎨 Interactive mode - Guided posting experience
📱 Telegram Bot - Remote control + Claude AI chat
🔐 Security Gate - All sensitive actions require Telegram confirmation
Related MCP server: Megahorn
Quick Start
1. Install
git clone https://github.com/Alemusica/social-cli-mcp.git
cd social-cli-mcp
npm install2. Configure
cp .env.example .env
# Edit .env with your API credentials3. Test connections
npm run cli test4. Post!
# Single platform
npm run cli post "Hello world!" --twitter
# Multiple platforms
npm run cli post "Check this out!" --twitter --linkedin
# Reddit (requires subreddit)
npm run cli post "My post" --reddit ClaudeAI --title "My Title"
# Instagram (requires image)
npm run cli post "My caption" --instagram "https://example.com/image.jpg"
# Interactive mode
npm run cli interactiveCLI Commands
# Post to platforms
social post <text> [options]
-t, --twitter Post to Twitter/X
-r, --reddit <subreddit> Post to Reddit
-l, --linkedin Post to LinkedIn
-i, --instagram <image> Post to Instagram
-a, --all Post to all configured
--title <title> Reddit post title
--link <url> Include a link
--hashtags <tags> Comma-separated hashtags
--media <urls> Comma-separated media URLs
# Post Twitter thread
social thread <tweet1> <tweet2> ...
# Test connections
social test [--all|--twitter|--reddit|--linkedin|--instagram]
# Show status
social status
# Interactive mode
social interactive
social iAPI Credentials Setup
Twitter/X
Go to developer.twitter.com
Create a project and app
Generate API keys and access tokens
Add to
.env:TWITTER_API_KEY=xxx TWITTER_API_SECRET=xxx TWITTER_ACCESS_TOKEN=xxx TWITTER_ACCESS_SECRET=xxx
Go to reddit.com/prefs/apps
Create a "script" type application
Add to
.env:REDDIT_CLIENT_ID=xxx REDDIT_CLIENT_SECRET=xxx REDDIT_USERNAME=xxx REDDIT_PASSWORD=xxx
Go to linkedin.com/developers
Create an app
Request "Share on LinkedIn" permission
Get OAuth access token
Add to
.env:LINKEDIN_ACCESS_TOKEN=xxx
Requires Business or Creator account
Go to developers.facebook.com
Create an app
Add Instagram Graph API
Link Facebook Page to Instagram account
Get access token
Add to
.env:INSTAGRAM_ACCESS_TOKEN=xxx INSTAGRAM_BUSINESS_ACCOUNT_ID=xxx
MCP Server
Use with Claude, Cursor, or any MCP-compatible AI agent.
Configuration
Add to your MCP config:
{
"mcpServers": {
"social": {
"command": "node",
"args": ["/path/to/social-cli-mcp/dist/mcp-server.js"],
"env": {
"TWITTER_API_KEY": "xxx",
"TWITTER_API_SECRET": "xxx",
"TWITTER_ACCESS_TOKEN": "xxx",
"TWITTER_ACCESS_SECRET": "xxx"
}
}
}
}Available Tools
Tool | Description |
| Post a tweet |
| Post a thread |
| Post to subreddit |
| Post to LinkedIn |
| Post to Instagram |
| Post to all platforms |
| Test all connections |
| Get config status |
Telegram Bot 📱
Control your social media from Telegram with security confirmations.
Setup
Create bot with @BotFather
Get your user ID from @userinfobot
Add to
.env:TELEGRAM_BOT_TOKEN=your_bot_token TELEGRAM_USER_ID=your_user_id ANTHROPIC_API_KEY=sk-ant-xxx # Optional, for Claude AI
Run
npm run botCommands
Command | Description |
| Post tweet (with confirmation) |
| Send email (with confirmation) |
| View pending actions |
| View recent tweets + metrics |
| Outreach status |
| List contacted venues |
Free text | Chat with Claude AI |
Security
All sensitive actions (tweets, emails) require confirmation via inline buttons. Actions expire after 5 minutes.
See docs/TELEGRAM_BOT_SETUP.md for detailed setup.
Security Gate 🔐
When using Claude Code or other CLI tools, sensitive actions are routed through Telegram for confirmation:
# Test email with confirmation
npx tsx src/security-gate.ts test-email your@email.com
# Test tweet with confirmation
npx tsx src/security-gate.ts test-tweet "Hello world"Development
# Run CLI in dev mode
npm run cli <command>
# Run MCP server
npm run mcp
# Run Telegram bot
npm run bot
# Build
npm run buildLicense
MIT
Built with ❤️ by @FluturArt
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alessio-web-dev/social-cli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server