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

Servidor MCP de redes sociales

Un servidor de Protocolo de Contexto Modelo (MCP) que se conecta a múltiples plataformas de redes sociales, lo que permite a los usuarios crear y publicar contenido en distintas plataformas a través de instrucciones en lenguaje natural.

Características

  • Interfaz de lenguaje natural : crea publicaciones para múltiples plataformas con instrucciones sencillas
  • Capacidades de investigación : Investigue automáticamente hashtags, tendencias, hechos y noticias.
  • Compatibilidad con múltiples plataformas : publique en Twitter/X, Mastodon y LinkedIn con formato específico de la plataforma
  • Generación de contenido : genere contenido atractivo utilizando múltiples modelos de IA
  • Gestión de límites de velocidad : gestione los límites de velocidad de la API con elegancia mediante colas y respaldos
  • Análisis : Realice un seguimiento del rendimiento de las publicaciones y optimice la estrategia de contenido

Empezando

Prerrequisitos

  • Node.js (versión 18+)
  • npm o hilo
  • Claves API para:
    • Twitter/X
    • Mastodonte
    • LinkedIn
    • OpenAI y/o Anthropic (para generación de contenido)
    • Brave Search (para investigación)

Instalación

  1. Clonar el repositorio:
git clone https://github.com/yourusername/social-media-mcp.git cd social-media-mcp
  1. Instalar dependencias:
npm install
  1. Crea un archivo .env con tus claves API:
# 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. Construir el proyecto:
npm run build
  1. Iniciar el servidor:
npm start

Integración MCP

Para utilizar este servidor MCP con Claude u otro asistente compatible con MCP, agréguelo a su configuración de 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": [] } } }

Herramientas disponibles

crear_publicación

Cree y publique contenido en plataformas de redes sociales según instrucciones en lenguaje natural.

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

obtener_temas_de_tendencia

Obtenga temas de tendencia de las plataformas de redes sociales.

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

tema de investigación

Investiga un tema utilizando Brave Search y Perplexity.

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

Desarrollo

Estructura del proyecto

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

Guiones

  • npm run build : Construye el proyecto
  • npm run dev : Ejecutar en modo de desarrollo con recarga en caliente
  • npm start : Inicia el servidor de producción
  • npm test : Ejecutar pruebas
  • npm run lint : Ejecutar linting
  • npm run format : Código de formato

Scripts de utilidad

El directorio scripts contiene scripts de utilidad para el servidor MCP de redes sociales:

  • scripts/linkedin-oauth.js : maneja el flujo OAuth 2.0 para que LinkedIn obtenga un token de acceso
    • Uso: cd scripts && npm install && npm run linkedin-oauth
    • Consulte scripts/README.md para obtener más detalles

Documentación

El directorio documentation contiene documentación detallada para cada integración de plataforma de redes sociales:

Licencia

Este proyecto está licenciado bajo la licencia ISC.

Expresiones de gratitud

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

Se conecta a múltiples plataformas de redes sociales (Twitter/X, Mastodon, LinkedIn), lo que permite a los usuarios crear y publicar contenido en distintas plataformas a través de instrucciones en lenguaje natural.

  1. Características
    1. Empezando
      1. Prerrequisitos
      2. Instalación
      3. Integración MCP
    2. Herramientas disponibles
      1. crear_publicación
      2. obtener_temas_de_tendencia
      3. tema de investigación
    3. Desarrollo
      1. Estructura del proyecto
      2. Guiones
      3. Scripts de utilidad
      4. Documentación
    4. Licencia
      1. Expresiones de gratitud

        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