DeepSeek 导航网:
Twitter MCP 服务器允许客户端与 Twitter 交互,从而可以发布推文和搜索 Twitter 。
快速开始
- 创建一个 Twitter 开发者账户,并从Twitter 开发者门户获取您的 API 密钥。
- 将以下配置添加到您的 Claude Desktop 配置文件中:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/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 Desktop
就这样! Claude 现在可以通过两个工具与 Twitter 进行交互:
post_tweet
: 发布一条新推文search_tweets
: 搜索推文
使用示例
尝试向 Claude 提问:
- "你能发一条推文说'Hello from Claude!'吗?"
- "你能搜索关于 Claude AI 的推文吗?"
故障排除
日志可以在以下位置找到:
- Windows:
%APPDATA%\Claude\logs\mcp-server-twitter.log
- macOS:
~/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
提供了钉钉 API 的访问功能