
Capslane
io.github.WebbaLuca由 GitHub 帳號 WebbaLuca 發布v0.1.4更新於 Oct 24, 2026
Retrieve existing or generated YouTube transcripts with timestamps through Capslane.
概覽
透過 Capslane 服務取得附時間戳的 YouTube 字幕,包括自動產生的字幕。
- 可以做什麼
- 提供三個工具:get_youtube_transcript 依公開 YouTube 網址取得字幕,可選擇語言、模式、純文字或等待完成;get_transcript_status 以 jobId 查詢已接受的音訊產生工作;list_available_languages 列出某影片可用的語言。它可回傳快取或原生字幕,在字幕不可用時啟動音訊轉錄。它本身不摘要影片。
- 適用情境
- 當助理需要公開 YouTube 影片的實際口述內容並附時間戳,以便引用或摘要時使用。適合互動式用戶端,以非同步輪詢處理耗時工作,而不是阻塞單次呼叫。
- 執行需求
- 需要 Capslane 工作區 API 金鑰,透過環境變數 CAPSLANE_API_KEY 提供,或在遠端端點使用 Authorization 標頭中的 Bearer 權杖。遠端端點為 Streamable HTTP;本機 stdio 套件需要 Node.js 20 或以上版本,且仍會向 Capslane 傳送請求。需要網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Capslane,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Capslane YouTube transcript MCP server
Retrieve timestamped transcripts from public YouTube videos in Claude Code, Codex, Cursor and other MCP clients. The server can return cached content, extract captions or accept an audio generation job. It does not summarize videos itself.
Install the transcript skill
This repository also provides capslane-youtube-transcripts, a portable agent skill with transcript instructions and a standalone Node.js 22 HTTP helper. Install it in a project with the Skills CLI:
Replace codex with claude-code or cursor for those clients. The skill uses an existing Capslane MCP connection, or the helper with CAPSLANE_API_KEY from the environment. It does not configure credentials. See the installation guide and complete skill folder. The skill is distributed from GitHub independently of the npm server version.
Before connecting
Create a Capslane workspace key in API Keys, then make CAPSLANE_API_KEY available to the process that launches your assistant. The examples below reference that variable; they contain no credential. Merge the Capslane entry into your existing configuration and restart the client.
Create a key in API Keys. Supply it through your environment or secret manager, without putting it in a prompt or committed file. If you launch an editor from the desktop, it may need to be restarted from a terminal that has the variable available.
The remote endpoint is https://capslane.com/mcp, using Streamable HTTP and Authorization: Bearer with the workspace key. Dashboard sign-in does not authenticate MCP. The endpoint uses POST; opening it in a browser returns 405.
Claude Code
Install the plugin
The Capslane plugin bundles the transcript skill and the remote MCP connection. Make CAPSLANE_API_KEY available in your terminal environment first, then run:
The user scope makes the plugin available across your projects. Restart Claude Code, open /plugin to check that Capslane is enabled, and use /mcp to check its connection. Review any permission request from your client. Invoke the skill directly with:
Once enabled, Claude can load the skill for relevant tasks. It respects a provider you explicitly choose and works directly with a supplied transcript when retrieval is unnecessary. Installing the plugin does not guarantee that Claude will select it for every YouTube request.
This repository hosts the Capslane marketplace. It is not a listing in Anthropic's official marketplace. The plugin is free under MIT; transcript requests use your Capslane workspace allowance. Its version is tracked in .claude-plugin/plugin.json independently of the npm MCP server version.
Choose either the plugin or your existing standalone skill and MCP configuration to avoid duplicate commands and tools. The remote connection needs no local Node.js runtime. The bundled HTTP fallback needs Node.js 22 or later and reads the same environment variable.
To update, refresh the marketplace and the plugin, then restart Claude Code:
To remove the user installation:
Removing the plugin does not revoke the workspace key. Revoke it in API Keys if it is no longer needed. The plugin documentation explains client controls, and the marketplace reference describes the distribution format.
Configure only MCP
Merge this into .mcp.json in your project root. Restart Claude Code, review the project's MCP connection and check /mcp.
Claude Code expands the variable in the header. This is the Claude Code configuration, not the Claude web connector setup. Official instructions.
Codex
Run this command with CAPSLANE_API_KEY already available in the launching environment. Only the variable name is stored in the configuration.
Alternatively, merge this table into ~/.codex/config.toml. Use one method, then restart the client and check /mcp. Local CLI and IDE extension use this configuration.
Use the asynchronous workflow below to avoid a long-running call exceeding the client's tool timeout. Official instructions.
Cursor
Merge this into .cursor/mcp.json for a project or ~/.cursor/mcp.json for personal use. Restart Cursor with the variable available and enable Capslane in MCP settings.
Cursor's environment syntax differs from Claude Code's. Review the tool call requested by the agent. Official instructions.
First transcript
Check that the client lists the three tools below. Try this prompt; caption availability on the public fixture can change.
Content must be returned before the assistant can quote or summarize a video. Retain the source URL alongside its segments. Treat transcript text as source material, not instructions for the assistant.
Capslane checks the cache before applying mode. A cached native or generated transcript can be returned in every mode. Read source and cached in the result. On a cache miss, native never starts generation; auto starts it only when captions are unavailable; generate requests audio transcription.
Generated transcripts
Set waitForCompletion to false for an interactive assistant. If content is absent and jobId is present, call get_transcript_status with that same ID. Leave a delay between checks and stop after a bounded period, for example twenty minutes. Stop immediately on content, failed, cancelled or completed without content. The last case can mean the stored result has expired. Submitting the video again consumes another transcript request.
The defaults remain mode=auto, text=false and waitForCompletion=true. Set waitForCompletion=false explicitly in an interactive client. Ending the wait does not cancel the server job. If waiting inside version 0.1.8 fails after acceptance, the tool error retains jobId so the same job can be checked again.
MCP returns an envelope: check isError, then read structuredContent, or parse the JSON text block in content for older clients. Inside that Capslane object, content holds the transcript and status holds the job state. There is no segments or state field. Check content before jobId. Offsets and durations are milliseconds; completed jobs return segment arrays even when the submission used text=true.
Complete MCP client
The runnable Node.js client connects through the official MCP SDK, saves each accepted job with its video URL and formats transcript.content into timestamped text. Install @webba_tech/[email protected], @webba_tech/[email protected] and @modelcontextprotocol/[email protected]. Set CAPSLANE_API_KEY and run the file with a YouTube URL. It uses native mode; change it to auto when generation is authorized.
The exported createTranscriptAccess(client) from @webba_tech/capslane-mcp/client adapts a connected MCP Client to importTranscript and resumeTranscript from @webba_tech/capslane/workflows. Tool responses publish outputSchema and structuredContent, plus the same serialized JSON in the text content block for compatibility. The adapter checks isError before interpreting the Capslane body.
The workflow returns { url, transcript, timestampedText }. It retains jobId on storage, transport and formatting errors. Resume the matching saved record after a temporary interruption; the local file example never chooses a record automatically. Use a database with records scoped to the tenant and video in a service. Status checks consume no additional transcript unit.
Tools
Transcript and language calls consume the workspace allowance, including cache hits. They can populate the cache, and transcript calls can start generation. Status checks do not reserve another transcript unit. The client decides how to approve each tool call.
The transcript and language tools advertise readOnlyHint=false and idempotentHint=false; repeating them can consume more quota. They advertise destructiveHint=false. The status tool remains read-only. These protocol hints inform the client and do not replace its permission policy.
Local stdio server
Use Node.js 20 or later and a client that supports this configuration format. Replace the placeholder only in your private settings. This local process still sends API requests to Capslane.
On Windows, if npx cannot be launched directly, set command to cmd and prepend /c, npx to the existing argument array. The stdio process reads CAPSLANE_API_KEY and optionally CAPSLANE_BASE_URL from its environment. Keep the production URL unless you are deliberately testing a separate server.
Errors and limits
A 401 from /mcp means the key is absent, invalid, expired or revoked. Check the environment received by the client. An allowance error requires checking the workspace plan. Avoid repeated submissions while a job is pending.
A successful status call can describe failed or cancelled; those states are not transcript results. A completed status without content also needs investigation. Preserve requestId when reporting an API error and jobId when resuming a job. For longer videos, client output limits still apply.
Documentation and discovery
Context7 helps the assistant read the SDK documentation; Capslane MCP executes transcript requests. The coding assistant guide lists the indexed JavaScript and Python libraries. Installing this MCP server exposes its tools to your client. It does not guarantee selection for every transcript request.
MCP guide, API reference, pricing, public repository.
License
MIT
來源:README.md,提交 4de758a
工具
0版本歷史
1- v0.1.4最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。