MCP YouTube Transcript
An MCP server retrieving transcripts of YouTube videos
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Read public X posts, replies, profiles, and search results through Rettiwt or the official API.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
RETTIWT_API_KEYค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"twitter": {
"command": "npx",
"args": [
"-y",
"@granitebps/twitter-mcp"
],
"env": {
"RETTIWT_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add twitter --env RETTIWT_API_KEY='ใส่ค่าของคุณ' -- npx -y @granitebps/twitter-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"twitter": {
"command": "npx",
"args": [
"-y",
"@granitebps/twitter-mcp"
],
"env": {
"RETTIWT_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"twitter": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@granitebps/twitter-mcp"
],
"env": {
"RETTIWT_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub granitebps ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: RETTIWT_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.1.0) เข้า registry 29 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
An MCP server retrieving transcripts of YouTube videos
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Twitter/X MCP lets an MCP client read public X posts, replies, and profiles, or search X. It uses Rettiwt by default, so you do not need an X developer plan. You can switch to the official X API if you have access.
RETTIWT_API_KEY. Official X API credentials work when you select API mode.The full project check and all five live MCP tool calls passed on Node.js 24.19.0. CI also runs the full project check on Node 24.
The published package and Rettiwt 7.1.4 still declare engines.node: "^22.21.0". Installing on Node 24 can therefore produce EBADENGINE warnings, and npm rejects the installation when engine-strict is enabled. Use Node 22.21.0 or a newer Node 22 release for installation within the declared supported range. Official Node 24 support remains pending a Rettiwt release that declares Node 24 compatibility and a corresponding update to this package's engine range.
Once the package is published, your MCP client can run it without a clone:
npx -y @granitebps/twitter-mcp
The server selects Rettiwt when you omit TWITTER_MODE. Pass RETTIWT_API_KEY in the client configuration.
The server uses stdio. Keep stdout reserved for MCP traffic.
To develop the server or use a clone directly:
git clone https://github.com/granitebps/twitter-mcp.git
cd twitter-mcp npm ci npm run build
Point your MCP client at the compiled entry point:
node /absolute/path/to/twitter-mcp/dist/cli.js
Run npm run build after each source change. Do not use src or npm run dev as the client's stdio command. Build logs on stdout can corrupt MCP messages.
Each example starts with the npm package, followed by the local equivalent. Replace /absolute/path/to/twitter-mcp with your clone's path and your_key_here with your Rettiwt key. Do not commit a configuration file that contains the key.
Add the npm package to Claude Code:
claude mcp add twitter --env RETTIWT_API_KEY=your_key_here -- npx -y @granitebps/twitter-mcp
For a local build:
claude mcp add twitter --env RETTIWT_API_KEY=your_key_here -- node /absolute/path/to/twitter-mcp/dist/cli.js
Claude Code uses local scope by default. Add --scope user before twitter to make the server available across projects.
Claude Desktop reads the same server from claude_desktop_config.json. Restart the app after editing the file.
{
"mcpServers": { "twitter": { "command": "npx", "args": ["-y", "@granitebps/twitter-mcp"], "env": { "RETTIWT_API_KEY": "your_key_here" } } } }
For a local build, replace command and args with:
{
"command": "node", "args": ["/absolute/path/to/twitter-mcp/dist/cli.js"] }
Add the npm package to ~/.codex/config.toml, or to .codex/config.toml in a trusted project:
[mcp_servers.twitter]
command = "npx" args = ["-y", "@granitebps/twitter-mcp"]
[mcp_servers.twitter.env] RETTIWT_API_KEY = "your_key_here"
For a local build:
[mcp_servers.twitter]
command = "node" args = ["/absolute/path/to/twitter-mcp/dist/cli.js"]
[mcp_servers.twitter.env] RETTIWT_API_KEY = "your_key_here"
Restart Codex after editing the file. The CLI, IDE extension, and desktop app share this configuration on the same computer.
Add the npm package to opencode.json or opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json", "mcp": { "twitter": { "type": "local", "command": ["npx", "-y", "@granitebps/twitter-mcp"], "enabled": true, "environment": { "RETTIWT_API_KEY": "your_key_here" } } } }
For a local build, replace the command array with:
{
"command": ["node", "/absolute/path/to/twitter-mcp/dist/cli.js"] }
Add the npm package to .cursor/mcp.json in a project, or to ~/.cursor/mcp.json for global use:
{
"mcpServers": { "twitter": { "command": "npx", "args": ["-y", "@granitebps/twitter-mcp"], "env": { "RETTIWT_API_KEY": "your_key_here" } } } }
For a local build, replace command and args with:
{
"command": "node", "args": ["/absolute/path/to/twitter-mcp/dist/cli.js"] }
| Mode | Selection | Credentials | Notes |
|---|---|---|---|
| Rettiwt | Default, or TWITTER_MODE=rettiwt | RETTIWT_API_KEY | Free of X API charges. Uses unofficial internal endpoints and may break or put the account at risk. |
| Official API | TWITTER_MODE=api | Bearer token or complete OAuth credentials | Uses the supported X API. X controls access tiers and pricing. |
Rettiwt requires authenticated user mode in this server. Guest mode is not supported.
RETTIWT_API_KEY in the MCP client's environment.TWITTER_MODE, or set TWITTER_MODE=rettiwt explicitly.A Rettiwt key contains X session cookies and has the same access as the account. Treat it like a password. Do not commit it, paste it into an issue, log it, or pass it as a command-line argument. Use a key only for an account you own or have permission to access.
Rettiwt is unofficial. X's automation rules prohibit non-API website automation and warn that violations may lead to account suspension. Read the X Rules before using this mode. You accept the compliance and account risk.
Use a bearer token:
TWITTER_MODE=api
TWITTER_BEARER_TOKEN=your_bearer_token
Or provide the complete OAuth set:
TWITTER_MODE=api
TWITTER_API_KEY=your_api_key TWITTER_API_SECRET=your_api_secret TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_SECRET=your_access_secret
Create credentials in the X Developer Portal. X controls API access and pricing, so check the current terms before choosing this mode.
| Variable | Required | Meaning |
|---|---|---|
TWITTER_MODE | No | rettiwt by default, or api. Other values fail startup. |
RETTIWT_API_KEY | Rettiwt mode | Authenticated Rettiwt session key. |
TWITTER_BEARER_TOKEN | API mode option | Official API bearer token. |
TWITTER_API_KEY | OAuth option | OAuth application key. |
TWITTER_API_SECRET | OAuth option | OAuth application secret. |
TWITTER_ACCESS_TOKEN | OAuth option | OAuth access token. |
TWITTER_ACCESS_SECRET | OAuth option | OAuth access secret. |
TWITTER_REQUEST_TIMEOUT_MS | No | Request deadline from 1,000 to 120,000 ms. Default: 30,000. |
The server rejects an incomplete OAuth configuration at startup. It reads credentials from the process environment and never returns them through get_server_info.
| Tool | Input | Result |
|---|---|---|
get_tweet | tweet_id | One post. Accepts a numeric ID or an x.com or twitter.com status URL. |
get_tweet_replies | tweet_id, optional max_results | Replies and available page metadata. |
get_user_profile | username | One public profile. A leading @ is accepted. |
search_tweets | query, optional max_results | Matching posts and available page metadata. Search operators depend on the provider. |
get_server_info | None | Version, active provider, tools, limits, and capabilities. |
max_results defaults to 10 and accepts 1 through 100. Successful calls return structured MCP content plus JSON text for older clients. Collection tools return the items as JSON text and put cursors and warnings in structured content.
In Rettiwt mode, posts returned by get_tweet, get_tweet_replies, and search_tweets also include an optional media array when the provider supplies it. Each item contains id, type (PHOTO, VIDEO, or GIF), a direct url, and an optional thumbnail_url for video previews. The server returns media links; it does not download the files. Official API mode does not currently return attached media.
The v1 compatibility contract records the stable tool, input, output, and error behavior for the 1.x release line.
Tool failures use stable codes:
INVALID_INPUTAUTH_REQUIREDAUTH_FAILEDNOT_FOUNDRATE_LIMITEDUPSTREAM_UNAVAILABLETIMEOUTUNSUPPORTED_OPERATIONINTERNAL_ERRORErrors name the provider and tell the client whether a retry may work. They do not include credentials or raw upstream response bodies.
stdio CLI
-> validated environment configuration -> MCP server and tool handlers -> TwitterProvider contract -> Rettiwt adapter -> official X API adapter
The domain schemas do not depend on either provider. Each provider adapter maps upstream data, enforces limits and deadlines, and translates errors. Importing src/index.ts does not start the server.
npm ci
npm run check
npm run check checks formatting, lint, types, coverage, the production build, npm package contents, and a clean tarball installation. The default test suite uses fakes and does not need X credentials.
Useful focused commands:
npm test
npm run typecheck npm run lint npm run build npm run check:package npm run check:install npx @modelcontextprotocol/inspector node dist/cli.js
The live smo
ตัดมาแค่ช่วงต้น อ่านต่อใน repo