Social Media MCP Server

by tayler-id

Integrations

  • 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

ソーシャルメディアMCPサーバー

複数のソーシャル メディア プラットフォームに接続するモデル コンテキスト プロトコル (MCP) サーバー。これにより、ユーザーは自然言語の指示を通じてプラットフォーム間でコンテンツを作成および公開できます。

特徴

  • 自然言語インターフェース: 簡単な指示で複数のプラットフォーム向けの投稿を作成
  • リサーチ機能: ハッシュタグ、トレンド、事実、ニュースを自動的にリサーチします
  • マルチプラットフォームサポート: プラットフォーム固有のフォーマットでTwitter/X、Mastodon、LinkedInに投稿
  • コンテンツ生成: 複数の AI モデルを使用して魅力的なコンテンツを生成します
  • レート制限管理: キューイングとフォールバックを使用して API レート制限を適切に処理します。
  • 分析: 投稿のパフォーマンスを追跡し、コンテンツ戦略を最適化します

はじめる

前提条件

  • Node.js (v18+)
  • npmまたはyarn
  • API キー:
    • ツイッター/X
    • マストドン
    • リンクトイン
    • OpenAIおよび/またはAnthropic(コンテンツ生成用)
    • Brave Search(研究用)

インストール

  1. リポジトリをクローンします。
git clone https://github.com/yourusername/social-media-mcp.git cd social-media-mcp
  1. 依存関係をインストールします:
npm install
  1. API キーを使用して.envファイルを作成します。
# Twitter API Credentials TWITTER_API_KEY=your_api_key TWITTER_API_SECRET=your_api_secret TWITTER_BEARER_TOKEN=your_bearer_token TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_SECRET=your_access_secret TWITTER_OAUTH_CLIENT=your_oauth_client TWITTER_CLIENT_SECRET=your_client_secret # Mastodon API Credentials MASTODON_CLIENT_SECRET=your_client_secret MASTODON_CLIENT_KEY=your_client_key MASTODON_ACCESS_TOKEN=your_access_token # LinkedIn API Credentials LINKEDIN_CLIENT_ID=your_client_id LINKEDIN_CLIENT_SECRET=your_client_secret LINKEDIN_ACCESS_TOKEN=your_access_token # AI API Keys ANTHROPIC_API_KEY=your_anthropic_key OPENAI_API_KEY=your_openai_key BRAVE_API_KEY=your_brave_key # Application Settings LOG_LEVEL=info CACHE_ENABLED=true RATE_LIMIT_ENABLED=true
  1. プロジェクトをビルドします。
npm run build
  1. サーバーを起動します。
npm start

MCP統合

この MCP サーバーを Claude または他の MCP 互換アシスタントで使用するには、MCP 設定に追加します。

{ "mcpServers": { "social-media-mcp": { "command": "node", "args": ["path/to/social-media-mcp/build/index.js"], "env": { "TWITTER_API_KEY": "your_api_key", "TWITTER_API_SECRET": "your_api_secret", "TWITTER_BEARER_TOKEN": "your_bearer_token", "TWITTER_ACCESS_TOKEN": "your_access_token", "TWITTER_ACCESS_SECRET": "your_access_secret", "TWITTER_OAUTH_CLIENT": "your_oauth_client", "TWITTER_CLIENT_SECRET": "your_client_secret", "MASTODON_CLIENT_SECRET": "your_client_secret", "MASTODON_CLIENT_KEY": "your_client_key", "MASTODON_ACCESS_TOKEN": "your_access_token", "LINKEDIN_CLIENT_ID": "your_client_id", "LINKEDIN_CLIENT_SECRET": "your_client_secret", "LINKEDIN_ACCESS_TOKEN": "your_access_token", "ANTHROPIC_API_KEY": "your_anthropic_key", "OPENAI_API_KEY": "your_openai_key", "BRAVE_API_KEY": "your_brave_key" }, "disabled": false, "autoApprove": [] } } }

利用可能なツール

投稿を作成

自然言語の指示に基づいてコンテンツを作成し、ソーシャル メディア プラットフォームに投稿します。

{ "instruction": "Post about the latest AI developments in healthcare", "platforms": ["twitter", "mastodon", "linkedin"], "postImmediately": false }

トレンドトピックを取得する

ソーシャル メディア プラットフォームからトレンドのトピックを取得します。

{ "platform": "twitter", "category": "technology", "count": 5 }

研究トピック

Brave Search と Perplexity を使用してトピックを調査します。

{ "topic": "artificial intelligence ethics", "includeHashtags": true, "includeFacts": true, "includeTrends": true, "includeNews": true }

発達

プロジェクト構造

social-media-mcp/ ├── src/ │ ├── index.ts # Entry point │ ├── config/ # Configuration │ ├── types/ # TypeScript type definitions │ ├── core/ # Core orchestration logic │ ├── nlp/ # Natural language processing │ ├── research/ # Research engine │ │ ├── brave/ # Brave Search integration │ │ ├── perplexity/ # Perplexity integration │ │ └── aggregator/ # Research result aggregation │ ├── content/ # Content generation │ │ ├── strategies/ # AI model strategies │ │ ├── formatter/ # Platform-specific formatting │ │ └── templates/ # Content templates │ ├── platforms/ # Social media platform integrations │ │ ├── twitter/ # Twitter API integration │ │ └── mastodon/ # Mastodon API integration │ ├── analytics/ # Analytics engine │ ├── rate-limit/ # Rate limit management │ └── utils/ # Utility functions ├── memory-bank/ # Project documentation ├── build/ # Compiled JavaScript ├── .env # Environment variables ├── package.json # Dependencies and scripts └── tsconfig.json # TypeScript configuration

スクリプト

  • npm run build : プロジェクトをビルドする
  • npm run dev : ホットリロードで開発モードで実行
  • npm start : 本番サーバーを起動する
  • npm test : テストを実行する
  • npm run lint : リンティングを実行する
  • npm run format : コードのフォーマット

ユーティリティスクリプト

scriptsディレクトリには、ソーシャル メディア MCP サーバー用のユーティリティ スクリプトが含まれています。

  • scripts/linkedin-oauth.js : LinkedIn がアクセス トークンを取得するための OAuth 2.0 フローを処理します。
    • 使用方法: cd scripts && npm install && npm run linkedin-oauth
    • 詳細についてはscripts/README.mdを参照してください。

ドキュメント

documentationディレクトリには、各ソーシャル メディア プラットフォームの統合に関する詳細なドキュメントが含まれています。

ライセンス

このプロジェクトは ISC ライセンスに基づいてライセンスされています。

謝辞

-
security - not tested
F
license - not found
-
quality - not tested

複数のソーシャル メディア プラットフォーム (Twitter/X、Mastodon、LinkedIn) に接続し、ユーザーが自然言語の指示を通じてプラットフォーム間でコンテンツを作成および公開できるようにします。

  1. 特徴
    1. はじめる
      1. 前提条件
      2. インストール
      3. MCP統合
    2. 利用可能なツール
      1. 投稿を作成
      2. トレンドトピックを取得する
      3. 研究トピック
    3. 発達
      1. プロジェクト構造
      2. スクリプト
      3. ユーティリティスクリプト
      4. ドキュメント
    4. ライセンス
      1. 謝辞

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Server for X (Twitter) integration that provides tools for reading your timeline and engaging with tweets. Designed for use with Claude desktop.
          Last updated -
          3
          0
          9
          JavaScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).
          Last updated -
          3
          7
          JavaScript
          MIT License
        • -
          security
          A
          license
          -
          quality
          Enables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.
          Last updated -
          25
          0
          10
          TypeScript
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          An MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.
          Last updated -
          5
          35
          Python
          MIT License
          • Apple

        View all related MCP servers

        ID: 9zu5lcg37u