Skip to main content
Glama
6551Team

Twitter MCP Server

by 6551Team

빠른 설치

먼저 https://6551.io/mcp에 접속하여 API 토큰을 받으세요.

Claude Code

claude mcp add twitter \
  -e TWITTER_TOKEN=<your-token> \
  -- uv --directory /path/to/twitter-mcp run twitter-mcp

/path/to/twitter-mcp를 로컬 프로젝트 경로로, <your-token>을 귀하의 토큰으로 바꾸세요.

OpenClaw

export TWITTER_TOKEN="<your-token>"
cp -r openclaw-skill/opentwitter ~/.openclaw/skills/

AI가 검토 및 설치하도록 하기

이 MCP가 안전한지 확실하지 않나요? 아래 프롬프트를 AI 어시스턴트에게 붙여넣으세요. 소스 코드를 먼저 검토한 후 안전하면 설치할 것입니다:

이 프롬프트를 복사하여 AI 어시스턴트에게 보내세요 ( <project-path><your-token>을 실제 값으로 바꾸세요):

Please review and install the twitter-mcp MCP server for me. The project is at <project-path>.

Steps:
1. Review these files for security:
   - src/twitter_mcp/api_client.py — Confirm it only connects to ai.6551.io, no data sent elsewhere
   - src/twitter_mcp/config.py — Confirm token is only read from local config.json or env vars, no hardcoded secrets or leaks
   - src/twitter_mcp/tools.py — Confirm all tools only perform API queries, no file writes, command execution, or dangerous operations
   - pyproject.toml — Confirm dependencies are only mcp, httpx, no suspicious packages
2. Tell me your conclusion: safe / risky / problematic, with specific reasons
3. If safe, run the install (get Token from https://6551.io/mcp):
   claude mcp add twitter -e TWITTER_TOKEN=<your-token> -- uv --directory <project-path> run twitter-mcp

무엇을 할 수 있나요?

연결되면 AI 어시스턴트에게 다음과 같이 물어보세요:

질문

동작

"@elonmusk의 트위터 프로필 보여줘"

사용자 프로필 정보 가져오기

"@VitalikButerin이 최근에 올린 트윗은 뭐야"

사용자의 최근 트윗 가져오기

"비트코인 관련 트윗 검색해줘"

키워드 검색

"#crypto 해시태그가 포함된 트윗 찾아줘"

해시태그 검색

"좋아요 1000개 이상인 ETH 관련 인기 트윗"

참여도 필터를 사용한 검색

"팔로워 추적 기능을 사용하여 @elonmusk 모니터링해줘"

옵션과 함께 사용자를 감시 목록에 추가

"이 트윗을 인용한 사람은 누구야"

트윗의 인용 트윗 가져오기

"이 트윗을 리트윗한 사람은 누구야"

트윗을 리트윗한 사용자 가져오기

"최근 @elonmusk를 팔로우한 사람은 누구야"

새로운 팔로워 이벤트 가져오기

"@elonmusk를 언팔로우한 사람은 누구야"

언팔로우 이벤트 가져오기

"@elonmusk가 삭제한 트윗은 뭐야"

사용자의 삭제된 트윗 가져오기

"어떤 KOL들이 @elonmusk를 팔로우해"

KOL 팔로워 가져오기


사용 가능한 도구

도구

설명

get_twitter_user

사용자 이름으로 프로필 가져오기

get_twitter_user_by_id

숫자 ID로 프로필 가져오기

get_twitter_user_tweets

사용자의 최근 트윗 가져오기

search_twitter

기본 필터로 트윗 검색

search_twitter_advanced

다중 필터를 사용한 고급 검색

get_twitter_follower_events

팔로워/언팔로워 이벤트 가져오기

get_twitter_deleted_tweets

사용자의 삭제된 트윗 가져오기

get_twitter_kol_followers

KOL(핵심 오피니언 리더) 팔로워 가져오기

get_twitter_article_by_id

ID로 트위터 아티클 가져오기

get_twitter_tweet_by_id

중첩된 답글/인용 트윗을 포함하여 ID로 트윗 가져오기

get_twitter_quote_tweets_by_id

특정 트윗을 인용한 트윗 가져오기

get_twitter_retweet_users_by_id

특정 트윗을 리트윗한 사용자 가져오기

get_twitter_watch

모든 트위터 모니터링 사용자 가져오기

add_twitter_watch

트위터 사용자를 모니터링 목록에 추가 (이벤트 유형 옵션 포함)

delete_twitter_watch

모니터링 목록에서 트위터 사용자 삭제


구성

API 토큰 받기

https://6551.io/mcp에 접속하여 API 토큰을 받으세요.

환경 변수를 설정하세요:

# macOS / Linux
export TWITTER_TOKEN="<your-token>"

# Windows PowerShell
$env:TWITTER_TOKEN = "<your-token>"

변수

필수

설명

TWITTER_TOKEN

6551 API Bearer 토큰 (https://6551.io/mcp 에서 획득)

TWITTER_API_BASE

아니오

REST API URL 재정의

TWITTER_MAX_ROWS

아니오

쿼리당 최대 결과 수 (기본값: 100)

프로젝트 루트의 config.json도 지원합니다 (환경 변수가 우선합니다):

{
  "api_base_url": "https://ai.6551.io",
  "api_token": "<your-token>",
  "max_rows": 100
}

WebSocket 실시간 구독

엔드포인트: wss://ai.6551.io/open/twitter_wss?token=YOUR_TOKEN

모니터링 중인 트위터 계정의 실시간 이벤트를 구독하세요.

트위터 이벤트 구독

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "twitter.subscribe"
}

응답:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "success": true
  }
}

구독 취소

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "twitter.unsubscribe"
}

서버 푸시 - 트위터 이벤트

모니터링 중인 계정에 활동이 발생하면 서버가 푸시합니다:

{
  "jsonrpc": "2.0",
  "method": "twitter.event",
  "params": {
    "id": 123456,
    "twAccount": "elonmusk",
    "twUserName": "Elon Musk",
    "profileUrl": "https://twitter.com/elonmusk",
    "eventType": "NEW_TWEET",
    "content": "...",
    "ca": "0x1234...",
    "remark": "Custom note",
    "createdAt": "2026-03-06T10:00:00Z"
  }
}

참고: content 필드 구조는 이벤트 유형에 따라 다릅니다 (아래 참조).


**Event Types and Content Structure**:

#### Tweet Events
- `NEW_TWEET` - New tweet posted
- `NEW_TWEET_REPLY` - New reply tweet
- `NEW_TWEET_QUOTE` - New quote tweet
- `NEW_RETWEET` - Retweeted
- `CA` - Tweet with CA address

Content structure for tweet events:
```json
{
  "id": "1234567890",
  "text": "Tweet content...",
  "createdAt": "2026-03-06T10:00:00Z",
  "language": "en",
  "retweetCount": 100,
  "favoriteCount": 500,
  "replyCount": 20,
  "quoteCount": 10,
  "viewCount": 10000,
  "userScreenName": "elonmusk",
  "userName": "Elon Musk",
  "userIdStr": "44196397",
  "userFollowers": 170000000,
  "userVerified": true,
  "conversationId": "1234567890",
  "isReply": false,
  "isQuote": false,
  "hashtags": ["crypto", "bitcoin"],
  "media": [
    {
      "type": "photo",
      "url": "https://...",
      "thumbUrl": "https://..."
    }
  ],
  "urls": [
    {
      "url": "https://...",
      "expandedUrl": "https://...",
      "displayUrl": "example.com"
    }
  ],
  "mentions": [
    {
      "username": "VitalikButerin",
      "name": "Vitalik Buterin"
    }
  ]
}

팔로워 이벤트

  • NEW_FOLLOWER - 새로운 팔로워

  • NEW_UNFOLLOWER - 언팔로워 이벤트

팔로워 이벤트의 콘텐츠 구조 (배열):

[
  {
    "id": 123,
    "twId": 44196397,
    "twAccount": "elonmusk",
    "twUserName": "Elon Musk",
    "twUserLabel": "Verified",
    "description": "User bio...",
    "profileUrl": "https://...",
    "bannerUrl": "https://...",
    "followerCount": 170000000,
    "friendCount": 500,
    "createdAt": "2026-03-06T10:00:00Z"
  }
]

프로필 업데이트 이벤트

  • UPDATE_NAME - 사용자 이름 변경 (콘텐츠: 새 이름 문자열)

  • UPDATE_DESCRIPTION - 자기소개 업데이트 (콘텐츠: 새 설명 문자열)

  • UPDATE_AVATAR - 프로필 사진 변경 (콘텐츠: 새 아바타 URL 문자열)

  • UPDATE_BANNER - 배너 이미지 변경 (콘텐츠: 새 배너 URL 문자열)

기타 이벤트

  • TWEET_TOPPING - 트윗 고정

  • DELETE - 트윗 삭제

  • SYSTEM - 시스템 이벤트

  • TRANSLATE - 트윗 번역

  • CA_CREATE - CA 토큰 생성


데이터 구조

트위터 사용자

{
  "userId": "44196397",
  "screenName": "elonmusk",
  "name": "Elon Musk",
  "description": "...",
  "followersCount": 170000000,
  "friendsCount": 500,
  "statusesCount": 30000,
  "verified": true
}

트윗

{
  "id": "1234567890",
  "text": "Tweet content...",
  "createdAt": "2024-02-20T12:00:00Z",
  "retweetCount": 1000,
  "favoriteCount": 5000,
  "replyCount": 200,
  "userScreenName": "elonmusk",
  "hashtags": ["crypto", "bitcoin"],
  "urls": [{"url": "https://..."}]
}

아래 모든 구성에서 /path/to/twitter-mcp를 실제 로컬 프로젝트 경로로, <your-token>https://6551.io/mcp에서 받은 토큰으로 바꾸세요.

Claude Desktop

구성 편집 (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "twitter": {
      "command": "uv",
      "args": ["--directory", "/path/to/twitter-mcp", "run", "twitter-mcp"],
      "env": {
        "TWITTER_TOKEN": "<your-token>"
      }
    }
  }
}

Cursor

~/.cursor/mcp.json 또는 설정 > MCP 서버:

{
  "mcpServers": {
    "twitter": {
      "command": "uv",
      "args": ["--directory", "/path/to/twitter-mcp", "run", "twitter-mcp"],
      "env": {
        "TWITTER_TOKEN": "<your-token>"
      }
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "twitter": {
      "command": "uv",
      "args": ["--directory", "/path/to/twitter-mcp", "run", "twitter-mcp"],
      "env": {
        "TWITTER_TOKEN": "<your-token>"
      }
    }
  }
}

Cline

VS Code 사이드바 > Cline > MCP 서버 > 구성, cline_mcp_settings.json 편집:

{
  "mcpServers": {
    "twitter": {
      "command": "uv",
      "args": ["--directory", "/path/to/twitter-mcp", "run", "twitter-mcp"],
      "env": {
        "TWITTER_TOKEN": "<your-token>"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Continue.dev

~/.continue/config.yaml:

mcpServers:
  - name: twitter
    command: uv
    args:
      - --directory
      - /path/to/twitter-mcp
      - run
      - twitter-mcp
    env:
      TWITTER_TOKEN: <your-token>

Cherry Studio

설정 > MCP 서버 > 추가 > stdio 유형: 명령 uv, 인수 --directory /path/to/twitter-mcp run twitter-mcp, 환경 변수 TWITTER_TOKEN.

Zed Editor

~/.config/zed/settings.json:

{
  "context_servers": {
    "twitter": {
      "command": {
        "path": "uv",
        "args": ["--directory", "/path/to/twitter-mcp", "run", "twitter-mcp"],
        "env": {
          "TWITTER_TOKEN": "<your-token>"
        }
      }
    }
  }
}

모든 stdio MCP 클라이언트

TWITTER_TOKEN=<your-token> \
  uv --directory /path/to/twitter-mcp run twitter-mcp

호환성

클라이언트

설치 방법

상태

Claude Code

claude mcp add

한 줄 명령어

OpenClaw

스킬 디렉토리 복사

한 줄 명령어

Claude Desktop

JSON 구성

지원됨

Cursor

JSON 구성

지원됨

Windsurf

JSON 구성

지원됨

Cline

JSON 구성

지원됨

Continue.dev

YAML / JSON

지원됨

Cherry Studio

GUI

지원됨

Zed

JSON 구성

지원됨


개발

cd /path/to/twitter-mcp
uv sync
uv run twitter-mcp
# MCP Inspector
npx @modelcontextprotocol/inspector uv --directory /path/to/twitter-mcp run twitter-mcp

프로젝트 구조

├── README.md
├── docs/
│   ├── README_JA.md           # 日本語
│   └── README_KO.md           # 한국어
├── openclaw-skill/opentwitter/    # OpenClaw Skill
├── pyproject.toml
├── config.json
└── src/twitter_mcp/
    ├── server.py              # Entry point
    ├── app.py                 # FastMCP instance
    ├── config.py              # Config loader
    ├── api_client.py          # HTTP client
    └── tools.py               # 8 tools

라이선스

MIT

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - A tier

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/6551Team/opentwitter-mcp'

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