MCP.so
Sign In
Servers
T

Twitter Mcp Js

@yolleygit

A complete Twitter API MCP server implementation based on the API endpoints provided by twitterapi.io.

Overview

What is Twitter Mcp Js?

A complete Model Context Protocol (MCP) server for the Twitter API, built on endpoints provided by twitterapi.io. It offers 32 tools for reading user data, tweets, communities, trends, and performing actions like posting, liking, following, and messaging.

How to use Twitter Mcp Js?

After cloning the repository and installing dependencies, configure your TWITTER_API_KEY in a .env file. Start the server with npm run dev (development) or npm start (production). Integrate the server with an MCP client using either a local Node.js command or the npx command, both requiring the API key as an environment variable.

Key features of Twitter Mcp Js

  • 32 tools covering user, tweet, community, trend, and action endpoints
  • Get user info, tweets, followers, followings, and mentions
  • Batch retrieve user data and check follow relationships
  • Search tweets with advanced queries
  • Create, delete, retweet, like, and unlike tweets
  • Send direct messages and manage follows
  • Community management: create, delete, join, leave, get info/members
  • Fetch trending topics and account info

Use cases of Twitter Mcp Js

  • Automate Twitter content posting and engagement (like, retweet, follow)
  • Monitor user activity, tweets, and mentions for social listening
  • Manage community membership and retrieve community data
  • Analyze trends and perform advanced tweet searches
  • Build AI agents that interact with Twitter through MCP

FAQ from Twitter Mcp Js

What API key does Twitter Mcp Js require?

It requires a TWITTER_API_KEY obtained from twitterapi.io.

How do I run the server locally?

Install dependencies, configure the .env file with your API key, then run npm run dev for development or npm start for production.

How do I configure an MCP client to use this server?

Use the provided JSON configurations: for local development set command to node with the path to src/index.js; for remote use set command to npx with twitter-mcp-js. Both require the TWITTER_API_KEY environment variable.

What actions can the server perform besides reading data?

It supports creating and deleting tweets, retweeting, liking/unliking, following/unfollowing, sending DMs, and creating/deleting/joining/leaving communities.

Does the server include error handling?

Yes, it has comprehensive error handling for API request errors, parameter validation errors, network connection errors, and authentication errors.

Tags

More from Other