Twitter MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Twitter MCP 服务器

该 MCP 服务器允许客户端与 Twitter 进行交互,从而可以发布推文和搜索 Twitter。

快速入门

  1. 创建 Twitter 开发者帐户并从Twitter 开发者门户获取 API 密钥
  2. 将此配置添加到您的 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" } } } }
  1. 重启Claude桌面

就是这样!Claude 现在可以通过两种工具与 Twitter 进行互动:

  • post_tweet :发布一条新推文
  • search_tweets :搜索推文

示例用法

尝试询问克劳德:

  • “你能发一条推文说‘克劳德向你问好!’吗?”
  • “你能搜索关于 Claude AI 的推文吗?”

故障排除

日志可以在以下位置找到:

  • Windows%APPDATA%\Claude\logs\mcp-server-twitter.log
  • macOS~/Library/Logs/Claude/mcp-server-twitter.log

发展

如果您想贡献或从源代码运行:

  1. 克隆存储库:
git clone https://github.com/EnesCinr/twitter-mcp.git cd twitter-mcp
  1. 安装依赖项:
npm install
  1. 建造:
npm run build
  1. 跑步:
npm start

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 服务器使 Claude 能够与 Twitter 进行交互,从而允许发布推文和搜索 Twitter 内容。

  1. Quick Start
    1. Example Usage
      1. Troubleshooting
        1. Development
          1. License
            ID: dhsudtc7cd