Integrations
Twitter MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with Twitter using the agent-twitter-client library.
Features
- getTweet: Retrieve a tweet by its ID
- sendTweet: Post a new tweet to Twitter
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- Twitter account credentials
Installation
- Clone this repository
- Install dependencies:
Copy
- Create a
.env
file in the root directory with your Twitter credentials:
Copy
Usage
Running the Server
You can run the server using the FastMCP CLI tools:
Copy
Using the Tools
getTweet
Retrieves a tweet by its ID.
Parameters:
tweetId
(string): The ID of the tweet to retrieve
Example:
Copy
sendTweet
Posts a new tweet to Twitter.
Parameters:
text
(string): The text content of the tweet to send
Example:
Copy
Development
This server is built using:
- FastMCP - A TypeScript framework for building MCP servers
- agent-twitter-client - A Twitter client library
To build the TypeScript code:
Copy
License
MIT
This server cannot be installed
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.
Provides tools for interacting with Twitter to retrieve tweets by ID and post new tweets using the agent-twitter-client library.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityServer for X (Twitter) integration that provides tools for reading your timeline and engaging with tweets. Designed for use with Claude desktop.Last updated -309JavaScriptMIT License
- -securityAlicense-qualityEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.Last updated -25010TypeScriptMIT License
- -securityFlicense-qualityProvides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.Last updated -41JavaScript
- -securityAlicense-qualityAllows Claude and other MCP-compatible AI models to access TweetBinder by Audiense analytics data, enabling analysis of hashtags, users, and conversations on Twitter/X with engagement metrics, sentiment analysis, and report generation.Last updated -1TypeScriptApache 2.0