@promptordie/xmcp
v1.0.0
Published
Extended Model Context Protocol servers for ElizaOS integration
Maintainers
Readme
@promptordie/xmcp
Extended Model Context Protocol (MCP) servers for ElizaOS integration.
Installation
npm install @promptordie/xmcpTwitter MCP Server
The Twitter MCP server provides a complete interface for interacting with Twitter/X through the Model Context Protocol.
Features
- Post tweets and replies
- Like and retweet posts
- Search tweets
- Get timeline and mentions
- Follow/unfollow users
- Get user information
Configuration
Set the following environment variables:
# Required
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET=your_api_secret
# For user authentication (required for most operations)
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_SECRET=your_access_secret
# Alternative: For app-only authentication
TWITTER_BEARER_TOKEN=your_bearer_tokenUsage
As a standalone server
npx xmcp-twitterIn ElizaOS
import { createTwitterServer } from '@promptordie/xmcp';
const twitterServer = createTwitterServer({
appKey: process.env.TWITTER_API_KEY,
appSecret: process.env.TWITTER_API_SECRET,
accessToken: process.env.TWITTER_ACCESS_TOKEN,
accessSecret: process.env.TWITTER_ACCESS_SECRET
});
// Use with ElizaOS MCP pluginAvailable Tools
post_tweet- Post a new tweetreply_to_tweet- Reply to an existing tweetlike_tweet- Like a tweetretweet- Retweet a tweetsearch_tweets- Search for tweetsget_timeline- Get home timelineget_mentions- Get mentions timelinefollow_user- Follow a userunfollow_user- Unfollow a userget_user_info- Get information about a user
License
MIT
Author
promptordie
