@pyai/mcp, that gives AI coding agents first-class PyAI tools: they can mint a
free sandbox key and call Speak (TTS), Hear (STT), and the voice catalog directly
instead of guessing endpoints.
Add to Cursor — one click
create_sandbox_key for a free pyai_test_ key on demand).
Prefer to do it by hand? Add this to .cursor/mcp.json (project) or
~/.cursor/mcp.json (global):
"env": { "PYAI_API_KEY": "pyai_live_..." }.
Other agents
What the agent gets
| Tool | Needs a key? | What it does |
|---|---|---|
create_sandbox_key | No | Mint a free pyai_test_ key (no email/card), adopted for the session |
get_started | No | Curated quickstart (auth, SDK install, TTS/STT/realtime snippets) |
whoami | Yes | Introspect the key — org, env, scopes, credit posture |
list_models, list_voices | Yes | Catalogs |
synthesize_speech | Yes | Text-to-speech to a file |
create_transcription_job / get_transcription_job | Yes | Async speech-to-text |
https://api.pyai.com/openapi.json — the
agent never invents endpoints.