Skip to main content
Glama

Twitter MCP Server

MIT License
108
195
  • Apple

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

运行评估

evals 包会加载一个 mcp 客户端,然后运行 index.ts 文件,因此测试之间无需重新构建。您可以通过在 npx 命令前添加前缀来加载环境变量。完整文档可在此处找到。

OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts

执照

麻省理工学院

You must be authenticated.

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

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.

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

  1. 快速入门
    1. 示例用法
      1. 故障排除
        1. 发展
          1. 运行评估
            1. 执照

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                An MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.
                Last updated -
                5
                35
                Python
                MIT License
                • Apple
              • -
                security
                -
                license
                -
                quality
                An MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.
                Last updated -
                TypeScript
              • -
                security
                A
                license
                -
                quality
                A headless MCP server that provides Twitter API access without requiring local credential setup, enabling core Twitter operations like searching tweets, getting user tweets, posting tweets, and replying to tweets.
                Last updated -
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                An MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.
                Last updated -
                JavaScript

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/EnesCinr/twitter-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server