此MCP服务器允许客户端与Twitter交互,支持发布推文和搜索Twitter,为用户提供便捷的Twitter操作体验。
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"twitter-mcp": {
"command": "npx",
"args": ["-y", "@enescinar/twitter-mcp"],
"env": {
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
}
}
}
这样,Claude就可以通过两个工具与Twitter交互:
post_tweet
:发布一条新推文search_tweets
:搜索推文尝试询问Claude:
日志位置:
%APPDATA%\Claude\logs\mcp-server-twitter.log
~/Library/Logs/Claude/mcp-server_twitter.log
如果你想贡献或从源代码运行:
git clone https://github.com/EnesCinr/twitter-mcp.git
cd twitter-mcp
npm install
npm run build
npm start
MIT