Directory / Social & communication / X(Twitter)MCP服务器 X(Twitter)MCP服务器 by vidhupv
用于创建X(Twitter)帖子的草稿、线程的服务器,利用大语言模型(LLMs)直接从聊天中发布。需要通过环境变量配置X/Twitter API凭据。
Social & communication stdio Community
Repository-wide counts · Cached 2026-03-07
Overview The X(Twitter)MCP服务器 MCP server is a publicly available project. Review the upstream repository for installation instructions, supported tools, compatibility, permissions, and current maintenance status.
Configuration Configuration, transport, authentication, and runtime requirements vary by project. Open the repository before connecting and use the smallest set of credentials and permissions required.
Open the X(Twitter)MCP服务器 repository to read the latest documentation.
支持多设备和 MCP(模型上下文协议)服务器集成的 WhatsApp API,适用于 AI 代理和工具。支持通过命令行参数、环境变量和 .env 文件进行配置。需要 FFmpeg 进行媒体处理。无需通过环境变量提供外部数据文件。
支持MacOS、Windows、Linux、iOS、Android和Web的跨平台AI聊天客户端。需要外部数据文件,例如chatmcp.db(聊天记录)、config.json(设置)以及存储在各平台特定目录中的MCP服务器配置。
总结您的聊天消息。需要通过 CHAT_DB_PATH 环境变量配置的聊天数据库文件路径。
Integration with Telegram implemented via the Model Context Protocol (MCP). Requires external configuration through a .env file, including settings such as TELEGRAM_API_ID, TELEGRAM_API_HASH, TELEGRAM_SESSION_STRING, or TELEGRAM_SESSION_NAME for session management.
FROM THE SOURCE Repository README Build-time snapshot · Retrieved 2026-10-05
View original
An MCP server to create, manage and publish X/Twitter posts directly through Claude chat.
Quick Setup Installing via Smithery To install X(Twitter) MCP Server for Claude Desktop automatically via Smithery :
npx -y @smithery/cli install x-mcp --client claude
Manual Installation
Clone the repository:
git clone https://github.com/yourusername/x-mcp.git
Install UV globally using Homebrew in Terminal:
brew install uv
Create claude_desktop_config.json:
For MacOS: Open directory ~/Library/Application Support/Claude/ and create the file inside it
For Windows: Open directory %APPDATA%/Claude/ and create the file inside it
Add this configuration to claude_desktop_config.json:
{
"mcpServers": {
"x_mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/x-mcp",
"run",
"x-mcp"
],
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret",
"TWITTER_ACCESS_TOKEN": "your_access_token",
"TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret"
}
}
}
}
Get your X/Twitter API credentials:
Go to X API Developer Portal
Create a project
In User Authentication Settings: Set up with Read and Write permissions, Web App type
Set Callback URL to http://localhost/ and Website URL to http://example.com/
Generate and copy all keys and tokens from Keys and Tokens section
Update the config file:
Replace /path/to/x-mcp with your actual repository path
Add your X/Twitter API credentials
Quit Claude completely and reopen it
Usage Examples
"Tweet 'Just learned how to tweet through AI - mind blown! 🤖✨'"
"Create a thread about the history of pizza"
"Show me my draft tweets"
"Publish this draft!"
"Delete that draft"
Troubleshooting If not working:
Make sure UV is installed globally (if not, uninstall with pip uninstall uv and reinstall with brew install uv)
Or find UV path with which uv and replace "command": "uv" with the full path
Verify all X/Twitter credentials are correct
Check if the x-mcp path in config matches your actual repository location