pypi webvoice-mcpstdioMITupdated 3mo ago
Local Model Context Protocol server that exposes WebVoice REST API tools to Cursor, Claude Desktop, and other MCP clients.
WebVoice 能做什么?
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)
- Add MCP without
WEBVOICE_API_KEYfirst (or use the register tools from any client). - Call
webvoice_register_send_codewith your email. - Read the OTP from email, then
webvoice_register_verifywith the code. - Response includes
api_key(once),onboarding.credits,onboarding.can_use_api, and optionalonboarding.solana(wallet +memo_codefor USDC/SOL top-up). - If
can_use_apiis true, use chat/TTS/STT immediately with welcome credits. - Set
WEBVOICE_API_KEYin 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)
- Login — email OTP or Google (
/accounts/login/). New users get welcome + daily free credits. - API key — API dashboard → Create key → copy
wv_…(shown once). - 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):
webvoice_register_send_code→webvoice_register_verify→ saveapi_key.- If
onboarding.can_use_api: callwebvoice_chat/webvoice_tts/ … immediately. - Optional:
webvoice_onboarding→ Solana memo or PayPal URLs when you need more credits.
Existing account:
- Ask the model to call
webvoice_chatwith your question. - Call
webvoice_ttswithoutput_pathto save spoken reply. - Call
webvoice_sttwith a recordedaudio_pathfor voice input.
Credits are billed on your WebVoice account per API call.
安装
把 WebVoice 添加到你的客户端。选择你正在使用的那个。
claude mcp add webvoice-mcp -- uvx webvoice-mcpcodex mcp add webvoice-mcp -- uvx webvoice-mcpamp mcp add webvoice-mcp -- uvx webvoice-mcp{
"mcpServers": {
"webvoice-mcp": {
"command": "uvx",
"args": [
"webvoice-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"webvoice-mcp": {
"command": "uvx",
"args": [
"webvoice-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"webvoice-mcp","command":"uvx","args":["webvoice-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"webvoice-mcp": {
"command": "uvx",
"args": [
"webvoice-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"webvoice-mcp": {
"command": "uvx",
"args": [
"webvoice-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"webvoice-mcp": {
"command": "uvx",
"args": [
"webvoice-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"webvoice-mcp": {
"type": "local",
"command": "uvx",
"args": [
"webvoice-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"webvoice-mcp": {
"command": {
"path": "uvx",
"args": [
"webvoice-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx webvoice-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
11 个工具
WebVoice 向已连接的智能体提供 11 个工具。
- 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
评分
68 / 100
良好
- 文档22/25
- 维护13/25
- 可信度13/20
- 能力8/15
- 安装体验12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 99 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 11 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
版本历史
| 版本 | 发布于 |
|---|---|
| 0.2.1最新 | 2026年5月24日 |