Token导航 LogoToken导航TokenDH.com
Social CLI MCP logo
开发工具stdio官方级别未说明来源级核验

Social CLI MCP

MCP Server

tsx

一个支持通过命令行或AI代理发布内容到多个社交媒体平台的CLI工具,包括Twitter/X、Reddit、LinkedIn和Instagram等功能。

工具数

8

提示词数

0

GitHub Stars

6

资源数

0
社交媒体管理TypeScriptClaude命令行工具ClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

alessio-web-dev

提供方

alessio-web-dev

最后核验

2026/5/17 20:22

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx tsx src/security-gate.ts test-email your@email.com

详细介绍

社交CLI MCP📱

![License: MIT](https://opensource.org/licenses/MIT)

用于发布到社交媒体平台的CLI工具,支持人工智能代理的MCP服务器

张贴到 推特/X, 红迪, 领英,以及 Instagram 从您的终端或通过AI代理。

______________________________________________________________________

特性

  • 🐦 推特/X -帖子、帖子、媒体上传、分析
  • 🤖 红迪 -文本帖子、链接帖子、交叉发布
  • 💼 领英 -更新链接和图像
  • 📸 Instagram -照片/视频帖子、旋转木马(创建者/商业帐户)
  • 📧 电子邮件 -用于推广活动的Gmail SMTP
  • 🤖 MCP 服务器 -AI代理集成
  • 🎨 交互模式 -指导发布体验
  • 📱 电报机器人 -远程控制+克劳德AI聊天
  • 🔐 安全门 -所有敏感操作都需要Telegram确认

______________________________________________________________________

快速开始

1.安装

git clone https://github.com/Alemusica/social-cli-mcp.git
cd social-cli-mcp
npm install

2.配置

cp .env.example .env
# Edit .env with your API credentials

3.测试连接

npm run cli test

4.发帖!

# 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 interactive

______________________________________________________________________

CLI命令

# Post to platforms
social post  [options]
  -t, --twitter              Post to Twitter/X
  -r, --reddit    Post to Reddit
  -l, --linkedin             Post to LinkedIn
  -i, --instagram     Post to Instagram
  -a, --all                  Post to all configured
  --title             Reddit post title
  --link                Include a link
  --hashtags           Comma-separated hashtags
  --media              Comma-separated media URLs

# Post Twitter thread
social thread   ...

# Test connections
social test [--all|--twitter|--reddit|--linkedin|--instagram]

# Show status
social status

# Interactive mode
social interactive
social i

______________________________________________________________________

API凭据设置

推特/X

  1. 首选 developer.twitter.com
  2. 创建项目和应用程序
  3. 生成API密钥和访问令牌
  4. 增添 .env:
   TWITTER_API_KEY=xxx
   TWITTER_API_SECRET=xxx
   TWITTER_ACCESS_TOKEN=xxx
   TWITTER_ACCESS_SECRET=xxx

红迪

  1. 首选 reddit.com/prefs/apps
  2. 创建“脚本”类型的应用程序
  3. 增添 .env:
   REDDIT_CLIENT_ID=xxx
   REDDIT_CLIENT_SECRET=xxx
   REDDIT_USERNAME=xxx
   REDDIT_PASSWORD=xxx

领英

  1. 首选 linkedin.com/developers
  2. 创建一个应用
  3. 请求“在LinkedIn上分享”权限
  4. 获取OAuth访问令牌
  5. 增添 .env:
   LINKEDIN_ACCESS_TOKEN=xxx

Instagram

需要企业或创建者帐户
  1. 首选 developers.facebook.com
  2. 创建一个应用
  3. 添加Instagram图形API
  4. 将Facebook页面链接到Instagram帐户
  5. 获取访问令牌
  6. 增添 .env:
   INSTAGRAM_ACCESS_TOKEN=xxx
   INSTAGRAM_BUSINESS_ACCOUNT_ID=xxx

______________________________________________________________________

MCP 服务器

与Claude、Cursor或任何与MCP兼容的AI代理一起使用。

配置

添加到MCP配置中:

{
  "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"
      }
    }
  }
}

可用工具

工具说明
post_twitter发布推文
post_twitter_thread发布帖子
post_reddit发布到subreddit
post_linkedin发布到LinkedIn
post_instagram发布到Instagram
post_all发布到所有平台
test_connections测试所有连接
get_status获取配置状态

______________________________________________________________________

电报机器人📱

通过安全确认从Telegram控制您的社交媒体。

设置

  1. 创建机器人 @植物学家
  2. 从获取您的用户ID @用户信息机器人
  3. 增添 .env:
   TELEGRAM_BOT_TOKEN=your_bot_token
   TELEGRAM_USER_ID=your_user_id
   ANTHROPIC_API_KEY=sk-ant-xxx  # Optional, for Claude AI

npm run bot

命令

命令描述
/tweet 发布推文(确认)
`/email to\subj\body`发送电子邮件(确认)
/pending查看待处理的操作
/twitter查看最近的推文+指标
/status外联状态
/venues列出联系的场馆
免费文本与Claude AI聊天

安全

所有敏感操作(推特、电子邮件)都需要通过内联按钮进行确认。操作将在5分钟后过期。

docs/TELEGRAM_BOT_SETUP.md 详细设置。

______________________________________________________________________

安全门🔐

使用Claude Code或其他CLI工具时,敏感操作会通过Telegram进行确认:

# 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"

______________________________________________________________________

发展

# Run CLI in dev mode
npm run cli 

# Run MCP server
npm run mcp

# Run Telegram bot
npm run bot

# Build
npm run build

______________________________________________________________________

许可证

麻省理工学院

______________________________________________________________________

建于❤️ 通过 @ Flutur艺术

目录标签

目录标签

社交媒体管理TypeScriptClaude命令行工具本地部署AI代理多平台发布自动化

支持客户端

ClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

oauth

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

tsx

工具数量(toolCount,工具数)

8

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiooauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP