piper-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@piper-mcp Read this aloud in French: Le 01/02/2025, M. Dupont a payé 12,50 €."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
piper-mcp
Serveur MCP local pour Piper TTS : synthèse vocale française et anglaise hors ligne, avec correction de prononciation.
Le serveur n'embarque aucun modèle et aucun moteur : il pilote le binaire piper déjà
installé et s'appuie sur le skill piper-tts
pour normaliser le texte avant de le prononcer — dates, unités, abréviations, sigles,
anglicismes et homographes anglais.
"Le 01/02/2025, M. Dupont a payé 12,50 €."
│
├─ normalisation → "premier février 2025, Monsieur Dupont a payé 12 euros 50"
└─ piper → ~/piper-out/piper-20260201-101500.wav
Pourquoi pas un générateur OpenAPI
Piper expose un mode HTTP (python -m piper.http_server), donc les générateurs type
openapi-mcp-generator ou API-to-MCP-Generator savent le transformer en MCP. Ils ont été
écartés :
l'API HTTP de Piper, ce sont trois routes (
/synthesize,/voices,/info) : le serveur écrit à la main fait 200 lignes, sans code généré à maintenir ni dépendancerequests;le mode HTTP garde un modèle en mémoire par processus : il faut le démarrer, le surveiller, choisir un port et le relancer à chaque changement de voix. En stdio, un appel = un sous-processus
piper(~0,8 s de chargement), sans processus à gérer ;surtout, un générateur ne fait que relayer le texte tel quel. La valeur ici est la normalisation de prononciation, qui doit s'exécuter avant
piperet ne rentre dans aucune spécification OpenAPI.
Related MCP server: tts-mcp
Prérequis
# 1. le moteur (une fois)
uv tool install --python 3.13 piper-tts
# 2. des voix (dans ~/.local/share/piper-voices)
git clone https://github.com/STIFLEUR390/agent-skills
cd agent-skills && bash skills/piper-voices/scripts/piper-voices.sh bootstrap
# 3. le skill de normalisation (optionnel mais fortement conseillé)
bash skills/skill-creator/scripts/deploy.sh piper-tts skillsSans le skill, tts_generate fonctionne toujours (le champ normalized passe à false) et
tts_phonemes répond par une erreur explicite.
Installation
git clone https://github.com/STIFLEUR390/piper-mcp
cd piper-mcp
uv sync
uv run piper-mcp # stdio, prêt pour un client MCPAvec pipx :
pipx install git+https://github.com/STIFLEUR390/piper-mcpDéclaration dans un client MCP
{
"mcpServers": {
"piper-tts": {
"command": "uv",
"args": ["run", "--directory", "/home/moi/Projects/mcp/piper-mcp", "piper-mcp"],
"env": {
"PIPER_VOICES_DIR": "/home/moi/.local/share/piper-voices",
"PIPER_OUTPUT_DIR": "/home/moi/piper-out"
}
}
}
}Claude Desktop / Code :
~/.claude.jsonou.mcp.jsondu projet.Pi :
~/.pi/agent/mcp.json(même schémamcpServers).OpenCode :
~/.config/opencode/opencode.json, sectionmcp.
Outils
Outil | Rôle | Renvoie |
| synthétise un texte en WAV |
|
| texte corrigé + IPA réellement prononcés, symboles absents du modèle |
|
| voix installées, tailles, voix par défaut |
|
tts_generate("Le 01/02/2025, M. Dupont a payé 12,50 €. Il aime le week-end.", lang="fr")
→ {"path": "~/piper-out/piper-20260201-101500.wav", "seconds": 7.4, "size_bytes": 326654,
"normalized": true,
"text_normalized": "premier février 2025, Monsieur Dupont a payé 12 euros 50. Il aime le [[wikˈɛnd]]."}
tts_generate("Ms. Smith, on 10/12/2025.", lang="en", voice="en_US-lessac-medium")
tts_phonemes("cuillère", lang="fr")
→ {"text_normalized": "[[kɥijˈɛʁ]]", "phonemes": "k ɥ i j ˈ ɛ ʁ", "missing": []}Le serveur ne télécharge pas de voix : installer des modèles ONNX est le travail de
piper-voices.sh install <nom>, qui vérifie les md5 de l'index Hugging Face. Un outil
tts_install_model a été volontairement laissé de côté pour ne pas dupliquer ce script.
Variables d'environnement
Variable | Défaut | Rôle |
|
| modèles |
|
| dossier des WAV produits |
|
| binaire Piper |
| skill détecté automatiquement | script de normalisation |
Dépannage
Symptôme | Cause |
|
|
|
|
| skill non déployé, ou |
| symbole absent de la voix choisie : changer de voix ( |
Tests
uv run pytest -q # aller-retour stdio réel : list_tools + 3 appelsLicence
MIT — voir LICENSE. Le moteur Piper est GPL-3.0 ; les voix ont chacune leur
MODEL_CARD (voir la politique de licences de Piper).
Available Tools
3 toolstts_generateB
Synthétise text en WAV sur cette machine et renvoie le chemin du fichier.
lang: "fr" ou "en". voice: nom d'une voix installée (défaut fr_FR-siwis-medium / en_GB-alan-medium). length_scale > 1 ralentit. filename: nom du WAV (défaut horodaté) dans PIPER_OUTPUT_DIR (~/piper-out).
Inputs: text (required), lang, voice, filename, +2 more.
tts_phonemesA
Renvoie le texte corrigé et les phonèmes IPA réellement prononcés.
Utile pour vérifier une prononciation avant de générer l'audio : la liste
missing contient les symboles absents du modèle (ils seraient muets).
Inputs: text (required), lang, voice.
tts_voicesA
Liste les voix Piper installées localement et les voix par défaut par langue.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: synthesis (tts_generate), phoneme inspection (tts_phonemes), and voice enumeration (tts_voices). There is no overlap in purpose or output type, so an agent can select unambiguously.
All three tools follow the same tts_ prefix plus a short snake_case noun/verb (generate, phonemes, voices). The pattern is predictable and immediately readable.
Three tools is a reasonable, well-scoped surface for a local Piper TTS server and each one earns its place. It is on the lean side, but nothing essential is obviously missing from the exposed set.
The surface covers the core lifecycle: discover available voices, validate pronunciation via IPA, and generate WAV output. Minor gaps exist (no way to preview/play back audio or manage/list generated files), but these are workable around via the returned path.
Maintenance
Related MCP Connectors
Synthesize short texts into WAV audio using offline formant voices in English, German and Spanish
Hosted text-to-speech MCP server: 66 voices in 9 languages, long-form narration, podcasts.
Generate English and Chinese speech, split long text, track batch jobs, and download audio.
Text to speech in 149 languages: MP3 links from any assistant. Free without an account.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI models to generate high-quality voice messages from text using the Piper TTS engine, with automatic model management and audio streaming.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as Claude to generate spoken audio locally, narrating English with Kokoro and Malayalam with IndicF5, Parler-TTS, Piper or MMS, including cloned Malayalam voices, pronunciation lexicons, and number/currency expansion. Outputs loudness-normalised WAV or MP3 and runs long narrations through a pollable job queue so tool calls never time out.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP clients to generate local, offline text-to-speech audio in 31 languages, manage and install voices, and save or play audio files.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as Claude, Cursor and VS Code to synthesize speech locally in 31 languages, saving mp3, wav or ogg files, listing and installing catalog voices, and playing audio back through the system player — offline after the first run with no usage limits.Apache 2.0