
0xgval/twitter-x-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
X Tools for Claude MCP: A lightweight toolkit enabling Claude to search Twitter with natural language and display results based on user intent. Get raw tweet data or AI analysis—your choice.
개요
A lightweight, open-source toolkit that enables Claude to search Twitter efficiently with natural language and display results based on user intent. Designed for both raw data viewing and optional analysis. - : Ask Claude to search Twitter in plain English - : Search tweets using natural language or advanced Twitter syntax - : Clean, markdown-formatted tweet display - : Display raw tweets or add analysis based on what you ask for - : Find tweets by keywords, users, dates, engagement metrics, and more - : Retrieve more than the default 20 tweets per search when needed - Node.js v16+ - Claude for Desktop - Free RapidAPI key with access to the "The Old Bird API" (Twitter154) endpoint 1. Visit The Old Bird API on RapidAPI 2. Sign up for a RapidAPI account if you don't have one 3. Subscribe to the API (there is a free tier available) 4. Once subscribed, copy your RapidAPI key from your dashboard 3. : - Copy mcp.json.example to mcp.json in your Claude Desktop directory - Edit mcp.
README
원문 README의 일부입니다. 원문 보기.
X Tools for Claude MCP
A lightweight, open-source toolkit that enables Claude to search Twitter efficiently with natural language and display results based on user intent. Designed for both raw data viewing and optional analysis.
Features
- Natural Language Search: Ask Claude to search Twitter in plain English
- Twitter Search: Search tweets using natural language or advanced Twitter syntax
- Professional Formatting: Clean, markdown-formatted tweet display
- Flexible Output: Display raw tweets or add analysis based on what you ask for
- Advanced Filtering: Find tweets by keywords, users, dates, engagement metrics, and more
- Pagination Support: Retrieve more than the default 20 tweets per search when needed
Installation
Prerequisites
- Node.js v16+
- Claude for Desktop
- Free RapidAPI key with access to the “The Old Bird API” (Twitter154) endpoint
RapidAPI Key Setup
- Visit The Old Bird API on RapidAPI
- Sign up for a RapidAPI account if you don’t have one
- Subscribe to the API (there is a free tier available)
- Once subscribed, copy your RapidAPI key from your dashboard
Setup Steps
-
Clone this repository:
git clone https://github.com/0xGval/twitter-X-mcp-server cd twitter-X-mcp-tools -
Install dependencies:
npm install -
Create your configuration:
- Copy
mcp.json.exampletomcp.jsonin your Claude Desktop directory - Edit
mcp.jsonto include your RapidAPI key and correct file paths
{ "mcpServers": { "x-tools": { "command": "node", "args": ["YOUR_ABSOLUTE_PATH_TO/main.js"], "env": { "RAPIDAPI_KEY": "your_rapidapi_key" } } } } - Copy
-
Configure Claude for Desktop:
- On Windows: Place your
mcp.jsonfile in%APPDATA%\Claude\ - On macOS: Place your
mcp.jsonfile in~/Library/Application Support/Claude/ - Copy
claude-rules.mdandknowledge/TwitterSearchSyntaxGuide.txtto your Claude knowledge base directory - Restart Claude Desktop for the changes to take effect
- On Windows: Place your
Available Tools
Twitter Search
The tool is primarily designed to be used with natural language. Simply ask Claude to search for something on Twitter, and it will interpret your request.
searchTwitter(query: "keyword", section: "latest", limit: 20)
Search Twitter using natural language or advanced syntax:
query: Search query (supports Twitter’s advanced search operators)section: “latest” or “top” results (default: “latest”)limit: Number of tweets to return (default: 20)
Natural Language Examples
Simple Query
Ask Claude:
Show me recent tweets about artificial intelligence
User-Focused Query
Ask Claude:
Find the latest tweets from Elon Musk that mention SpaceX
Complex Natural Query
Ask Claude:
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"x-tools": {
"command": "node",
"args": ["YOUR_ABSOLUTE_PATH_TO/main.js"],
"env": {
"RAPIDAPI_KEY": "your_rapidapi_key"
}
}
}
}