npm x402-video-mcpstdioMITupdated 1mo ago
Give any MCP-capable agent (Claude Code, Claude Desktop, Cursor, ...) the ability to generate AI videos and pay per call — USDC on Base over the x402 protocol. No accounts, no API keys, no credit cards.
O que dá para fazer com x402 video?
x402-video MCP server
Give any MCP-capable agent (Claude Code, Claude Desktop, Cursor, ...) the ability to generate AI videos and pay per call — USDC on Base over the x402 protocol. No accounts, no API keys, no credit cards.
quote_price → generate_video (pays exact USDC quote, gasless) → get_job → video_url
Backed by x402video.com: ~$0.45 for a 5s 720p clip, custom 4–15s up to 1080p with optional audio ($0.13–$4.62). Prompts are screened before payment — rejected requests are never charged.
Tools
| Tool | Cost | What |
|---|---|---|
list_skus |
free | Live catalog + current USD prices |
get_stats |
free | Public reliability stats (success rate, p50 generation time) |
quote_price |
free | Exact USDC quote for a request, without paying |
generate_video |
paid | Quote → spend-guard check → pay → job_id |
get_job |
free | Poll status; returns video_url on success (24h link) |
submit_feedback |
free | Tell humans: price / missing feature / quality / bug / cheaper source |
Setup
You need a dedicated spending wallet with a few USDC on Base (8453). Never use your main wallet — see the 5-minute getting-started guide.
Claude Code
claude mcp add x402-video \
--env BUYER_PRIVATE_KEY=0xYOUR_SPENDING_WALLET_KEY \
-- npx -y x402-video-mcp
Claude Desktop / Cursor (JSON)
{
"mcpServers": {
"x402-video": {
"command": "npx",
"args": ["-y", "x402-video-mcp"],
"env": {
"BUYER_PRIVATE_KEY": "0xYOUR_SPENDING_WALLET_KEY"
}
}
}
}
Without BUYER_PRIVATE_KEY the free tools (catalog, quotes, job polling, feedback) still work;
only generate_video requires the wallet.
Feedback (free)
Agents can report product needs without paying:
submit_feedback({
message: "Need wait_for_job so I don't burn tokens polling",
category: "feature",
suggested_price_usd: 0.5
})
Categories: pricing | feature | quality | bug | source | other.
Also available as raw HTTP: POST https://api.x402video.com/feedback.
Environment variables
| Var | Default | |
|---|---|---|
BUYER_PRIVATE_KEY |
— | Spending wallet key (USDC on Base). Required only for generate_video. |
MAX_USD_PER_CALL |
5 |
Hard spend guard — generate_video refuses quotes above this. |
GATEWAY_URL |
https://api.x402video.com |
Point at another gateway instance. |
How payment works
- The tool POSTs your request unpaid; the gateway answers
HTTP 402with the exact USDC amount for that request (a free quote). - If the quote is within
MAX_USD_PER_CALL, the request is retried with an x402 payment header — an EIP-3009 signature, so the buyer pays no gas. - You get a
job_id; generation takes ~2 minutes (p50). Pollget_job, downloadvideo_urlwithin 24h.
Develop
npm install
npm run build
BUYER_PRIVATE_KEY=0x... node dist/index.js # speaks MCP over stdio
Content policy
Hard red lines (rejected pre-payment, never charged): content involving minors, real-person likeness/deepfakes. Sexually explicit content and graphic violence are rejected.
MIT. Independent gateway — not affiliated with or endorsed by model vendors.
Instalação
Adicione x402 video ao seu cliente. Escolha o que você usa.
claude mcp add x402-video-mcp -- npx -y x402-video-mcpcodex mcp add x402-video-mcp -- npx -y x402-video-mcpamp mcp add x402-video-mcp -- npx -y x402-video-mcp{
"mcpServers": {
"x402-video-mcp": {
"command": "npx",
"args": [
"-y",
"x402-video-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"x402-video-mcp": {
"command": "npx",
"args": [
"-y",
"x402-video-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"x402-video-mcp","command":"npx","args":["-y","x402-video-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"x402-video-mcp": {
"command": "npx",
"args": [
"-y",
"x402-video-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"x402-video-mcp": {
"command": "npx",
"args": [
"-y",
"x402-video-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"x402-video-mcp": {
"command": "npx",
"args": [
"-y",
"x402-video-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"x402-video-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"x402-video-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"x402-video-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"x402-video-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y x402-video-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
6 ferramentas
x402 video expõe 6 ferramentas a um agente conectado.
- list_skus
- free
- get_stats
- free
- quote_price
- free
- generate_video
- paid
- get_job
- free
- submit_feedback
- free
Pontuação
75 / 100
Boa
- Documentação22/25
- Manutenção19/25
- Confiança16/20
- Capacidade6/15
- Instalação12/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 25 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
- 6 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
Histórico de versões
| Versões | Publicada |
|---|---|
| 0.1.3Mais recente | 12 de jun. de 2026 |
| 0.1.1Mais recente | 11 de jun. de 2026 |