# Paxa Labs [Health: Active]

**Category:** 🎧 Text-to-Speech  
**Repository:** https://github.com/paxalabs/mcp  
**GitHub Stars:** 10  
**npm Downloads (last month):** 1626  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/paxa-labs

## Description
Thai and English speech AI: text to speech with local playback, translation to Thai, and OCR

## Tools
Capabilities this server exposes over MCP:

- **speak** — Synthesize a short line with Paxa TTS and play it through this machine's speakers. Blocks until playback finishes. Waits for the currently playing audio but jumps ahead of queued long-form segments. For long content use queue_speech. Costs 10 credits per 1000 characters. Direction tags (paxa-tts-flash-v2, every voice): words in square brackets written into the text set the delivery from that point on, in English, Thai, or Chinese, e.g. [whispering], [speaking slowly, close to the microphone], [sad:0.5], or a blend [happy:0.7+sad:0.3]; [neutral] returns to the voice's own delivery. Sounds such as [laughs], [sighs], [gasps] play where written; [um] and [hmm] are spoken; <emph>...</emph> and <whisper>...</whisper> mark a span. Nothing in brackets is spoken, tag characters bill as text, and a tag the model cannot do is refused before any charge. On paxa-tts-flash-v1 only khanomchan and kaprao read tags, from a fixed emotion list.
- **queue_speech** — Read long content aloud (stories, articles, books). Splits the text into segments, synthesizes ahead while playing, and returns immediately; segments play in order after anything already queued. Monitor and control with the control_playback tool. Costs 10 credits per 1000 characters. Direction tags (paxa-tts-flash-v2, every voice): words in square brackets written into the text set the delivery from that point on, in English, Thai, or Chinese, e.g. [whispering], [speaking slowly, close to the microphone], [sad:0.5], or a blend [happy:0.7+sad:0.3]; [neutral] returns to the voice's own delivery. Sounds such as [laughs], [sighs], [gasps] play where written; [um] and [hmm] are spoken; <emph>...</emph> and <whisper>...</whisper> mark a span. Nothing in brackets is spoken, tag characters bill as text, and a tag the model cannot do is refused before any charge. On paxa-tts-flash-v1 only khanomchan and kaprao read tags, from a fixed emotion list.
- **control_playback** — Inspect and control the shared audio queue. status reports what is playing, what is queued, and any synthesis failures. pause and resume halt and continue playback (not supported on Windows). skip drops the current segment. clear stops playback and empties the queue.
- **play_audio** — Play a local audio file through this machine's speakers, for example a file produced earlier by text_to_speech. Blocks until playback finishes. Free (no API call).
- **text_to_speech** — Synthesize speech with Paxa TTS and save it as an audio file without playing it: voiceovers, narration, audiobooks. Text beyond 5000 characters is split at paragraphs and sentences and the parts are joined into one file (needs ffmpeg). With subtitles set, an srt or vtt caption file that matches the voice word for word is written next to the audio. Costs 10 credits per 1000 characters, 12.5 with subtitles. Direction tags (paxa-tts-flash-v2, every voice): words in square brackets written into the text set the delivery from that point on, in English, Thai, or Chinese, e.g. [whispering], [speaking slowly, close to the microphone], [sad:0.5], or a blend [happy:0.7+sad:0.3]; [neutral] returns to the voice's own delivery. Sounds such as [laughs], [sighs], [gasps] play where written; [um] and [hmm] are spoken; <emph>...</emph> and <whisper>...</whisper> mark a span. Nothing in brackets is spoken, tag characters bill as text, and a tag the model cannot do is refused before any charge. On paxa-tts-flash-v1 only khanomchan and kaprao read tags, from a fixed emotion list.
- **translate_to_thai** — Translate text from any language into Thai with Paxa Translate. Accepts a single string or up to 200 segments that share context. Costs 25 credits per 1000 text characters (minimum 2 credits); context and glossary characters bill at 8 per 1000.
- **ocr_document** — Run Paxa OCR on a local PDF, PNG, JPEG, or WebP file and return its content as GitHub-flavored Markdown (or structured blocks). Up to 50 pages and 10 MiB per file. Costs 6.5 credits per page.
- **extract_fields** — Extract typed fields from a local PDF, PNG, JPEG, or WebP document (up to 20 pages and 10 MiB) with Paxa Document Extraction. You write a schema of fields; every value returned is text printed in the document, read as the field's type, or null with the reason. Nothing is inferred or looked up. Built for Thai documents (receipts, tax invoices, forms, IDs) and fine on English ones. Costs 13 credits per page for a schema of up to 50 leaf fields and 19.5 per page for 51 to 100; the page reading and the evidence spans cost nothing extra. A schema the API refuses costs nothing and names the field and reason. The schema parameter summarizes the dialect; https://paxalabs.com/docs/extraction has every type and key.
- **transcribe_audio** — Transcribe a local recording or video of speech, Thai or any other language, code-switching included (mp3, wav, flac, ogg, m4a, aac, webm; or mp4, mov, mkv, avi and other video files, whose sound track is extracted locally with ffmpeg; up to 60 minutes and 25 MiB) with Paxa STT. The transcript comes back inline, so nothing needs to be read from disk afterwards; optionally it is also saved as txt, json (with word timings and segments), srt, or vtt, named after the recording. Existing files are never overwritten. Detects the language, handles code-switching, and can label speakers. Terms configured in PAXA_VOCABULARY or PAXA_VOCABULARY_FILE are pinned on every call. Costs 8.33 credits per minute of audio (0.1 minimum); subtitles and word timings cost nothing extra. Long recordings take minutes to process.
- **listen** — Record one spoken turn from this machine's microphone and return its transcript (Thai, English, or other languages, code-switching included). Paxa's realtime transcription detects when the user starts and stops talking, so the call returns as soon as the turn ends; the audio goes straight to the API and nothing is written to disk. Waits for any speech this server is playing to finish first. Use it after speak when you asked the user a question and want their spoken answer. Returns an empty transcript when nobody spoke within wait_seconds. Costs 12.5 credits per minute of audio sent, silence included (a few seconds of listening costs well under one credit). Needs a microphone recorder on this machine (ffmpeg or sox; parecord or arecord on Linux) and Node 22 or newer; the host app must have microphone permission.
- **send_feedback** — Report a wrong or poor output, an API problem, or a platform issue to the Paxa Labs team, tied to the request ids the other tools print ("Request id: ..."). A rating alone on at least one request id is a complete report. For a wrong output, add an example with the exact input, the output received, and the output expected. Free, no credits. Use it when the user says an output was wrong, or asks to report a problem; do not file reports the user did not ask for.
- **list_voices** — List the Paxa TTS voice roster: ids, names, gender, language, and character notes. Free.
- **list_models** — List available Paxa models with their limits and credit pricing. Free.
- **get_account** — Show the API key's account: credit balance, plan, and rate limits. Free.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "paxa-labs": {
    "command": "npx",
    "args": ["-y","@paxalabs/mcp"],
    "env": {
      "PAXA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `PAXA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Paxa Labs MCP server does

The Paxa Labs MCP server exposes speech and document-processing functions from the Paxa Labs API to MCP-compatible agents. Its language features cover Thai, English, and Mandarin Chinese speech, while translation can accept any source language and produce Thai output. The server also works with local PDFs and common image formats for OCR and typed-field extraction.

Speech can be handled interactively or as files. Short text can be synthesized and played immediately, while longer content is split into segments and managed through a shared playback queue. Audio recordings can be transcribed in Thai, English, or mixed-language content, with optional speaker identification, word timing, and subtitle output.

## How it works

The server is launched with the npm package through `npx -y @paxalabs/mcp`. MCP clients send tool calls to the local process, which uses `PAXA_API_KEY` to access the Paxa Labs API. Local audio and document paths are supplied to the relevant tools; generated audio, OCR results, extracted fields, and transcription outputs are returned or written as specified by the tool.

All generated playback uses one ordered audio queue. Short `speak` calls can be inserted ahead of longer queued material, while `queue_speech` synthesizes upcoming segments as the current segment plays. Playback controls can report queue status, pause or resume audio, skip an item, or clear the queue. A streaming-capable player can begin playback before the complete audio response has downloaded.

## Setup and configuration

Create a Paxa Labs account and obtain an API key, then add the server to the MCP client configuration. A typical stdio entry is:

```json
{
  "mcpServers": {
    "paxa": {
      "command": "npx",
      "args": ["-y", "@paxalabs/mcp"],
      "env": { "PAXA_API_KEY": "pxa_your_key_here" }
    }
  }
}
```

Claude Code can add the same server with `claude mcp add paxa -e PAXA_API_KEY=pxa_your_key_here -- npx -y @paxalabs/mcp`. The README also provides installation links for Cursor and VS Code. The package requires Node.js, and the API key is needed for tools that call the service. The repository describes the tool set as beta, so names and behavior may change before version 1.0.

For Claude Code voice notifications, the package can also be installed globally so the `paxa say` command is available to hooks. Optional playback programs such as `mpg123` or `ffmpeg` can reduce startup delay for cached notification phrases.

## Tools and capabilities

The Paxa Labs MCP server includes:

- `speak`, `queue_speech`, `control_playback`, and `play_audio` for local audio playback.
- `text_to_speech` for creating MP3, Opus, or WAV files without playing them.
- `translate_to_thai` with formality, glossary, and context options.
- `ocr_document` for Markdown or structured-block output from PDFs and PNG, JPEG, or WebP images.
- `extract_fields` for typed values such as Thai IDs, dates, amounts, banks, and line items; unavailable values are returned as null with a reason.
- `transcribe_audio` for Thai, English, or mixed recordings, including optional speakers, word timings, SRT, and VTT subtitles.
- `list_voices`, `list_models`, and `get_account` for available voices, model details, pricing, credit balance, plan, and rate limits.

Credit charges vary by tool. Playback control and informational tools are free; speech, translation, OCR, extraction, and transcription use the rates listed by the service.

_Full upstream README: https://allmcps.com/mcp/paxa-labs/readme_

