social-media-mcp

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.

社交媒体服务器

用于管理社交媒体帖子的模型上下文协议 (MCP) 服务器,目前支持 X(以前称为 Twitter)。

特征

  • 向 X (Twitter) 发送消息
  • 在 X 上创建线程
  • 回复现有主题
  • 列出 X 个带有过滤选项的帖子
  • 平台信息端点

先决条件

  • Node.js 16 或更高版本
  • Twitter API 凭证
    • API 密钥
    • API 秘密
    • 访问令牌
    • 访问秘密

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装社交媒体服务器:

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

手动安装

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 使用您的 Twitter 凭证创建一个 .env 文件:
TWITTER_API_KEY=your_api_key TWITTER_API_SECRET=your_api_secret TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_SECRET=your_access_secret

建筑

要构建项目,请运行:

npm run build

可用工具

  • post_to_x - 向 X 发送消息
    • 必需: content (字符串)
    • 可选: threadId (字符串)
  • create_x_thread - 在 X 上创建新线程
    • 必需: content (字符串)
  • list_x_post - 列出 X 个帖子,并可选择过滤
    • 可选: limit (数量)
    • 可选: threadId (字符串)

资源

服务器通过以下方式提供平台信息:

  • socialmedia://platforms/x

发展

该项目使用 TypeScript 并遵循模型上下文协议 (Model Context Protocol) 规范。主服务器实现位于 index.ts 中,类型定义在 types.ts 中。

执照

该项目采用 MIT 许可证

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

用于管理社交媒体帖子的模型上下文协议 (MCP) 服务器,目前支持 X(以前称为 Twitter)。

  1. Features
    1. Prerequisites
      1. Installation
        1. Installing via Smithery
        2. Manual Installation
      2. Building
        1. Available Tools
          1. Resources
            1. Development
              1. License
                ID: 55bvn41dtb