Connect BetterWaifu to Claude, Cursor, and AI agents.
Add our Streamable HTTP MCP server to give your AI assistant direct tools for generating images, editing, upscaling, and creating videos. Authenticate with your normal API key and optionally cap daily spend per key.
Setup takes one minute
For Claude Code or any CLI client that supports Streamable HTTP:
claude mcp add --transport http betterwaifu https://betterwaifu.com/api/mcp \
--header "Authorization: Bearer $BETTERWAIFU_API_KEY"For Cursor, Windsurf, or JSON-configured MCP clients:
{
"mcpServers": {
"betterwaifu": {
"type": "http",
"url": "https://betterwaifu.com/api/mcp",
"headers": {
"Authorization": "Bearer bw_your_key_here"
}
}
}
}Available MCP tools
- list_models
- List checkpoints, LoRAs, hosted image models, video models, and credit prices.
- generate_image
- Generate or edit images with SDXL/Anima checkpoints, LoRAs, SeeDream, or BWAI Edit (supports enhance_prompt: true).
- generate_video
- Create videos with MiniMax H3, Seedance 2.0/2.5, or BWAI Spicy, including reference images, H3 HD upscaling, and enhance_prompt: true.
- upscale_image
- Upscale any of your images 2x or 4x.
- upload_image
- Upload a base64 image (free, moderated) to use as a source or reference.
- check_generation
- Check status and get CDN URLs for any image, video, or upscale job.
- cancel_generation
- Cancel an in-flight job on models that support cancellation (like Seedance).
- list_generations
- List recent API jobs with status, model, and credit cost.
- list_images
- Browse your saved images or videos to reuse as source or reference inputs.
- get_account
- Check remaining credits, subscription status, and the key's daily budget.
Full image + video catalog
Everything on the REST API is exposed as native MCP tools, including MiniMax H3, SeeDream, SDXL checkpoints, and upscaling.
Simple Bearer key auth
Paste one API key from the developer console. Set a daily credit limit and model allowlist on the key before handing it to an agent.
Works with standard clients
Standard Streamable HTTP MCP at /api/mcp. Works with Claude Code, Cursor, Windsurf, and custom agent frameworks.
Safe retries built in
Every paid tool accepts an idempotency_key so retries never double-charge, and failed jobs refund automatically.
Common questions
- What is MCP?
- Model Context Protocol (MCP) lets AI assistants like Claude and Cursor call external tools directly during a chat. Once connected, you can just ask your assistant to generate an image, edit it, or turn it into a video.
- How do I keep an agent from burning all my credits?
- In the developer console, create a dedicated key for your agent and set a daily credit limit (for example, 100 credits/day) and allowed models. Once the cap is reached, requests return 402 until 00:00 UTC.
- Does the MCP server cost extra?
- No. Tool calls spend the exact same credits as the site and REST API, and failed jobs are refunded automatically.
- Are the same content rules enforced?
- Yes. MCP calls run through the exact same REST handlers and moderation checks as the website.
Calling from your own backend or script instead? Check out the NSFW AI API and Hentai AI API pages.