Skip to main content

MCP server for WebVoice — agent registration, chat, TTS, STT, translation, images

Project description

WebVoice MCP Server

Local Model Context Protocol server that exposes WebVoice REST API tools to Cursor, Claude Desktop, and other MCP clients.

Install from PyPI:

pip install webvoice-mcp

From source (development)

pip install -r requirements-mcp.txt
# or editable install from repo root:
pip install -e .

Configure Cursor

Option A — Agent registration via MCP (no browser)

  1. Add MCP without WEBVOICE_API_KEY first (or use the register tools from any client).
  2. Call webvoice_register_send_code with your email.
  3. Read the OTP from email, then webvoice_register_verify with the code.
  4. Response includes api_key (once), onboarding.credits, onboarding.can_use_api, and optional onboarding.solana (wallet + memo_code for USDC/SOL top-up).
  5. If can_use_api is true, use chat/TTS/STT immediately with welcome credits.
  6. Set WEBVOICE_API_KEY in MCP config and restart Cursor (optional Solana/PayPal top-up later).

REST equivalent: POST /api/v1/auth/send-code/POST /api/v1/auth/verify-code/ with create_api_key: true. See API docs.

Option B — Browser signup (human)

  1. Login — email OTP or Google (/accounts/login/). New users get welcome + daily free credits.
  2. API keyAPI dashboard → Create key → copy wv_… (shown once).
  3. Credits (optional)Buy credits, Premium (PayPal), or Solana (send USDC/SOL with your personal memo from webvoice_onboarding).

When balance is zero, MCP calls fail with insufficient credits; you receive an email with a recharge link.

MCP config

Edit Cursor MCP config (~/.cursor/mcp.json or Settings → MCP):

{
  "mcpServers": {
    "webvoice": {
      "command": "webvoice-mcp",
      "env": {
        "WEBVOICE_API_KEY": "wv_your_key_here"
      }
    }
  }
}

If webvoice-mcp is not on PATH, use Python module form:

{
  "mcpServers": {
    "webvoice": {
      "command": "python",
      "args": ["-m", "webvoice_mcp"],
      "cwd": "/path/to/webvoice",
      "env": {
        "WEBVOICE_API_KEY": "wv_your_key_here"
      }
    }
  }
}

Optional: WEBVOICE_BASE_URL (default https://webvoice.easytaskflow.app/api/v1).

Tools

Tool Description
webvoice_register_send_code Start registration — OTP to email
webvoice_register_verify Complete registration → API key + onboarding (credits, can_use_api)
webvoice_onboarding Credits, can_use_api, optional Solana wallet/memo, recharge URLs
webvoice_status Credits balance
webvoice_list_chat_models Available chat models
webvoice_list_voices TTS voices
webvoice_chat Chat completions (DeepSeek default)
webvoice_tts Text-to-speech → MP3
webvoice_stt Transcribe local audio file
webvoice_translate Text translation
webvoice_image MiniMax image generation

Example agent flow

New agent (register → use → optional top-up):

  1. webvoice_register_send_codewebvoice_register_verify → save api_key.
  2. If onboarding.can_use_api: call webvoice_chat / webvoice_tts / … immediately.
  3. Optional: webvoice_onboarding → Solana memo or PayPal URLs when you need more credits.

Existing account:

  1. Ask the model to call webvoice_chat with your question.
  2. Call webvoice_tts with output_path to save spoken reply.
  3. Call webvoice_stt with a recorded audio_path for voice input.

Credits are billed on your WebVoice account per API call.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webvoice_mcp-0.2.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webvoice_mcp-0.2.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file webvoice_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: webvoice_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for webvoice_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 108721a77c1a8295b13c2b8daf18fce3f832058da50264ecd78d1a4384714c6d
MD5 71f6078ab646acf6f63229f38792917f
BLAKE2b-256 ce07eec9485ab822db9519c2f25b5820c9c6d5cbfe480094028032ce7ad6b038

See more details on using hashes here.

File details

Details for the file webvoice_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: webvoice_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for webvoice_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 174d28eb836aab7934edcc5a7e246c8c3bde859b85fcfd33cb2fe0974d626bea
MD5 8ed7d4fc817e0aad03bc3fba76ba123f
BLAKE2b-256 b7b944c8969368ed09b00ea55f60c4c2a13a3222770834ac3f933f2b47bcc9d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page