MCP Speech-to-Text Server
Designed for direct integration into n8n workflows, exposing speech-to-text tools (offline Vosk transcription, file transcription, live microphone recording, and audio format conversion) that can be called as part of n8n automations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Speech-to-Text: Production-Ready Local Solution
A production-ready Model Context Protocol (MCP) server that provides completely local, offline speech-to-text capabilities. Optimized for x86_64 production deployment with macOS development support.
π― Perfect For
Production Systems - x86_64 Linux servers with full offline capabilities
Hong Kong Users - No regional restrictions or blocking
Privacy-Conscious - All processing happens locally
Cost-Conscious - Zero API costs after initial setup
n8n Workflows - Direct MCP integration
Related MCP server: Whisper MCP Server
ποΈ Platform Support Matrix
Platform | Speech Engine | Offline Mode | Internet Required | Production Ready |
x86_64 Linux | Vosk + SpeechRecognition | β Full | β No | β Yes |
ARM64 Linux | SpeechRecognition | β οΈ Limited | β Yes | β Yes |
macOS (Dev) | SpeechRecognition | β οΈ Limited | β Yes | π§ Dev Only |
π Quick Start
π Production Deployment (x86_64 Linux)
Best Choice: Full offline capabilities with Docker
# 1. Clone repository
git clone https://github.com/michaelyuwh/mcp-speech-to-text.git
cd mcp-speech-to-text
# 2. Deploy with Docker Compose (Automatic platform detection)
docker compose up -d
# 3. Verify deployment
./scripts/test-deployment.sh
# 4. Check status
docker compose ps
docker compose logs -f mcp-speech-to-textπ» Development Setup (macOS)
For Development and Testing
# 1. Clone and setup
git clone https://github.com/michaelyuwh/mcp-speech-to-text.git
cd mcp-speech-to-text
# 2. Install with uv (recommended for macOS)
uv sync
uv run python -c "from src.mcp_speech_to_text.server_sr import SpeechToTextServer; print('β
Ready')"
# 3. Run development server
uv run python -m mcp_speech_to_textπ οΈ Deployment Methods
Method 1: Docker Compose (Production)
docker compose up -d # Start services
docker compose logs -f # View logs
docker compose down # Stop servicesMethod 2: Direct Docker Build
./scripts/build-x86_64.sh # Build for x86_64
docker run -d --name mcp-speech mcp-speech-to-text:x86_64-latestMethod 3: Native Python (Development)
# With uv (macOS recommended)
uv sync && uv run python -m mcp_speech_to_text
# With pip
pip install -e . && python -m mcp_speech_to_textβοΈ Available MCP Tools
π― Core Speech Recognition
transcribe_audio_offline- Vosk offline transcription (x86_64 only)transcribe_audio_file- SpeechRecognition transcription (all platforms)record_and_transcribe- Live microphone recording and transcriptionget_supported_engines- List available speech engines
π§ Audio Processing
convert_audio_format- Convert between audio formatstest_microphone- Test microphone functionality and list devicesget_supported_formats- List supported audio formats
π§ͺ Testing and Verification
Quick Health Check
# Test current setup
./scripts/test-deployment.sh
# Test Docker image
docker run --rm mcp-speech-to-text:latest python -c "
from src.mcp_speech_to_text.server import OfflineSpeechToTextServer
server = OfflineSpeechToTextServer()
print('β
Server healthy')
"Development Testing (macOS)
# Test SpeechRecognition setup
uv run python -c "
from src.mcp_speech_to_text.server_sr import SpeechToTextServer
server = SpeechToTextServer()
print('β
Development environment ready')
"π Performance Characteristics
x86_64 Production (Vosk Offline)
Startup Time: 10-15 seconds (model loading)
Memory Usage: 200-300MB (with small model)
CPU Usage: 5-10% during transcription
Accuracy: Very good for offline recognition
Latency: Near real-time (< 1 second)
Internet: Not required after setup
Fallback Mode (SpeechRecognition)
Startup Time: 2-3 seconds
Memory Usage: 50-100MB
CPU Usage: 2-5%
Accuracy: Excellent (Google API)
Latency: 1-3 seconds
Internet: Required for operation
ποΈ Project Structure
mcp-speech-to-text/
βββ src/mcp_speech_to_text/
β βββ server.py # Vosk server (x86_64 production)
β βββ server_sr.py # SpeechRecognition server (dev/fallback)
β βββ __main__.py # Auto-detecting entry point
β βββ models/ # Vosk models (auto-downloaded)
βββ scripts/
β βββ build-x86_64.sh # Production build script
β βββ test-deployment.sh # Comprehensive testing
βββ .github/workflows/
β βββ build-x86_64.yml # CI/CD for x86_64 builds
βββ Dockerfile # Multi-platform container
βββ docker-compose.yml # Production deployment config
βββ DEPLOYMENT_X86_64.md # Detailed production guide
βββ README.md # This fileπ§ Configuration
Environment Variables
Variable | Default | Description |
|
|
|
|
| Path to Vosk models |
|
| Server port |
Docker Volumes
Host Path | Container Path | Purpose |
|
| Audio file storage |
|
| Custom Vosk models |
π Troubleshooting
Common Platform Issues
β "Vosk not available" on macOS
Expected behavior - macOS ARM doesn't support Vosk. Use SpeechRecognition:
uv run python -m mcp_speech_to_text.server_srβ Docker build fails on Apple Silicon
Use platform-specific build:
docker buildx build --platform linux/amd64 .β No audio devices in Docker
Add device access:
docker run --device /dev/snd your-imagePlatform-Specific Solutions
x86_64 Linux Production
Install audio packages:
apt-get install portaudio19-devVerify model download:
ls src/mcp_speech_to_text/models/Check container logs:
docker logs mcp-speech-to-text
macOS Development
Install portaudio:
brew install portaudioUse development server:
server_sr.pyEnable microphone permissions in System Settings
π Scaling for Production
Single Server
# Basic deployment
docker compose up -dLoad Balanced (Multiple Containers)
# Scale up containers
docker compose up -d --scale mcp-speech-to-text=3Kubernetes (Advanced)
See DEPLOYMENT_X86_64.md for Kubernetes manifests and advanced deployment patterns.
π‘οΈ Security and Privacy
β No Data Transmission - All processing happens locally
β No API Keys - No external service dependencies
β Container Security - Runs as non-root user
β Minimal Attack Surface - Only required ports exposed
β Audio Privacy - Files never leave your infrastructure
π Documentation
DEPLOYMENT_X86_64.md - Comprehensive production deployment guide
GitHub Actions - Automated testing and building
Docker Hub - Pre-built images (coming soon)
π― Why This Solution?
β Advantages
No Vendor Lock-in - Independent of OpenAI, Google, Azure
Predictable Costs - Zero ongoing API charges
Data Privacy - Audio processing never leaves your infrastructure
High Availability - No dependency on external services
Regional Independence - Works anywhere, including Hong Kong
πͺ Perfect Use Cases
Enterprise Environments - Privacy and compliance requirements
Cost-Sensitive Projects - High-volume speech processing
Offline Environments - Air-gapped or limited connectivity
Regional Restrictions - Areas with limited API access
Development Teams - Consistent dev/prod environments
π€ Contributing
Fork the repository
Develop on macOS using
server_sr.pyTest on x86_64 Linux using Docker
Submit pull request with platform testing
π License
MIT License - Complete freedom to use, modify, and distribute.
Ready to deploy speech-to-text without the cloud? Choose your platform above and get started! π
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Private speech-to-text for AI assistants. Transcribe a public HTTPS audio link, a one-time file upload, or an inline clip, with optional word timestamps and speaker labels. Supports English and 24 European languages, based on your Loquela account settings. Audio is processed in memory on our own hardware in North Carolina, then erased, without training on recordings. Requires your own Loquela Remote account with a subscription or prepaid minutes; usage is billed through that account. See Loquelaβs terms for current availability: https://api.getloquela.com/legal/terms. Current pricing: https://www.getloquela.com/remote#pricing. Docs: https://docs.getloquela.com/remote/mcp
Transcribe audio and video files to text with timestamps, SRT and VTT. Whisper runs inside.
Transcribe audio and video and work with your transcript library from any AI app. 119 languages.
Transcribe audio & video to text for AI agents: 100+ languages, speaker labels, webhooks.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables high-quality transcription and subtitle generation from local media files or URLs using Faster Whisper on local hardware. It supports automatic language detection and integration with MCP clients for seamless speech-to-text workflows.31-
- AlicenseAqualityCmaintenanceProvides local audio transcription using whisper.cpp, supporting multiple models and audio formats. Enables transcription of audio files via MCP tools with optional timestamps.3118 npm4MIT
- AlicenseAqualityNot gradedmaintenanceLocal, private audio transcription MCP server enabling AI agents to transcribe audio files entirely on-device without uploading data.3MIT

FunASR MCP Serverofficial
AlicenseNot gradedqualityAmaintenanceLocal speech recognition MCP server powered by FunASR and SenseVoice. It provides privacy-friendly audio transcription through a transcribe_audio tool.21,222MIT