Skip to main content

Minimal MCP server for local speech recognition using faster-whisper

Project description

simple-asr-mcp

Minimal MCP server for local speech recognition using faster-whisper. Runs on CPU, no cloud required.

Русская версия

Installation

pipx install simple-asr-mcp

Or with pip:

pip install simple-asr-mcp

Requirements

  • Python 3.10+
  • ffmpeg (required by faster-whisper for audio decoding)

On Windows, install ffmpeg via winget:

winget install Gyan.FFmpeg

Quick Setup (for Claude Code agents)

Run these two commands — no user interaction required:

pipx install simple-asr-mcp
claude mcp add asr --scope user -- simple-asr-mcp

Then ask the user to restart Claude Code or run /mcp to reconnect.

Usage

CLI

# Transcribe an audio file
simple-asr-mcp transcribe recording.wav

# Specify language and model
simple-asr-mcp transcribe recording.wav --language ru --model medium

# List available models
simple-asr-mcp models

MCP Server (Claude Code)

MCP tools available after setup:

  • transcribe_file — transcribe any audio file by path
  • list_models — see available Whisper models

Configuration

Environment variables:

Variable Default Description
WHISPER_MODEL small Default Whisper model
WHISPER_DEVICE cpu Device: cpu, cuda, or auto
WHISPER_COMPUTE_TYPE int8 Quantization type

Example with custom config:

claude mcp add asr --scope user -e WHISPER_MODEL=medium -e WHISPER_DEVICE=cuda -- simple-asr-mcp

Available Models

Model Size RAM (est.)
tiny 75 MB ~1 GB
base 142 MB ~1 GB
small 466 MB ~2 GB
medium 1.5 GB ~5 GB
large-v3 3.1 GB ~10 GB

The model is downloaded automatically on first use and cached locally. It stays in memory until the MCP server process exits.

Supported Audio Formats

Any format supported by ffmpeg: wav, mp3, flac, ogg, m4a, wma, etc.

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_asr_mcp-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_asr_mcp-0.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file simple_asr_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: simple_asr_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for simple_asr_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c030c2795749e8459fa993a052886fea764520edb1ffdbddabcdda45015b814
MD5 c0cb8a0506799a30312c18b40bcc5fcb
BLAKE2b-256 f027f1f22fb74aefebbcebef86381e104601e449d657e0ddd46014ee77fa24ab

See more details on using hashes here.

File details

Details for the file simple_asr_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: simple_asr_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for simple_asr_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa65a876851a87197db3610a8aa2b9adbe4db729e5a1a384094eb06f0468cf3a
MD5 adb6e6f54fac4b9dad43d10ec8c5c31f
BLAKE2b-256 faaab0f3db706251d63b99222c17f911a263bc64d6fae4bddef2c26670305681

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page