WPConvert MCP

ai.wpconvert由 wpconvert.ai 发布官方发布者v0.4.1更新于 Nov 3, 2026

Convert websites to WordPress themes: connect by URL or run locally; preview, buy, download.

已验证Streamable HTTP可网页运行开发者工具商业与电商媒体与设计

概览

AI 生成的概览

WPConvert MCP 可把本地项目文件夹转换为 WordPress 主题,并在对话中查看任务状态、预览、套餐与结账。

可以做什么
  • 打包本地文件夹并发起 WordPress 主题转换,附带幂等键以便安全重试
  • 查询转换任务在各流水线阶段的状态,并解释任务失败原因
  • 将完成的主题以 zip 文件下载到本地磁盘
  • 生成临时的 WordPress Playground 链接,在浏览器中查看转换后的主题
  • 在转换前查看账户配额、可用能力与访客免费预览次数
  • 以访客或登录身份连接,列出套餐与价格,并创建 Stripe 结账链接
适用场景
当你有一个静态站点或前端项目文件夹,希望由助手直接转成可安装的 WordPress 主题、免去手动打包上传时适用。也适合先用免费访客预览试用,再决定是否购买套餐或额度。
运行要求
可作为远程端点使用,也可作为本地 npm 包运行(npx @wpconvert/mcp),需要 Node.js 18 或更高版本。API 密钥可选:未设置 WPCONVERT_API_KEY 时,助手会提供访客或登录链接,登录后密钥保存在本地配置文件。下载需要付费套餐或额度。
安装前请注意
该服务器会读取本地文件夹并上传到第三方服务;默认排除 node_modules、构建产物和密钥文件,但仍应先确认文件夹内容。购买套餐或额度通过用户自行打开的 Stripe 结账链接完成。访客上传有大小上限,预览链接约十分钟后失效且属于敏感信息。

安装

在 SourceWeft 中

  1. 打开 控制台中的 WPConvert MCP,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.wpconvert%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "wpconvert": {
      "type": "http",
      "url": "https://mcp.wpconvert.ai/mcp"
    }
  }
}

README

@wpconvert/mcp

A Model Context Protocol server for WPConvert.ai. It lets an AI agent (Cursor, Claude Code, Claude Desktop, etc.) convert the current workspace folder into a WordPress theme — no manual zipping required.

It's a thin wrapper over the same HTTP API and smart-zip logic as the wpconvert CLI.

Requires Node.js >= 18. No API key is needed to start: the agent can give you a link for a few free guest previews (one quick human check in the browser, no account), or for signing in. Downloads need Starter, Pro, Agency or pay-as-you-go credits, which you can buy from the same conversation.

Tools

ToolPurpose
wpconvert_convert_folderZip a folder (excluding node_modules, build output, secrets) and start a conversion. Returns a jobId.
wpconvert_check_statusPoll a job's status. Persisted values follow the OpenAPI ConversionStatus enum (queued, pipeline stages, done, failed). The tool-layer bucket processing means still in progress — not a persisted API value.
wpconvert_download_resultDownload a completed conversion to disk.
wpconvert_create_previewGet a WordPress Playground URL to view the theme in a live in-browser WordPress. The link expires after about ten minutes and is sensitive — open it in a browser.
wpconvert_explain_failureReturn the failure reason for a failed job.
wpconvert_quotaShow quota, capabilities, and recommended_next. Call before converting. For a guest session, shows free previews left.
wpconvert_connectStart a browser link: kind: "guest" (free previews, no account) or kind: "login" (sign in; saves a new API key locally). Returns a link and code for you to open — the agent never opens it.
wpconvert_connect_statusCheck whether you finished the link (waits ~20s), and how WPConvert is connected now.
wpconvert_plansEvery option with what it includes and today's price: Starter (one theme), Pro, Agency (monthly/yearly), pay-as-you-go packs. Pass jobId for options to unlock that conversion.
wpconvert_checkoutA Stripe checkout link for the option you picked. Needs a signed-in account. You open and pay; the agent never pays.

Configure (Claude Code)

bash
claude mcp add wpconvert --scope user -- npx -y @wpconvert/mcp

--scope user makes the server available in every project. Confirm with claude mcp list (wpconvert … ✔ Connected) or /mcp inside a session. Then ask the agent to convert a folder; it will offer a guest link or a sign-in link.

To use an existing API key instead, add it before the --, after the server name: claude mcp add wpconvert --scope user -e WPCONVERT_API_KEY=wpc_live_xxx -- npx -y @wpconvert/mcp (-e accepts several values, so put the name first).

Configure (Cursor / Claude Desktop)

json
{  "mcpServers": {    "wpconvert": {      "command": "npx",      "args": ["-y", "@wpconvert/mcp"]    }  }}

Optional env: WPCONVERT_API_KEY (an existing key; it takes precedence over a key saved by sign-in) and WPCONVERT_API_BASE (a non-default API host, for testing).

Sign-in and guest sessions are saved in ~/.wpconvert/config.json (mode 0600), shared with the wpconvert CLI. Tool results never include the key, the guest token or the link's device code.

Typical agent flow

Quota-first (recommended):

  1. wpconvert_quota → review capabilities (conversion mode, can_start, download availability) and recommended_next
  2. wpconvert_convert_folder { "path": "./my-site", "type": "theme" } → jobId + idempotency_key + recommended_next
  3. wpconvert_check_status { "jobId": "..." } (repeat until done; follow recommended_next — usually poll every ~15s)
  4. When recommended_next.tool is wpconvert_download_result → download the theme .zip
  5. When preview-only or download locked → wpconvert_create_preview for a WordPress Playground URL (no ZIP)

If conversion is blocked (can_start: false), wpconvert_convert_folder returns a structured denial before zipping or submitting. Call wpconvert_quota to review recommended_action.

No key yet (guest):

  1. wpconvert_convert_folder → recommended_next: wpconvert_connect { "kind": "guest" }
  2. wpconvert_connect { "kind": "guest" } → the agent shows you a link and code; you open it and confirm you're human
  3. wpconvert_connect_status → connected, with free previews left
  4. wpconvert_convert_folder, wpconvert_check_status, then wpconvert_create_preview to see it in WordPress Playground (guest uploads up to 50MB zipped; never retried automatically, since each upload uses a preview)

Buying (download a theme, or a plan):

  1. wpconvert_plans { "jobId": "..." } → every option and price; the agent asks you which one
  2. Not signed in? wpconvert_connect { "kind": "login" }, then wpconvert_connect_status, then wpconvert_plans again
  3. wpconvert_checkout with your choice's checkout_arguments → a Stripe link you open and pay
  4. wpconvert_check_status → once paid, recommended_next is wpconvert_download_result. Guest themes you buy move to your account.

Capabilities and structured responses

Tools return human-readable prose plus a trailing JSON block (same ok() / fail() pattern as before). Key fields:

FieldWhereMeaning
quotawpconvert_quotaFull backend quota body (unknown future fields preserved)
summaryquota, denialsProjected can_start, mode, consumes, download_available
capabilities_availablequotafalse on legacy backends without capabilities.conversion
recommended_nextall tools{ tool, reason, retry_after_seconds? } — which MCP tool to call next
next_actionconvert successString (unchanged) — human guidance for agents
idempotency_keyconvertOmitted on preflight denial (no key generated)

Status recommended_next rules:

  • queued, pipeline stages, or tool-layer processing → wpconvert_check_status (poll)
  • done + downloadable → wpconvert_download_result
  • done + preview-only / download locked → wpconvert_create_preview (never download); the reason names wpconvert_plans for unlocking
  • done + guest (guest: true, remaining_previews) → wpconvert_create_preview, then wpconvert_plans to buy
  • failed → wpconvert_explain_failure

Idempotency recovery

  • Leave idempotency_key blank for a new intentional conversion.
  • If a prior wpconvert_convert_folder call timed out or returned an ambiguous network error, retry with the exact idempotency_key from that call — do not omit it and do not invent a new one.
  • Do not reuse a key for changed files, options, or a deliberate new conversion.
  • Preflight runs after path/plan validation but before key generation (when omitted), ZIP build, and submit — so blocked accounts never upload.

Preview-only / download locked

Free developer previews and guest previews are preview-only (Playground, no ZIP download). When download_available is false or preview_only is true, status and download tools recommend wpconvert_create_preview, wpconvert_plans or wpconvert_quota — not download retry.

Dependency pin

This package pins [email protected] exactly for shared capability helpers (resolveConvertPreflight, quota formatters).

来源:packages/mcp/README.md,提交 b47ab0a

工具

10

wpconvert_convert_folder

Zip a local folder (excluding node_modules, build output, and secrets by default) and start a WordPress theme conversion. Call wpconvert_quota first to review capabilities (mode, credits, download availability). Returns a jobId and an idempotency_key. Leave idempotency_key blank for a new intentional conversion. If a prior call may have timed out or returned an ambiguous network error, retry with the exact idempotency_key returned by that prior call — do not omit it and do not invent a new one. Do not reuse a key for changed files, options, or a deliberate new conversion. Once you have a jobId, poll wpconvert_check_status until "done", then follow recommended_next for download or preview. Without an API key it uses the guest session from wpconvert_connect (free previews, up to 50MB zipped); with neither it returns recommended_next wpconvert_connect.

输入参数namepath必填typeincludeEnvmaxAssetSizeMBidempotency_key

wpconvert_check_status

Check the status of a conversion job. Returns persisted status per the OpenAPI ConversionStatus enum (queued, analyzing, building, rendering, labeling, generating, validating, uploading, done, failed). The tool-layer bucket `processing` means still in progress — it is not a persisted API value. Also returns progress, download/preview availability, and recommended_next (which tool to call next). When done and downloadable, recommended_next points to wpconvert_download_result; for preview-only jobs it points to wpconvert_create_preview instead.

输入参数jobId必填

wpconvert_download_result

Download a completed conversion to disk. Only use when wpconvert_check_status shows download_available and recommended_next is wpconvert_download_result. Returns the saved file path. For preview-only jobs, use wpconvert_create_preview or upgrade and re-convert instead.

输入参数jobId必填outDir

wpconvert_create_preview

Create a WordPress Playground preview link for a completed conversion so the user can view the theme running in a live, in-browser WordPress (no local install). Returns a URL the user must open in a browser — you cannot embed or render it yourself. The link expires after about ten minutes and grants temporary access to the theme, so treat it as sensitive.

输入参数jobId必填

wpconvert_explain_failure

Return the failure reason for a failed conversion job. Distinguishes status retries, recovering a submission with the same idempotency_key via wpconvert_convert_folder, and starting a deliberate new conversion without that key.

输入参数jobId必填

wpconvert_quota

Show account quota, capabilities (conversion mode, can_start, download availability), and recommended_next. Call this before wpconvert_convert_folder to understand what the next conversion will consume. For a guest session it shows the free previews left.

无需输入参数。

wpconvert_connect

Connect WPConvert without an API key. kind "guest": the user confirms they are human once in the browser and gets a few free previews (no account; downloads need a purchase). kind "login": the user signs in or creates an account in the browser and types the code shown, and a new API key is saved locally. Returns a link and a short code. Show both to the user and ask them to open the link; never open it yourself. Then call wpconvert_connect_status.

输入参数kind必填

wpconvert_connect_status

Check whether the user finished the wpconvert_connect link (waits up to about 20 seconds). Call it again while it says "waiting". Also reports how WPConvert is connected now: guest (with previews left) or account (with a masked email). Never returns the token or key.

无需输入参数。

wpconvert_plans

List what the user can buy: Starter (unlock one theme), Pro, Agency (monthly or yearly) and pay-as-you-go credit packs, with what each includes and today's price. Pass jobId to see options for unlocking that conversion. Show all options to the user and let them choose; do not pick for them. Then call wpconvert_checkout with the checkout_arguments of their choice.

输入参数jobId

wpconvert_checkout

Create a Stripe checkout link for the option the user picked from wpconvert_plans. Call this only after the user has chosen; pass that choice's checkout_arguments unchanged. Needs a signed-in account (wpconvert_connect kind "login"). Returns a link the user opens to pay; never open it yourself and never pay on their behalf.

输入参数kind必填jobIdintervalpackSize

版本历史

4
  1. v0.4.1最新Oct 26, 2026
  2. v0.4.0Oct 20, 2026
  3. v0.3.2Oct 19, 2026
  4. v0.3.1Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分