Repository navigation
Home
2DAITeam edited this page Oct 11, 2026
·
9 revisions
MCP server for 2DAI — drive your 2DAI account from Claude, Cursor, Cline, Windsurf or any other MCP host. Ask your agent to generate images and video — including the two Gen8 Preview engines: Gen8 Preview video, the next video engine with sound and your own audio reference, and Gen8 Preview images with 6 references — upload references, organise your cloud drive, browse the public feed, and read your stats and wallet data — in plain language.
{
"mcpServers": {
"2dai": {
"command": "npx",
"args": ["-y", "2dai-mcp-server"],
"env": { "TWODAI_API_KEY": "2dai_sk_..." }
}
}
}Full host-by-host setup (Claude Desktop, Claude Code, Cursor, generic stdio) is in Getting Started.
| Area | Tools | Highlights |
|---|---|---|
| Account & stats |
get_account, get_stats
|
credit, tier, key scopes; counters, streak, storage, 30/90-day volume + spend, top refs |
| Generating |
generate_image, generate_with_refs, generate_in_artistic_style, generate_video, generate_similar, generate_wallpaper, check_generation, cancel_generation
|
text-to-image (incl. Gen8 Preview images with 6 references, imageModel: "next"), face/character refs, style transfer, smart edit, video, Gen8 Preview video with sound (videoModel: "next"), "more like this", wallpaper expansion |
| Library & search |
list_creations, browse_feed, upload_image, upload_audio, download_creation
|
lenses + search + random pick, the public feed, reference uploads, full-res saves |
| Folders & organising |
list_folders, list_artistic_styles, manage_folder, organise_creation
|
folders, sidebar groups, favorites, posters; move / trash / restore / like / batch |
| Publishing | publish_creation |
publish / unpublish on the public feed |
| Wallet (read-only) |
get_wallet_status, get_lock, get_wallet_history, get_token_price
|
balance, tier legs, staking lock, history — opt-in finance scope |
Every tool is documented in the Tools Reference.
- Getting Started — mint a key, pick scopes, add the server to your host
- Tools Reference — all 24 tools: arguments, returns, cost
- Generating — image / Gen8 Preview images / refs / video / Gen8 Preview video / similar / wallpaper flows, the wait-vs-ticket behavior, safe retries
- Library & Drive — listing, search, the feed, folders & groups, uploads, downloads
- Stats & Wallet — account analytics + read-only wallet data
- About the Models — the Gen 7.2 stack, Gen8 Preview (video with sound, images), 2DAI❤️ART, private cloud
- Troubleshooting — key/scope errors, host setup issues, timeouts, credit errors
-
Gen8 Preview images.
generate_imagewithimageModel: "next"runs the preview of our next image engine: up to 6 references kept natively, legible text, long literal prompts, the same quality ids. Holder and up —get_accountreportscanUseImageNextandqualities.imageNext; every reference adds a surcharge on both image models. -
Gen8 Preview video.
generate_videowithvideoModel: "next"runs the preview of our next video engine: clips with sound, from a first frame plus up to 6 references that stay consistent, and since 1.6.0 an audio reference of yours (upload_audioan MP3, thenaudioCreationIdas music or a voice sample).get_accountlists the lengths and presets the account may submit —fastand 1 to 10 s from Holder, every preset and up to 20 s at Founder. -
npm
2dai-mcp-server. Runs locally over stdio vianpx— nothing to install permanently. Node 18+. -
One API key. Created at 2dai.io → Dashboard → Integrations → API
keys, passed as the
TWODAI_API_KEYenvironment variable — never as a tool argument. -
24 tools, least privilege. Keys are scoped (
read,generate,manage,publish, opt-infinance); a tool your key doesn't cover returns an actionable error, not a crash. -
Generation spends real credit. Everything else — listing, stats,
downloads, organising, wallet reads — is free. The server tells agents to
check
get_accountbefore proposing work. - The model can see what it made. Finished images come back as inline downscaled previews, so the agent can look at the result and iterate; full-resolution bytes only ever go to disk.
-
Recommended presets. Images:
max(best balance of detail and price),ultimatefor the highest resolution. Video:ultraat 5 seconds — several short shots beat one long take.get_accountlists what your tier may use. -
A skill for your agent. The npm package ships
skills/2dai/SKILL.md— the platform guide (quality ladder, costs, the film recipe, the brand-consistency recipe, what not to do). Point your agent runtime at it. - Wallet data is read-only, structurally. No tool on this server can deposit, withdraw, swap or lock — see Stats & Wallet.
-
Built on
2dai-cloud-sdk. Creations made through this server are labelled MCP in the dashboard and collected under Cloud Drive → MCP. If you'd rather script the API directly from TypeScript (or any language over REST), use the SDK. - Proprietary Gen 7.2 stack on 2DAI's private cloud — same weights the studio uses, not resold third-party access. See About the Models.