这是一个MCP服务器,用于通过Claude聊天直接创建、管理和发布X/Twitter帖子。
<a href="https://glama.ai/mcp/servers/jsxr09dktf"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=3385656324,3762565863&fm=3081&app=3081&f=PNG?w=760&h=400" alt="X(Twitter)MCP服务器" /> </a>要通过Smithery自动安装X(Twitter)MCP服务器到Claude桌面:
npx -y @smithery/cli install x-mcp --client claude
git clone https://github.com/yourusername/x-mcp.git
brew install uv
创建claude_desktop_config.json文件:
~/Library/Application Support/Claude/并在其中创建文件%APPDATA%/Claude/并在其中创建文件将以下配置添加到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"
}
}
}
}
获取您的X/Twitter API凭证:
http://localhost/,网站URL为http://example.com/更新配置文件:
/path/to/x-mcp替换为您实际的仓库路径完全退出Claude并重新打开它
如果无法正常工作:
pip uninstall uv卸载,然后使用brew install uv重新安装)which uv找到UV路径,并将"command": "uv"替换为完整的路径