
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 分
请在仓库或注册中心条目中声明许可证。