X/Twitter MCP Server
@Barresider
关于 X/Twitter MCP Server
An MCP Server to interact with X/Twitter besides the official API.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"x-mcp": {
"command": "npx",
"args": [
"-y",
"@barresider/x-mcp"
],
"env": {
"TWITTER_USERNAME": "your_twitter_username",
"TWITTER_PASSWORD": "your_twitter_password"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is X/Twitter MCP Server?
X/Twitter MCP Server is a Model Context Protocol (MCP) server that provides unofficial X/Twitter API access through browser automation using Playwright. It enables AI agents and applications to programmatically interact with X/Twitter for content creation, scraping, and social media automation.
How to use X/Twitter MCP Server?
Add the server configuration to your Claude Desktop config file with your X/Twitter credentials as environment variables (TWITTER_USERNAME, TWITTER_PASSWORD). Optionally, provide a PROXY_URL. Restart Claude Desktop to begin using the 25+ MCP tools. For standalone use, run npm run cli login to authenticate.
Key features of X/Twitter MCP Server
- Post tweets, threads, and interact with posts
- Scrape timelines, profiles, and search tweets
- Like, retweet, bookmark, and reply to posts
- Upload images, videos, and GIFs to tweets
- Supports stdio and HTTP/SSE transport
- 25+ MCP tools for X/Twitter automation
Use cases of X/Twitter MCP Server
- Automate posting tweets and threads from AI agents
- Scrape trending topics and hashtags for analysis
- Search for viral content with minimum engagement filters
- Monitor and interact with comments on posts
- Extract comprehensive user profiles and recent posts
FAQ from X/Twitter MCP Server
What are the prerequisites for X/Twitter MCP Server?
Node.js 18+ and valid X/Twitter account credentials are required. Docker is optional for containerized deployment.
How does authentication work?
Credentials are provided via TWITTER_USERNAME and TWITTER_PASSWORD environment variables. Run npm run cli login to store a session in the directory specified by AUTH_DIR (default playwright/.auth).
Does the server support proxies?
Yes, it supports HTTP/HTTPS proxies configured via the PROXY_URL environment variable, with optional authentication, useful for rotating IPs or accessing restricted networks.
What are common troubleshooting steps?
Verify credentials, re-authenticate, check for UI updates, reduce request frequency, and ensure proper environment variables for Docker.
Is this tool official or affiliated with X/Twitter?
No, this is an unofficial tool using browser automation and is not affiliated with X/Twitter. Use responsibly and respect X/Twitter's terms of service.
其他 分类下的更多 MCP 服务器
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Nginx UI
0xJackyYet another WebUI for Nginx
评论