twitter-mcp-server

twitter-mcp-server

0

This project is a Model Context Protocol (MCP) server that integrates Claude Desktop with Twitter. It allows users to interact with Twitter by posting tweets, analyzing content, and using prompts for well-structured tweets. Its distinct features provide seamless connectivity with Twitter API for efficient content management.

Twitter MCP Server for Claude Desktop

A Model Context Protocol (MCP) server enabling Claude Desktop to interact with Twitter, providing capabilities to post tweets, analyze content, and create structured tweets based on prompts.

Overview

This MCP server connects Claude Desktop to Twitter via the Twitter API, offering:

  • Resources: Access to Twitter profile, recent tweets, and trending topics
  • Tools: Ability to post tweets, delete tweets, and analyze tweet content
  • Prompts: Templates for concise tweets, Twitter threads, and engagement content

Prerequisites

  • Node.js (v16 or higher)
  • Claude Desktop
  • Twitter Developer Account with API keys

Features

Resources

  • User Profile: Get Twitter profile info
  • Recent Tweets: Retrieve recent tweets
  • Trending Topics: Fetch trending topics

Tools

  • Post Tweet: Publish tweets with validation
  • Delete Tweet: Remove tweets by ID
  • Analyze Tweet: Evaluate engagement potential

Prompts

  • Concise Tweet: Create short tweets
  • Twitter Thread: Generate multi-tweet threads
  • Engagement Tweet: High engagement tweets

Troubleshooting

  • Twitter API Errors: Verify credentials and permissions.
  • Server Not Found: Check configuration path.
  • Module Not Found: Ensure all dependencies are installed.
  • Connection Issues: Restart Claude Desktop after changes.

Security Note

The server requires user confirmation before posting or deleting tweets, but review actions carefully.