free-api-mcp
Free TTS/ASR/OCR, dubbing and video-transcription API over MCP. Bearer token or guest trial.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (5)
- HIGH
- MEDIUMen get_video_transcribe
- LOWen get_account
- LOWen list_dubbing_voices
- LOWen cancel_dubbing_task
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"free-api-mcp": {
"command": "npx",
"args": [
"free-api-mcp-server"
]
}
}
}Paquetes ejecutables
0.2.10stdioPuntos de conexión remotos
https://www.open-api.aiconvg.xin/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (13)
🟢list_voices(lang)
获取 TTS 可用音色列表(仅免费开源音色,不计额度)。调用 text_to_speech 前必须先从这里拿 voice 参数,直接猜测音色名会返回 VOICE_NOT_ALLOWED。不传 lang 返回全部;传 lang 按语言前缀过滤(zh→zh_CN、en→en_US…;matcha/fanchen 归 zh_CN)。
Esquema de entrada
{
"type": "object",
"properties": {
"lang": {
"type": "string",
"description": "按语言筛选(前缀匹配),如 zh / en / ja;不传则返回全部音色"
}
}
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"count": {
"type": "number"
},
"voices": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
},
"additionalProperties": true
}🟢get_account
查询当前令牌的应用档位(free/paid)、各能力当日额度用量(tts/asr/ocr 的 used/limit/remaining)、额度重置时间与许可证有效期。只读,不消耗额度。游客模式下额外返回 personal 字段(本 IP/本实例的个人 30/15/15 用量与北京 00:00 重置)。
Esquema de entrada
{
"type": "object",
"properties": {}
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"app": {
"type": "object",
"additionalProperties": true
},
"quota": {
"type": "object",
"additionalProperties": true
},
"personal": {
"type": "object",
"additionalProperties": true,
"description": "游客个人额度视图(仅 guest/trial 返回);ipHash=客户端 IP 的 sha256 前 12 位,不回传明文/网段"
}
},
"additionalProperties": true
}🟢text_to_speech(text, voice, speed, format, engine)
把文本合成为可播放的语音,同步返回 audioUrl(自带 exp/sig 的公网直链,可直接播放,默认 24 小时有效)。计费工具(失败不扣)。text ≤ 300 字符(2026-11-09 收敛,付费音色硬限);voice 必须来自 list_voices,不要猜测音色名;format 当前仅支持 wav。engine 可选:默认 standard(免费音色,占日额度,wav 输出);"premium"(仅付费档)用商业音色(如 Cherry)按积分计费、不占日额度,音色以充值页商业音色目录为准。
Esquema de entrada
{
"type": "object",
"properties": {
"text": {
"type": "string",
"maxLength": 300,
"description": "待合成文本,≤ 300 字符;超过请分段多次调用"
},
"voice": {
"type": "string",
"description": "音色 ID,必须来自 list_voices 的返回(premium 引擎不受此限,可用商业音色)"
},
"speed": {
"type": "number",
"minimum": 0.5,
"maximum": 2,
"description": "语速,0.5–2.0,默认 1.0(仅 standard)"
},
"format": {
"type": "string",
"enum": [
"wav"
],
"description": "音频格式,当前仅 wav"
},
"engine": {
"type": "string",
"enum": [
"standard",
"premium"
],
"description": "引擎:默认 standard(免费);premium 需付费档,按积分计费"
}
},
"required": [
"text",
"voice"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"audioUrl": {
"type": "string"
}
},
"additionalProperties": true
}🟡speech_to_text(audioUrl, lang, engine)
转写 ≤ 60 秒、≤ 8MB 的短音频,同步返回文本与分段。计费工具(占 1 次当日 ASR 额度,失败不扣)。audioUrl 必须是公网可访问 URL(wav/mp3/m4a);本地文件路径无法使用。更长的音频改用 submit_asr_job 提交异步任务。
Esquema de entrada
{
"type": "object",
"properties": {
"audioUrl": {
"type": "string",
"description": "音频公网 URL,≤ 8MB 且 ≤ 60 秒"
},
"lang": {
"type": "string",
"description": "语种,auto 自动判定(默认)"
},
"engine": {
"type": "string",
"enum": [
"standard",
"premium"
],
"description": "引擎:默认 standard(免费);premium 需付费档,商业模型按积分计费"
}
},
"required": [
"audioUrl"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"text": {
"type": "string"
},
"duration": {
"type": "number"
},
"segments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number"
},
"end": {
"type": "number"
},
"text": {
"type": "string"
}
}
}
},
"engine": {
"type": "string"
},
"language": {
"type": "string",
"nullable": true
},
"quota": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": true
}🟡submit_asr_job(audioUrl, lang)
提交异步转写任务(长音频入口),立即返回 taskId。计费工具:提交即占 1 次当日 ASR 额度,任务失败时额度自动返还。audioUrl ≤ 50MB;提交后用 get_asr_job 轮询(建议首轮 3 秒、之后每 5 秒,总时长 ≤ 10 分钟,不要无限轮询)。单次调用不内部等待。
Esquema de entrada
{
"type": "object",
"properties": {
"audioUrl": {
"type": "string",
"description": "长音频公网 URL,≤ 50MB(时长无 60 秒限制)"
},
"lang": {
"type": "string",
"description": "语种,auto 自动判定(默认)"
}
},
"required": [
"audioUrl"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"taskId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"queued",
"running"
]
},
"duration": {
"type": "number",
"nullable": true
},
"quota": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": true
}🟢get_asr_job(taskId)
按 taskId 查询异步转写任务状态:queued/running(带 segments_done/processed_s 进度)、done(返回 text/segments)、failed(error 字段,额度已自动返还)。不计费、不重复扣额度,可安全重复轮询;任务结果保留 24 小时。
Esquema de entrada
{
"type": "object",
"properties": {
"taskId": {
"type": "string",
"description": "submit_asr_job 返回的任务 ID"
}
},
"required": [
"taskId"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"taskId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"done",
"failed"
]
},
"text": {
"type": "string",
"description": "status=done 时返回"
},
"duration": {
"type": "number",
"nullable": true
},
"segments_done": {
"type": "integer",
"description": "轮询进度"
},
"processed_s": {
"type": "number",
"description": "已处理秒数"
},
"segments": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"engine": {
"type": "string"
},
"error": {
"type": "string",
"description": "status=failed 时返回,额度已自动返还"
}
},
"additionalProperties": true
}⚪ocr_image(imageUrl, mode)
识别单张图片(png/jpg/webp,≤ 8MB)中的文字,返回 fullText 与分块(含置信度 conf/坐标 bbox)。计费工具(占 1 次当日 OCR 额度,失败不扣)。imageUrl 必须是公网可访问 URL;本地文件路径无法使用。mode=full 只出全文(blocks 为空),structured 只出带 conf/bbox 的分块(fullText 为空),auto 两者都出。结果取值:读 content[0](纯 JSON)或 structuredContent,不要把多个 content 块拼接。
Esquema de entrada
{
"type": "object",
"properties": {
"imageUrl": {
"type": "string",
"description": "图片公网 URL,≤ 8MB"
},
"mode": {
"type": "string",
"enum": [
"auto",
"full",
"structured"
],
"description": "默认 auto(两者都出);full 只全文;structured 只分块"
}
},
"required": [
"imageUrl"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"fullText": {
"type": "string",
"description": "整图拼接全文;mode=structured 时为空串"
},
"blocks": {
"type": "array",
"description": "分块结果;mode=full 时为空数组。每块含 text/conf/bbox",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"conf": {
"type": "number",
"description": "置信度 0–1"
},
"bbox": {
"type": "array",
"description": "四点坐标 [[x,y],...]",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
}
},
"engine": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"auto",
"full",
"structured"
]
},
"quota": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": true
}🟢list_dubbing_voices
查询多角色配音可用的音色目录(70 个,含 21 个开源免费音色)。返回每个音色的 id、性别、语言、单价 creditsPerChar(免费音色为 0)。提交配音前先从这里选音色 id;不计费。
Esquema de entrada
{
"type": "object",
"properties": {}
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"data": {
"description": "上游音色目录(可能是数组或 {voices:[...]} 对象);每项含 id/voice、gender、language、creditsPerChar(免费音色=0)"
}
},
"additionalProperties": true
}🟡dubbing_submit(segments)
多角色配音:按 segments([{voice, text}],至少一段)合成带时间轴的语音,返回音频 URL 与 SRT 字幕。计费工具:按所选音色单价扣积分(免费音色 0 积分),小任务同步返回(audioUrl/srtUrl/creditCost),大任务异步 202 返回 taskId,用 get_dubbing_task 轮询(建议每 5 秒,不要无限轮询)。失败不自动重试。
Esquema de entrada
{
"type": "object",
"properties": {
"segments": {
"type": "array",
"minItems": 1,
"description": "配音分段列表,按顺序合成",
"items": {
"type": "object",
"required": [
"voice",
"text"
],
"properties": {
"voice": {
"type": "string",
"description": "音色 id(先 list_dubbing_voices 查询)"
},
"text": {
"type": "string",
"description": "该段台词"
}
}
}
}
},
"required": [
"segments"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"taskId": {
"type": "string",
"description": "大任务异步(HTTP 202)返回,用 get_dubbing_task 轮询"
},
"status": {
"type": "string"
},
"audioUrl": {
"type": "string",
"description": "小任务同步完成(HTTP 200)时返回"
},
"srtUrl": {
"type": "string",
"description": "字幕 SRT(同步完成时返回)"
},
"creditCost": {
"type": "number",
"description": "202=预估冻结;200=实扣"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}🟢get_dubbing_task(taskId)
按 taskId 查询异步配音任务状态:处理中 / succeeded(返回 audioUrl、srtUrl、chargedCredits 实扣)/partial(部分段失败,只结算成功段)/ failed / cancelled(全额解冻)。不计费、可安全重复轮询。
Esquema de entrada
{
"type": "object",
"properties": {
"taskId": {
"type": "string",
"description": "dubbing_submit 异步返回的任务 ID"
}
},
"required": [
"taskId"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"taskId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"succeeded",
"partial",
"failed",
"cancelled",
"canceled"
]
},
"audioUrl": {
"type": "string"
},
"srtUrl": {
"type": "string"
},
"chargedCredits": {
"type": "number",
"description": "终态实扣积分"
},
"segments": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}🔴cancel_dubbing_task(taskId)
取消尚未完成的异步配音任务,已冻结的预估积分立即全额解冻。已完成(succeeded/partial)的任务不可取消。不计费。
Esquema de entrada
{
"type": "object",
"properties": {
"taskId": {
"type": "string",
"description": "dubbing_submit 异步返回的任务 ID"
}
},
"required": [
"taskId"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"data": {
"description": "上游取消结果(含 cancelled/status 等)"
}
},
"additionalProperties": true
}🟡submit_video_transcribe(url)
把短视频/视频链接转成带时间轴的转写稿。支持抖音(含 v.douyin.com 分享短链、可直接粘整段分享文案)、bilibili/b23.tv、YouTube、快手、小红书、TikTok。立即返回 taskId,用 get_video_transcribe 轮询(建议每 10 秒,1~2 分钟短视频通常 1 分钟内完成,不要无限轮询)。计费工具:转写稿每 5 字 1 积分,提交时按时长冻结积分(约 2 积分/秒),完成按实际字数结算、失败全额解冻;积分不足会在任务中失败并退回冻结。失败不自动重试。
Esquema de entrada
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "视频链接(平台分享短链或完整链接,也可传整段分享文案,服务端自动提取)"
}
},
"required": [
"url"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"taskId": {
"type": "string"
},
"status": {
"type": "string"
},
"credits": {
"type": "number",
"description": "提交时冻结的预估积分"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}🟢get_video_transcribe(taskId)
按 taskId 查询视频转写任务:queued/downloading/transcribing/correcting(进行中)→ done(返回 text 转写稿、markdown 分段稿、chars 字数、credits 实扣积分)或 failed(error 字段,冻结已全额解冻)。不计费、可安全重复轮询。
Esquema de entrada
{
"type": "object",
"properties": {
"taskId": {
"type": "string",
"description": "submit_video_transcribe 返回的任务 ID"
}
},
"required": [
"taskId"
]
}Esquema de salida
{
"type": "object",
"properties": {
"requestId": {
"type": "string"
},
"taskId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"queued",
"downloading",
"transcribing",
"correcting",
"done",
"failed"
]
},
"text": {
"type": "string",
"description": "status=done 返回的转写稿"
},
"markdown": {
"type": "string",
"description": "markdown 分段稿"
},
"chars": {
"type": "integer",
"description": "字数"
},
"credits": {
"type": "number",
"description": "实扣积分"
},
"error": {
"type": "string",
"description": "status=failed 时返回,冻结已全额解冻"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}Comunidad
Evidencia