mcpField
F
FunASR

FunASR

Local
github.comMedia & Design20.9kUpdated today

About FunASR

FunASR MCP server gives AI assistants local speech transcription using FunASR and the SenseVoiceSmall model by default. Audio is processed on the user's machine with no API key required, which suits users who want to keep recordings private.

Key features

  1. 01Transcribes Mandarin, Cantonese, English, Japanese and Korean
  2. 02Automatic language detection or explicit language hints
  3. 03VAD segmentation for longer audio files
  4. 04Segment timestamps when the model returns them
  5. 05Model and device selectable through environment variables

Use cases

  1. 01Transcribing meeting recordings into text
  2. 02Converting interviews or voice memos to written notes
  3. 03Letting an AI assistant read the contents of local audio files

MCP support

The server runs over stdio and exposes a transcribe_audio tool to MCP clients, which pass an audio path and receive the transcribed text.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"modelscope-funasr": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/modelscope/funasr-mcp:0.1.2"
]
}
}
}
Run commanddocker run -i --rm ghcr.io/modelscope/funasr-mcp:0.1.2

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocighcr.io/modelscope/funasr-mcp:0.1.2

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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:

  1. Update version and the OCI image tag in server.json together.
  2. Merge the change after the MCP validation workflow passes.
  3. Have a modelscope organization Owner push the matching mcp-v<version> tag, for example mcp-v0.1.2.
  4. Approve the protected mcp-registry-publish environment 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:

FieldValue
Repository URLhttps://github.com/modelscope/FunASR
Docker build contextexamples/mcp_server
Dockerfile pathexamples/mcp_server/Dockerfile
Server commandpython /app/funasr_mcp.py
Expected MCP tooltranscribe_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:

[![modelscope/FunASR MCP server](https://glama.ai/mcp/servers/modelscope/FunASR/badges/score.svg)](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:

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:

NameTypeRequiredDescription
audio_pathstringYesPath to audio file (wav, mp3, flac, m4a, ogg)
languagestringNoauto, 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

VariableDefaultDescription
FUNASR_DEVICEcpuDevice: cuda, cpu, or mps
FUNASR_MODELiic/SenseVoiceSmallModel 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, and ko
  • 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

ToolStatus
Claude Code✅ Tested
Claude Desktop✅ Compatible
Cursor✅ Compatible
Windsurf✅ Compatible
Any MCP client✅ Standard protocol

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.