Skip to main content
Glama
WaveSpeed MCP Server

WaveSpeed MCP Server

Official

WaveSpeed MCP Server

一个用于 WaveSpeed 平台的 MCP 服务器:在实时目录上运行任何模型——图像、视频、音频、3D——从 Claude Code、Claude Desktop、Cursor、Cline 或任何 MCP 客户端。

与开源 @wavespeed/cli 采用相同的设计:

  • 没有硬编码模型。 目录来自实时 API(1 小时缓存);新平台模型在发布当天即可使用。

  • 一个生成动词。 run_model 执行任何操作;get_model_schema 告诉代理模型实际接受哪些输入,因此它会先读取再写入。

  • 输入永远不会被修改。 唯一的显式转换是 @path 标记——input 中的 "@./photo.jpg" 值会上传文件并替换为其托管 URL。裸路径会原样传递。

  • 诚实的定价。 get_price 在您花费之前报价,并指出报价未覆盖的输入(unpriced_inputs),而不是将公式的下限呈现为“最终”价格。

工具

工具

作用

list_models

按文本或模态类型搜索实时目录

get_model_schema

模型的真实输入模式(必填项、属性、默认值)

run_model

提交并等待;@path 输入自动上传;返回输出 URL

get_price

成本估算,并披露 unpriced_inputs / at_base_price

get_balance

账户信用余额

upload_file

本地文件 → 托管 URL(24 小时内容哈希去重)

get_prediction

通过 id 恢复任何运行的状态/输出

如果 run_model 达到其等待限制,任务会在服务器端继续运行——错误信息会指明预测 id,get_prediction 可以接续获取。

Related MCP server: wavespeed-mcp-worker

设置

身份验证从 WAVESPEED_API_KEY 解析,或从 CLI 存储的登录信息(wavespeed login)解析——一次登录即可覆盖两个工具。密钥:wavespeed.ai/accesskey。

Claude Code

claude mcp add wavespeed -- npx -y @wavespeed/mcp

Claude Desktop / 其他客户端(mcpServers 配置):

{
  "mcpServers": {
    "wavespeed": {
      "command": "npx",
      "args": ["-y", "@wavespeed/mcp"],
      "env": { "WAVESPEED_API_KEY": "wsk_..." }
    }
  }
}

示例提示词

  • "生成一张 16:9 的赛博朋克天际线黄金时刻主视觉图。"

  • "使用 ./photo.jpg 并将背景替换为阳光充足的厨房。" (代理传递 "@./photo.jpg")

  • "为 ./hero.png 制作微妙的视差动画——先检查价格。"

开发

npm install
npm run dev        # run from source (stdio)
npm run lint       # typecheck
npm run build      # tsc → dist/

许可证

MIT

Available Tools

7 tools
get_balanceA
Read-only
Inspect

Show the WaveSpeed account credit balance.

Inputs: no named parameters.

get_model_schemaA
Read-only
Inspect

Get a model's real input schema (required fields, properties, defaults). Call this before run_model so inputs match what the model actually accepts.

Inputs: model (required).

get_predictionA
Read-only
Inspect

Fetch the status and outputs of a past or in-flight prediction by id — use to recover a run that hit the wait limit.

Inputs: id (required).

get_priceAInspect

Estimate the cost of a run before executing it (no charge). Provide the same input you would pass to run_model — pricing often depends on inputs like duration or resolution.

Inputs: model (required), input.

list_modelsA
Read-only
Inspect

Search the live WaveSpeed model catalog (image, video, audio, 3D). Returns model IDs usable with run_model. Do not invent model IDs — always pick one returned by this tool.

Inputs: type, limit, query, refresh.

run_modelAInspect

Run any WaveSpeed model. input keys come from get_model_schema. Local files: pass "@./path" string values — they are uploaded and replaced with hosted URLs (bare paths are NOT uploaded). Returns output URLs. If the wait limit is hit, the task keeps running; recover it with get_prediction.

Inputs: input (required), model (required), wait_seconds.

upload_fileA
Idempotent
Inspect

Upload a local file to WaveSpeed and get its hosted URL (identical bytes reuse the same upload for 24h). Usually unnecessary — run_model handles "@./path" inputs itself.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool has a clear purpose: model discovery, schema, execution, pricing, balance, upload, and status. There is slight overlap between run_model and upload_file since run_model can handle uploads, but descriptions clarify when upload_file is needed.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with clear verbs (list, get, run, get, get, upload, get). No mixed conventions or vague naming.

    Tool Count5/5

    With 7 tools, the server covers the essential workflow for model execution and account management without unnecessary bloat. Each tool serves a distinct need in the lifecycle.

    Completeness4/5

    The tool set covers model discovery, schema retrieval, execution, pricing, balance, file upload, and result retrieval. A minor gap is the absence of a cancel/delete prediction tool, but the core workflow is well covered.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers