
FunASR MCP Server
MCPFunASR 项目官方 MCP:用 SenseVoice 模型在本地把音频文件转写成文字,支持普通话、粤语、英语、日语、韩语,可附分段时间戳。本地推理无需 API Key,音频不出本机,提供 Docker 镜像。
FunASR MCP Server
Model Context Protocol server that gives AI assistants local audio transcription with SenseVoiceSmall by default.
Setup
1. Install dependencies
pip install funasr
2. Optional: run with Docker
The Dockerfile starts the MCP server over stdio and is suitable for MCP directory
checks that initialize the server and call tools/list.
docker build -t funasr-mcp examples/mcp_server
docker run --rm -i \
-e FUNASR_DEVICE=cpu \
--mount type=bind,src=/path/to/audio,dst=/audio,readonly \
--mount type=volume,src=funasr-mcp-cache,dst=/root/.cache/modelscope \
funasr-mcp
Verify the image entrypoint and MCP handshake without downloading a model:
python examples/mcp_server/smoke_test.py funasr-mcp
When submitting this server to MCP directories such as Glama, use this folder as
the Docker build context so the container entrypoint runs funasr_mcp.py.
The repository root glama.json declares GitHub maintainer ownership for Glama,
while the glama.json file in this directory declares the container command and
metadata for directory scanners.
Official MCP Registry
The versioned Registry metadata is in server.json. It points to
the public GHCR image and asks clients to mount one host audio directory at
/audio read-only. The Dockerfile carries the matching OCI ownership label:
Current published release:
LABEL io.modelcontextprotocol.server.name="io.github.modelscope/funasr-mcp"
The release workflow validates the metadata against the official schema, builds
the image, performs an MCP initialize and tools/list handshake, pushes the
versioned image to GHCR, and publishes server.json through the official
mcp-publisher CLI.
To release a new MCP server version:
- Update
versionand the OCI image tag inserver.jsontogether. - Merge the change after the MCP validation workflow passes.
- Have a
modelscopeorganization Owner push the matchingmcp-v<version>tag, for examplemcp-v0.1.2. - Approve the protected
mcp-registry-publishenvironment deployment.
The official Registry only grants the io.github.modelscope/* namespace to a
GitHub organization Owner. Keep the publish environment restricted to release
tags and require a maintainer approval because its OIDC token can publish the
organization namespace.
After publication, clients can run the pinned image directly:
docker run --rm -i \
--mount type=bind,src=/path/to/audio,dst=/audio,readonly \
--mount type=volume,src=funasr-mcp-cache,dst=/root/.cache/modelscope \
ghcr.io/modelscope/funasr-mcp:0.1.2
When using the container, pass tool paths under /audio, such as
/audio/meeting.wav.
Glama submission checklist
Use these values when adding the server at https://glama.ai/mcp/servers:
| Field | Value |
|---|---|
| Repository URL | https://github.com/modelscope/FunASR |
| Docker build context | examples/mcp_server |
| Dockerfile path | examples/mcp_server/Dockerfile |
| Server command | python /app/funasr_mcp.py |
| Expected MCP tool | transcribe_audio |
After Glama finishes evaluation, verify that the listing or API shows an evaluated quality score before adding it to directory PRs. An HTTP 200 from the listing or badge endpoint alone does not prove that a score has been assigned:
[](https://glama.ai/mcp/servers/modelscope/FunASR)
If the badge endpoint still returns 404, keep the badge out of external directory submissions until the Glama listing is live.
Directory listings
The FunASR MCP server is published in the official Registry and listed on mcp.so:
- https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.modelscope/funasr-mcp
- https://mcp.so/server/mcp-server-funasr/radial-hks
3. Configure your AI tool
Claude Code (~/.claude.json):
{
"mcpServers": {
"funasr": {
"command": "python",
"args": ["/path/to/examples/mcp_server/funasr_mcp.py"],
"env": {"FUNASR_DEVICE": "cuda"}
}
}
}
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"funasr": {
"command": "python",
"args": ["/path/to/funasr_mcp.py"],
"env": {"FUNASR_DEVICE": "cpu"}
}
}
}
Cursor (Settings → MCP Servers → Add):
- Command:
python /path/to/funasr_mcp.py - Environment:
FUNASR_DEVICE=cuda
Tools
transcribe_audio
Transcribe a speech audio file to text.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
audio_path | string | Yes | Path to audio file (wav, mp3, flac, m4a, ogg) |
language | string | No | auto, zh, yue, en, ja, or ko (default: auto) |
Returns: Transcribed text with per-segment timestamps when the model returns them.
Example Usage
Once configured, ask your AI assistant:
- "Transcribe the meeting recording at ~/Downloads/meeting.wav"
- "What was said in this audio file? /path/to/interview.mp3"
- "Convert this voice memo to text: ~/voice_note.m4a"
Environment Variables
| Variable | Default | Description |
|---|---|---|
FUNASR_DEVICE | cpu | Device: cuda, cpu, or mps |
FUNASR_MODEL | iic/SenseVoiceSmall | Model name or local model path passed to AutoModel |
Features
- Five-language transcription — Mandarin, Cantonese, English, Japanese, and Korean
- Automatic detection or explicit hints —
auto,zh,yue,en,ja, andko - VAD segmentation — splits longer audio before recognition
- Optional segment timestamps — included only when the configured model returns them
- Configurable local inference — choose the model and CPU, CUDA, or MPS with environment variables
- No API key needed — fully local inference
- MIT licensed, privacy-friendly (audio never leaves your machine)
Verified Compatibility
| Tool | Status |
|---|---|
| Claude Code | ✅ Tested |
| Claude Desktop | ✅ Compatible |
| Cursor | ✅ Compatible |
| Windsurf | ✅ Compatible |
| Any MCP client | ✅ Standard protocol |
相關資源

FunASR
CLI阿里 ModelScope 开源的工业级语音识别工具包,自带面向 agent 的 funasr 命令:一条命令把音频转成文本、JSON 或 SRT 字幕,支持说话人分离与时间戳,中文识别效果好。需先安装 PyTorch。
modelscope/FunASR21.2k
daymade-audio
Plugin音频处理插件套件:录音转文字(本地 Qwen3-ASR / whisper,Apple Silicon 可用 MLX)、说话人分离、转写纠错、结构化会议纪要和阶跃星辰 TTS。阶跃的 ASR 与 TTS 需要 API Key。
daymade/claude-code-skills1.6k
Screenpipe MCP Server
MCP在本机持续记录屏幕与音频,提取界面文字并做语音转写,agent 可以检索你看过的网页、文档和开过的会,按时间汇总当天工作与对话,录制数据默认存在本机。需先安装并运行 screenpipe:源码版限个人非商业免费使用,桌面版按月订阅。
screenpipe/screenpipe22.6k
whisper.cpp
CLIOpenAI Whisper 语音识别模型的 C/C++ 实现,在本地离线转写音频并输出字幕,CPU 即可运行,支持 Apple Silicon 与多种 GPU 加速;需先下载 ggml 格式模型。
ggml-org/whisper.cpp55.7k
WhisperX
CLI基于 faster-whisper 的快速语音转写,提供词级时间戳与说话人分离,适合会议纪要与字幕制作;说话人分离需 Hugging Face Token,GPU 加速需 CUDA。
m-bain/whisperX26.3k
Buzz
CLI基于 Whisper 的离线语音转写与翻译工具,录音不出本机,用 buzz add 命令把讲座、访谈、会议录音导出为 TXT、SRT、VTT,适合老师整理课堂录音、律师整理会见记录。pip 安装需 Python 3.12 和 FFmpeg,另有桌面版;转写结果需人工核对。
chidiwilliams/buzz23.2k