This repository provides an MCP server for interacting with Twitter, allowing users to retrieve tweets by ID and post new tweets using the agent-twitter-client library and FastMCP framework.
This repository provides an MCP (Model Context Protocol) server designed to facilitate interaction with Twitter, leveraging the agent-twitter-client library.
npm install or yarn install..env file, including username, password, and optional 2FA secret. API keys and tokens can be used as a fallback authentication method.Utilize FastMCP CLI tools to run the server:
npx fastmcp dev # Development mode
npx fastmcp inspect # Visual inspectionThe server exposes two primary functions: getTweet which accepts a tweetId string, and sendTweet which accepts a text string for the tweet content.
Built using FastMCP and agent-twitter-client. Use npx tsc to compile the TypeScript code.
MIT
takiAA/twitter-scraper-mcp
March 6, 2025
March 6, 2025
JavaScript