Samplecut

Cut audio from YouTube, TikTok or Instagram links to MP3/WAV, and fetch video transcripts.

我該用這個嗎

品質與安全性

A
說明品質
93%
結構描述完整度
100%
命名品質
93%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,190Token(工具定義)
~3.3 KB典型回應大小
中等的注意力影響(128k 上下文的 0.93%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "samplecut": {
      "url": "https://api.samplecut.app/mcp"
    }
  }
}

遠端端點

https://api.samplecut.app/mcpstreamable-http

它能做什麼

工具清單

工具(3)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢cut_audio(url, start_sec, end_sec, duration_sec, format)

Cut audio from a YouTube, TikTok, or Instagram URL and return a short-lived download link. Lead with download_url for cut/download requests; offer editor_url when the user wants to tweak the selection. Links expire after about an hour — ask again in chat for a fresh cut if expired. Omit start_sec and end_sec for the full track. format defaults to mp3 (wav allowed). clip_id and peaks drive the interactive clip card some chat apps show; do not show them to the user. If the user adjusted the clip in the card, read the widget context for the current range and download link before answering follow-ups.

輸入結構描述

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "YouTube, TikTok, or Instagram URL to cut"
    },
    "start_sec": {
      "description": "Range start in seconds",
      "type": "number",
      "minimum": 0
    },
    "end_sec": {
      "description": "Range end in seconds",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "duration_sec": {
      "description": "Clip length in seconds from start_sec (default 0) when end_sec is omitted",
      "type": "number",
      "exclusiveMinimum": 0
    },
    "format": {
      "description": "Download format; default mp3",
      "type": "string",
      "enum": [
        "wav",
        "mp3"
      ]
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "wav",
        "mp3"
      ]
    },
    "full": {
      "type": "boolean"
    },
    "download_url": {
      "type": "string"
    },
    "editor_url": {
      "type": "string"
    },
    "expires_at": {
      "type": "string"
    },
    "start_sec": {
      "type": "number"
    },
    "end_sec": {
      "type": "number"
    },
    "clip_id": {
      "type": "string"
    },
    "track_duration_sec": {
      "type": "number"
    },
    "filename": {
      "type": "string"
    },
    "peaks": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  },
  "required": [
    "title",
    "format",
    "full",
    "download_url",
    "editor_url",
    "expires_at",
    "clip_id",
    "track_duration_sec",
    "filename",
    "peaks"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢get_transcript(url, lang)

Fetch timestamped captions for a YouTube, TikTok, or Instagram URL when the platform provides them. Use segment start_sec/end_sec (or the flat text) to choose a cut range, then call cut_audio with the same URL and those times. When available is false there are no captions — do not invent lyrics or timestamps; tell the user to pick times another way. Optional lang is a BCP-47 code (default en). No job_id is returned.

輸入結構描述

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "YouTube, TikTok, or Instagram URL to fetch captions for"
    },
    "lang": {
      "description": "Optional BCP-47 caption language (default en)",
      "type": "string",
      "minLength": 1,
      "maxLength": 32
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean"
    },
    "source": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "youtube_captions"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "lang": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "segments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "start_sec": {
            "type": "number"
          },
          "end_sec": {
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "start_sec",
          "end_sec",
          "text"
        ],
        "additionalProperties": false
      }
    },
    "text": {
      "type": "string"
    }
  },
  "required": [
    "available",
    "source",
    "lang",
    "segments",
    "text"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
⚪retrim_clip(clip_id, start_sec, end_sec, format)

Re-cut a clip from Samplecut's clip card to a new start/end, reusing the audio already extracted for it. Called by the interactive card; to cut something new, use cut_audio.

輸入結構描述

{
  "type": "object",
  "properties": {
    "clip_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "clip_id from a cut_audio result"
    },
    "start_sec": {
      "type": "number",
      "minimum": 0,
      "description": "New range start in seconds"
    },
    "end_sec": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "New range end in seconds"
    },
    "format": {
      "description": "Download format; default the clip's current format",
      "type": "string",
      "enum": [
        "wav",
        "mp3"
      ]
    }
  },
  "required": [
    "clip_id",
    "start_sec",
    "end_sec"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "wav",
        "mp3"
      ]
    },
    "full": {
      "type": "boolean"
    },
    "download_url": {
      "type": "string"
    },
    "editor_url": {
      "type": "string"
    },
    "expires_at": {
      "type": "string"
    },
    "start_sec": {
      "type": "number"
    },
    "end_sec": {
      "type": "number"
    },
    "clip_id": {
      "type": "string"
    },
    "track_duration_sec": {
      "type": "number"
    },
    "filename": {
      "type": "string"
    },
    "peaks": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  },
  "required": [
    "title",
    "format",
    "full",
    "download_url",
    "editor_url",
    "expires_at",
    "clip_id",
    "track_duration_sec",
    "filename",
    "peaks"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具