返回博客

How to Generate 3D Models in Claude Code, Claude Desktop & Cursor via Remote MCP

2026年11月29日TripoSR AI Studio EngineeringTripoSR AI Studio Engineering

Connect Claude Code, Cursor, and Claude Desktop to TripoSR AI Studio Remote MCP Server (https://studio.triposrai.com/api/mcp) to automate Text-to-3D and Image-to-3D PBR GLB asset pipelines.

How to Generate 3D Models in Claude Code, Claude Desktop & Cursor via Remote MCP

When building a Three.js web experience, a Unity prototype, or a Godot dungeon crawler inside Claude Code or Cursor, switching out to a browser every time you need a 3D .glb prop breaks flow. With the Model Context Protocol (MCP), your coding agent can check your Studio credit balance, submit asynchronous Text-to-3D or Image-to-3D jobs, poll until completion, and wire the resulting .glb asset straight into your scene code.

TripoSR AI Studio hosts a zero-install Streamable HTTP Remote MCP Server at https://studio.triposrai.com/api/mcp — meaning you never have to clone a Python wrapper, install CUDA drivers, or run a local Docker container.

Prerequisites: API Key & Eligible Plan

  1. Sign in to TripoSR AI Studio and activate an MCP-enabled plan on /pricing:
    • Pay-Once (no subscription): Creator Pack ($59, 700 credits, 3 parallel jobs) or Studio Pack ($199, 2,800 credits, 6 parallel jobs) — credits stay valid for 365 days and never auto-renew.
    • Subscriptions: Advanced ($29/mo or $249/yr, 3 parallel jobs) or Premium ($79/mo or $699/yr, 6 parallel jobs).
  2. Open Settings → API Keys and issue a scoped personal Bearer key.

Security note: /api/mcp is a machine-only endpoint. Browser session cookies are never accepted, foreign Origin headers are rejected, and you can revoke keys in one click at any time.

Option A: Connect Claude Code CLI

Run one command in your terminal to register triposr-studio over native MCP Streamable HTTP:

claude mcp add --transport http triposr-studio https://studio.triposrai.com/api/mcp \
  --header "Authorization: Bearer YOUR_STUDIO_API_KEY"

Option B: Connect Cursor (.cursor/mcp.json)

Create or edit .cursor/mcp.json in your project root (or ~/.cursor/mcp.json globally):

{
  "mcpServers": {
    "triposr-studio": {
      "url": "https://studio.triposrai.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_STUDIO_API_KEY"
      }
    }
  }
}

Option C: Connect Claude Desktop (claude_desktop_config.json)

Use mcp-remote so Claude Desktop forwards stdio calls securely to our HTTPS endpoint:

{
  "mcpServers": {
    "triposr-studio": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://studio.triposrai.com/api/mcp",
        "--header",
        "Authorization: Bearer YOUR_STUDIO_API_KEY"
      ]
    }
  }
}

All 5 Exposed MCP Tools & Credit Governance

Tool NameCostPurpose in Agent Workflows
get_account_credits0 cr

Inspect live credit balance, active plan concurrency cap (3 or 6 jobs), and tier catalog before batching.

generate_3d_from_text12 / 16 / 20 cr

Queue a Text-to-3D PBR mesh job with optional idempotencyKey to prevent duplicate charges on retries.

generate_3d_from_image12 / 16 / 20 cr

Queue an Image-to-3D job from an HTTPS imageUrl or imageBase64 + mimeType.

get_3d_task0 cr

Poll every 5–10s until status === "success"; returns permanent .glb URL (or 100% auto-refund on failure).

list_3d_tasks0 cr

Paginate previously generated 3D assets in your private Studio library.

Example Prompt to Give Claude Code or Cursor

Once connected, prompt your coding agent naturally:

Check my TripoSR Studio credit balance first. Then generate 2 Ultra (2K PBR) 3D props in parallel with idempotency keys:
1) "Weathered cobblestone wishing well with timber shingle roof, stylized game prop"
2) "Oak and forged-iron medieval treasure chest, stylized PBR game prop"
Poll get_3d_task until both succeed, download the .glb files into public/models/, and render them in a Three.js OrbitControls preview component.

Every MCP-generated asset also appears automatically in My Creations, where you can convert any .glb to a 100mm binary .stl or .obj for 0 extra credits. Read the full endpoint reference on /mcp or inspect live service metadata via GET https://studio.triposrai.com/api/mcp.