@larvoice/mcp
v0.1.2
Published
MCP server for Larvoice Text-to-Speech API integrations.
Maintainers
Readme
@larvoice/mcp
MCP server for Larvoice Text-to-Speech API. Use this package to connect Larvoice with Cursor, Codex, Claude Desktop, Kiro, Antigravity, OpenClaw, Hermes, or any MCP client that can run a local command.
Package:
npx -y @larvoice/mcpAuth
Easy login:
npx -y @larvoice/mcp loginThis opens a local browser page where you can paste your Larvoice API key. The key is verified and saved locally at ~/.larvoice/mcp.json.
You can also put your Larvoice API key in the MCP server environment:
LARVOICE_API_KEY=lv_your_keyYour MCP client passes this value to @larvoice/mcp when it starts the server.
Supported Clients
| Client | Config shape |
| --- | --- |
| Cursor | JSON mcpServers |
| Codex | TOML mcp_servers |
| Claude Desktop | JSON mcpServers |
| Kiro | MCP command server |
| Antigravity | MCP command server |
| OpenClaw | MCP command server |
| Hermes | MCP command server |
Installless Usage
Use with any MCP client that supports command-based MCP servers:
{
"mcpServers": {
"larvoice": {
"command": "npx",
"args": ["-y", "@larvoice/mcp"],
"env": {
"LARVOICE_API_KEY": "lv_your_key",
"LARVOICE_BASE_URL": "https://api.larvoice.com"
}
}
}
}LARVOICE_BASE_URL is optional. Default: https://api.larvoice.com.
Codex Config
[mcp_servers.larvoice]
command = "npx"
args = ["-y", "@larvoice/mcp"]
[mcp_servers.larvoice.env]
LARVOICE_API_KEY = "lv_your_key"
LARVOICE_BASE_URL = "https://api.larvoice.com"Cursor Config
{
"mcpServers": {
"larvoice": {
"command": "npx",
"args": ["-y", "@larvoice/mcp"],
"env": {
"LARVOICE_API_KEY": "lv_your_key",
"LARVOICE_BASE_URL": "https://api.larvoice.com"
}
}
}
}Claude Desktop Config
{
"mcpServers": {
"larvoice": {
"command": "npx",
"args": ["-y", "@larvoice/mcp"],
"env": {
"LARVOICE_API_KEY": "lv_your_key",
"LARVOICE_BASE_URL": "https://api.larvoice.com"
}
}
}
}Other MCP Clients
Use this command and environment:
command: npx
args: -y @larvoice/mcp
env:
LARVOICE_API_KEY=lv_your_key
LARVOICE_BASE_URL=https://api.larvoice.comSmoke Test
LARVOICE_API_KEY=lv_your_key npx -y @larvoice/mcpWhen connected through an MCP client, call larvoice_get_account first to verify the API key.
Tools
larvoice_get_accountlarvoice_get_usagelarvoice_list_languageslarvoice_upload_voicelarvoice_list_voiceslarvoice_get_voicelarvoice_update_voicelarvoice_delete_voicelarvoice_preview_ttslarvoice_preview_voicelarvoice_create_tts_joblarvoice_create_tts_batchlarvoice_get_joblarvoice_list_jobslarvoice_cancel_job
Notes
- Get a Larvoice API key from
https://t.me/larvoice_api_bot. - Store
LARVOICE_API_KEYin MCP env config. - Upload voice files as
mp3,wav, orm4a. - Use
voice_idafter uploading a voice. - Use preview tools before long jobs.
- Use batch for multiple clips.
- Poll jobs until
completedorfailed.
