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(Model Context Protocol) 서버로, 사용자는 자연어 명령어를 통해 여러 플랫폼에서 콘텐츠를 만들고 게시할 수 있습니다.

특징

  • 자연어 인터페이스 : 간단한 지침으로 다양한 플랫폼에 대한 게시물을 작성하세요
  • 연구 기능 : 해시태그, 트렌드, 사실 및 뉴스를 자동으로 연구합니다.
  • 다중 플랫폼 지원 : 플랫폼별 서식을 사용하여 Twitter/X, Mastodon 및 LinkedIn에 게시
  • 콘텐츠 생성 : 다양한 AI 모델을 사용하여 매력적인 콘텐츠 생성
  • 비율 제한 관리 : 대기열 및 폴백을 통해 API 비율 제한을 원활하게 처리합니다.
  • 분석 : 게시물 성과를 추적하고 콘텐츠 전략을 최적화합니다.

시작하기

필수 조건

  • Node.js(v18+)
  • npm 또는 yarn
  • API 키:
    • 트위터/X
    • 마스토돈
    • 링크드인
    • OpenAI 및/또는 Anthropic(콘텐츠 생성용)
    • Brave Search(연구용)

설치

  1. 저장소를 복제합니다.

지엑스피1

  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