Skip to main content
Glama

tripo-hybrid-mcp

CI Python 3.11+ API: stdlib / Studio: optional SDK License: MIT

Version 1.3.0 is an API-first local MCP server with 60 tools: 28 OpenAPI tools, 28 explicit Studio wrappers, a free asset-transfer bridge, routing metadata, an offline cost planner and a local GLB inspector. API operations use API credits; Studio-only operations use the separately authenticated Studio subscription. Failed API requests never fall back to Studio.

The API-only runtime uses Python 3.11+ standard library and exposes 31 tools with --api-only. Hybrid operation additionally requires the optional studio extra. This is functional integration, not a claim that Studio and API use identical models or produce equivalent quality.

Independent, unofficial project; not affiliated with, endorsed by or maintained by VAST or Tripo. Bring your own Tripo API key and, for Studio tools, authorize your own Studio account through OAuth. No credentials or credits are included.

The repository is named tripo-hybrid-mcp; the Python distribution and executable remain tripo-studio-mcp for compatibility.

Local inspection added in 1.3.0

tripo_inspect_model reads an existing local GLB and optionally compares it with another GLB. It uses no API credits, Studio credits, authentication, network, Blender or extra Python dependencies. It reports accessor-declared geometry counts, UV attributes, embedded PNG/JPEG texture dimensions, PBR texture-map presence, skins/joints and animation metadata. It never changes the files.

{
  "file_path": "/absolute/path/upscaled.glb",
  "compare_to_file_path": "/absolute/path/before-upscale.glb"
}

The comparison describes aggregate changes, including lost metallic/roughness maps; it does not match materials semantically or score visual quality. Counts describe glTF mesh primitives, not a deduplicated or fully decoded scene. Compression, unknown texture formats and incomplete metadata are disclosed. This is not a manifoldness validator, UV-overlap check, deformation test or replacement for Blender inspection. Only GLB inputs are supported; external resources are never fetched.

The cost planner accepts inspection steps as zero-credit operations without opening or requiring the files. --api-only includes this tool. Model/texture identifiers and paid API/Studio routes remain unchanged.

Related MCP server: Tripo Studio MCP

Hybrid 1.3.0 setup and billing

After installing the hybrid studio extra using the installation instructions, sign in with the installed executable:

tripo-studio-mcp --studio-login
tripo-studio-mcp --studio-status
tripo-studio-mcp --list-tools
# API-only, no Studio dependencies or OAuth required:
tripo-studio-mcp --api-only --list-tools

For uvx, run the same login command with the pinned hybrid package:

uvx --from 'tripo-studio-mcp[studio] @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0' tripo-studio-mcp --studio-login

Studio login opens the browser with OAuth client ID studio-codex; no custom OAuth application is needed. Credentials are independent of the host application's managed OAuth connection. macOS stores them in Keychain (tripo-api-studio-oauth); other platforms use a mode-0600 file in the Studio state directory. Ordinary calls never start interactive login. --studio-status checks local credential presence only, while login verifies a free remote tool listing.

  • OpenAPI generation, textures, remesh, UV, segmentation, completion, rigging, preset animation and conversion retain the API route and API wallet.

  • Studio adds dedicated PBR, image/texture upscale, text-to-motion, custom-motion retarget, image split, asset/task/export administration and explicit import/export.

  • Custom motion retarget accepts only motion_source="user_generated" and the UUID from a successful Studio motion task's motion_id. The source must be an already rigged owned Studio model. Its result is a standalone animation clip, not a baked animated model export. Presets remain on API tripo_animate.

  • tripo_transfer_to_studio previews by default. With approved_write=true, it uploads an existing local file or a selected successful API task output. Model import requires a stable idempotency_key; image upload returns a resource key. API task IDs and Studio asset IDs are never interchangeable. Recovery records avoid signed URLs and avoid blind re-upload after uncertain outcomes.

  • All 21 paid tools default to dry-run. API execution requires approval and a max_credits covering the local tariff estimate. Studio prices are references, not live quotes: PBR 5, image upscale 10/image, detailed texture upscale 10 and custom retarget 10/task. Motion has a 20-credit reference with no specified billing unit; 8K texture cost/plan eligibility is uncertain. These unknown totals require separate explicit accept_unknown_cost=true and cannot accept a purported hard max_credits cap.

  • Studio's seven non-credit mutations require approved_write=true; export may consume plan quota. Read operations are free. A monthly allowance is not proof of remaining balance; the Studio MCP does not expose balance or actual billing totals.

  • tripo_estimate_cost accepts mixed workflows but returns separate totals_by_billing_source. budget_credits is API-only; studio_budget_credits compares Studio references. No combined credit total or Studio-to-USD conversion is produced. Every plan is offline, including Studio reads.

Studio schema/pricing snapshot: 2026-12-01, official tool repository. The SDK is pinned at 2.3.0. OAuth refresh happens during free initialization; task calls freeze authorization and disable retry and HTTP redirect replay. Failed/uncertain writes must be recovered explicitly before another submission.

Optional environment controls: TRIPO_STUDIO_ENABLED=0 disables Studio; TRIPO_STUDIO_STATE_DIR overrides its state directory; TRIPO_STUDIO_TIMEOUT_S defaults to 120; TRIPO_STUDIO_LOGIN_TIMEOUT_S defaults to 300. The remote endpoint and OAuth client ID are fixed to the official Studio service and studio-codex.


Architecture

src/tripo_studio_mcp/
├── __init__.py     # Package version (1.3.0)
├── __main__.py     # CLI (--version, --list-tools, --region, --output-dir) & stdio entrypoint
├── app.py          # Dependency wiring (config, client, job store, tool registry, MCP server)
├── protocol.py     # Spec-compliant MCP JSON-RPC 2.0 over stdio (NDJSON) + error redaction
├── config.py       # Region URLs (ov/cn), TRIPO_BASE_URL validation, env & macOS Keychain auth
├── security.py     # SSRF HTTPS+DNS validation, NoRedirectHandler, atomic downloads, redaction
├── pricing.py      # Dated official tariffs, USD conversion and spending guards
├── costing.py      # Offline multi-step cost planner
├── validators.py   # Strict wire-model aliases, face limits, multiview, 2D, mesh & rig rules
├── client.py       # Stdlib HTTP client: Bearer auth, presigned PUT (no auth), read-only 429 retry
├── job_store.py    # Atomic local JSON history (0600) with redacted payloads
├── tools.py        # 28 base tools (12 free + 16 paid dry-run-by-default)
├── hybrid.py       # Explicit API/Studio route metadata; no provider fallback
├── glb_inspection.py   # Read-only GLB metadata parser, no external resources
├── inspection_tools.py # Free local inspection/comparison MCP tool
├── studio_auth.py      # Studio OAuth and secure credential persistence
├── studio_client.py    # Optional official MCP SDK transport
├── studio_tools.py     # 28 explicit Studio wrappers with spending/write guards
├── studio_pricing.py   # Dated Studio pricing references and unknown-cost handling
├── studio_transfer.py  # Preview-first local/API output transfer into Studio
└── data/               # Bundled public Studio tool schema snapshot

Security & Spending Guarantees

  1. Dry-Run by Default on All 16 Paid API Tools (approved_spend=false): Every paid tool validates all parameters locally and returns { dry_run: true, endpoint, payload, pricing, hint } with zero network calls and zero file uploads.

  2. Local Credit Limits (max_credits): Paid submission requires approved_spend=true and a finite limit covering the estimated upper bound. Unknown API upper bounds fail closed. Studio exceptions require the separate explicit unknown-cost consent described above. This checks a dated tariff snapshot; it is not a server-enforced budget or live quote.

  3. Zero Auto-Retry on Paid or Mutating Endpoints: HTTP 429 rate-limit retries (respecting Retry-After and X-RateLimit-Reset) run only on idempotent read endpoints (GET /v3/account/balance, GET /v3/account/usage, GET /v3/tasks/{task_id}, POST /v3/tasks/list). Paid/mutating POST/PUT requests never auto-retry.

  4. No Auth Forwarding on Redirects or Presigned Uploads: All authenticated OpenAPI requests use NoRedirectHandler (blocking any 3xx response). Presigned model uploads (POST /v3/files/presign + PUT) validate the target URL and never send an Authorization header.

  5. SSRF-Hardened URLs & Atomic Downloads: validate_https_url enforces https://, port 443 only, no userinfo (@), DNS resolution via socket.getaddrinfo, and blocks all non-global IPs (loopback, private, link-local, 169.254.169.254, IPv4-mapped IPv6, multicast, reserved, unspecified). download_https_file validates every redirect hop (max 3), enforces max_bytes, writes atomically via .tmp + os.replace, and sanitizes filenames with safe_filename_stem.

  6. Secret Hygiene: API keys are never accepted in tool arguments, never logged, and are redacted from errors and local job history. On macOS, TRIPO_KEYCHAIN_ONLY=1 enforces Keychain-only credentials (ignoring TRIPO_API_KEY).


Quick Installation

Option 1: Run directly with uvx (recommended, zero manual venv setup)

Hybrid installation, including the optional Studio dependencies:

uvx --from 'tripo-studio-mcp[studio] @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0' tripo-studio-mcp --list-tools

For the standard-library API-only runtime, omit the extra and pass --api-only:

uvx --from 'tripo-studio-mcp @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0' tripo-studio-mcp --api-only --list-tools

The --from requirement includes the distribution name and extra, while the executable name stays tripo-studio-mcp. See the uv tool documentation for extras and Git sources. All examples here pin the v1.3.0 release.

Option 2: Install globally or into an existing Python >= 3.11 environment with pip

python3 -m pip install 'tripo-studio-mcp[studio] @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0'
tripo-studio-mcp --version

For API-only installation, use tripo-studio-mcp @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0 instead, then launch with --api-only.

Option 3: Clone and install in a local .venv

git clone --branch v1.3.0 --depth 1 https://github.com/BipoXDXD/tripo-hybrid-mcp.git
cd tripo-hybrid-mcp
python3 -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
python -m pip install -e '.[studio]'
tripo-studio-mcp --list-tools

For API-only development, install with python -m pip install -e . and launch with --api-only. A base installation does not include the Studio SDK; the normal hybrid examples require [studio].


security add-generic-password -a "$USER" -s "tripo-api-key" -w "<YOUR_TRIPO_API_KEY>" -U

On Linux/Windows (or CI), provide TRIPO_API_KEY through the client's process environment or private secret settings. Do not commit the key. GUI clients may not inherit variables exported in a terminal; see the client-specific environment instructions.


MCP Client Configuration

Claude Code, Codex, Cursor and Antigravity can launch the server as a local stdio MCP process. Use the separate instructions below and the complete client guide, including credentials, Windows paths and troubleshooting. The examples contain no API keys and pin the hybrid package with [studio] at v1.3.0.

Before configuring a client, run the hybrid uvx --from ... --list-tools command in Quick Installation once to populate the package cache. Complete the explicit --studio-login command above before using Studio tools. Package downloads can otherwise delay a client's first connection; ordinary MCP startup never opens a login browser.

The templates cover configuration and stdio protocol compatibility; they are not evidence of a native end-to-end test in each client. For API-only clients, remove [studio] from the package requirement and append --api-only to the server arguments.

Claude Code

Register a user-scoped stdio server; this macOS example uses the existing Keychain service:

claude mcp add --transport stdio --scope user tripo-hybrid -- uvx --from 'tripo-studio-mcp[studio] @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0' tripo-studio-mcp

For a project configuration, merge the Claude Code JSON template into .mcp.json at the project root. Reload and check /mcp. See the Claude Code instructions for environment-variable handling.

OpenAI Codex

Register the stdio command with the CLI:

codex mcp add tripo-hybrid \
  -- uvx --from 'tripo-studio-mcp[studio] @ git+https://github.com/BipoXDXD/tripo-hybrid-mcp.git@v1.3.0' tripo-studio-mcp

Merge the Codex TOML template into ~/.codex/config.toml. Its env_vars = ["TRIPO_API_KEY"] forwards an existing process variable without storing its value. Check codex mcp list or /mcp; see the Codex instructions.

Cursor

Merge the Cursor JSON template into project .cursor/mcp.json or global ~/.cursor/mcp.json. Reload the server in Cursor's MCP settings and check its status. Cursor's environment interpolation differs from Claude Code's; follow the Cursor instructions.

Antigravity

Open MCP Servers → Manage MCP Servers → View raw config, then merge the Antigravity JSON template. Current documented paths are global ~/.gemini/config/mcp_config.json and workspace .agents/mcp_config.json; use the path shown by your installed app. Configure the local command/args entry and reload. See the Antigravity instructions.

With a pip or virtual-environment installation, set command to the installed tripo-studio-mcp executable and remove the uvx-specific --from, package requirement and executable-name arguments. Preserve any server flags such as --api-only or --output-dir.


API-only Catalog (31 tools)

Free Tools (15)

Tool

Endpoint / Behavior

Purpose

tripo_inspect_model

Local offline

Inspect a local GLB and optionally compare aggregate geometry, texture, PBR, rig and animation metadata; zero credits.

tripo_hybrid_routes

Local offline

Inspect explicit API/Studio routes and separate billing sources without querying either account.

tripo_plan

Local offline

Inspect supported models, upload limits, pricing tables, and estimate credits locally.

tripo_estimate_cost

Local offline

Validate and total 1–32 operations in credits and USD; optionally compare a budget.

tripo_balance

GET /v3/account/balance

Query current account credit balance (auto-retries 429).

tripo_usage

GET /v3/account/usage

Query account usage history (auto-retries 429).

tripo_upload_image

POST /v3/files

Upload PNG/JPG/WEBP image (<= 20 MB) via multipart form-data.

tripo_upload_model

POST /v3/files or /v3/files/presign + PUT

Upload 3D model (<= 60 MB direct; .gltf or 60–150 MB via unauthenticated presigned PUT).

tripo_import_model

POST /v3/models/import

Import a 3D model (file_token, HTTPS url, or local file_path).

tripo_task_status

GET /v3/tasks/{task_id}

Fetch task status (step=true passes ?step=1; auto-retries 429).

tripo_task_wait

Polls GET /v3/tasks/{task_id}

Wait until terminal status (success/failed/cancelled/banned/expired) or timeout.

tripo_task_list

POST /v3/tasks/list

Batch-query up to 100 task IDs (auto-retries 429).

tripo_recent_jobs

Local offline

List locally tracked task submissions, statuses, and downloaded files.

tripo_rig_check

POST /v3/animations/rig-check

Check whether a 3D model is eligible for rigging (free).

tripo_download

SSRF-validated HTTPS GET

Download finished task outputs or a public HTTPS URL atomically.

Paid Tools (16 — All Dry-Run by Default with approved_spend=false)

Tool

Endpoint

Notes / Pricing

tripo_text_to_3d

POST /v3/generation/text-to-model

Default v3.1-20260211 (known pricing); supports P2, P1, v3.0; retired v2.5 is rejected.

tripo_image_to_3d

POST /v3/generation/image-to-model

Single image to 3D; dated model/tier pricing.

tripo_multiview_to_3d

POST /v3/generation/multiview-to-model

2–4 views (front required) or [{ task_id }]; dated model/tier pricing.

tripo_image_to_splat

POST /v3/generation/image-to-splat

Image to 3D Gaussian Splat (model_seed optional); 30 credits.

tripo_generate_image

POST /v3/generation/text-to-image / image-to-image

Routes automatically: text-to-image (default seedream_v4) or image-to-image (default seedream_v5, rejects seedream_v4).

tripo_image_to_multiview

POST /v3/generation/image-to-multiview

Generate a 4-view turnaround sheet from one image.

tripo_edit_multiview

POST /v3/generation/edit-multiview

Edit 1–4 specific views (front/left/back/right).

tripo_texture

POST /v3/models/texture

Texture generation/retexturing (v3.5-20260815, v3.0 compatibility alias); delight, PBR and reference guidance.

tripo_convert

POST /v3/models/convert

Export to GLTF, USDZ, FBX, OBJ, STL, or 3MF (fbx_preset, flatten_bottom, etc.).

tripo_decimate

POST /v3/mesh/decimate

Mesh decimation (v3.0, v2.0, v1.0; smart_uv only on v3.0).

tripo_smart_uv

POST /v3/mesh/uv

Automatic clean UV unwrapping.

tripo_segment

POST /v3/mesh/segment

Semantic mesh segmentation (v2.0-20260430; retired v1.0 is rejected).

tripo_mesh_complete

POST /v3/mesh/complete

Complete segmented parts from a segmentation task_id (ai_completion | quick_cap).

tripo_smart_segment

POST /v3/mesh/smartsegment

Smart segment model (requires 16-float transform) or image (file token, URL or task ID; optional part hint).

tripo_rig

POST /v3/animations/rig

Auto-rigging (v3.0-20260909, v2.5-20260210, v1.0-20240301; glb/fbx).

tripo_animate

POST /v3/animations/retarget

Retarget 1–5 animations onto a rig task_id.


Quality controls and offline cost planning (1.1)

The adapter exposes documented V3 quality controls rather than inventing Studio-only API routes. Generation supports texture_version and delight; image-to-model also supports enable_image_autofix. Texture guidance supports text with a style image, a single reference, or front-led multiview references. Rig conventions include Mixamo, Tripo, ActorCore, Unity, Unreal and VRM. Consult --list-tools for the exact schemas and compatibility constraints.

Image generation exposes the documented Chat Image quality tiers, including high, xhigh and max where supported. The legacy resolution argument is normalized to the API's size field, so the estimator prices the submitted size. Image editing supports the documented templates (t_pose, character_completion, 3d_enhance, variants, figure); legacy t_pose=true selects that template.

delight removes baked lighting before texturing. An explicit value wins. In the texture tool, omitting both model and delight preserves the API's implicit delight=false behavior; explicitly selecting v3.5 without delight uses its documented true default. Set the boolean explicitly for reproducible intent. The tariff does not publish a separate delight surcharge; estimates use the documented texture tier, without claiming a server-confirmed quote.

tripo_estimate_cost accepts the same parameters as each paid tool, excluding approved_spend and max_credits. It validates the parameters, returns each dry-run payload and totals the costs. It never executes a pipeline. For example:

{
  "steps": [
    {"tool": "tripo_image_to_3d", "arguments": {
      "input": {"file_token": "example-image-token"},
      "texture": false, "pbr": false, "geometry_quality": "detailed"
    }},
    {"tool": "tripo_decimate", "arguments": {
      "input": {"task_id": "future-geometry-task"},
      "face_limit": 8000, "quad": true, "smart_uv": true
    }},
    {"tool": "tripo_texture", "arguments": {
      "input": {"task_id": "future-retopology-task"},
      "texture_quality": "extreme", "delight": true, "pbr": true
    }}
  ],
  "budget_credits": 110
}

The task identifiers above are planning placeholders. The planner does not inspect source assets or prove that a downstream operation accepts a particular result. DNS lookup is deferred in dry runs; approved execution validates URLs again.

Prices are a local snapshot verified on 2026-12-01 against the official tariff and endpoint documents. The billing documentation defines 1 credit = USD 0.01. Fixed totals, documented ranges and unknown prices are reported separately, with sources and assumptions. Pricing can change; neither the estimator nor max_credits creates a remote billing guarantee.

There are no documented V3 endpoints in this implementation for Studio text-to-motion, standalone texture upscale preserving existing texture, or Studio asset-library operations. tripo_texture regenerates textures; it is not an equivalent upscale. bake_animation on retarget is deprecated and ignored by the API, even if supplied.

Environment Variables

Variable

Default

Description

TRIPO_API_KEY

(unset)

Tripo V3 OpenAPI key (ignored when TRIPO_KEYCHAIN_ONLY=1).

TRIPO_KEYCHAIN_SERVICE

tripo-api-key

macOS Keychain generic password service name.

TRIPO_KEYCHAIN_ACCOUNT

(unset)

Optional macOS Keychain account name filter (-a).

TRIPO_KEYCHAIN_ONLY

0

Set to 1/true to ignore TRIPO_API_KEY and read only from macOS Keychain.

TRIPO_REGION

ov

ov (https://openapi.tripo3d.ai) or cn (https://openapi.tripo3d.com).

TRIPO_BASE_URL

(unset)

Optional custom HTTPS base URL (strictly validated with validate_https_url).

TRIPO_OUTPUT_DIR

./tripo_outputs

Default directory for downloaded assets.

TRIPO_STATE_DIR

~/.local/share/tripo-studio-mcp

Directory for local job history (jobs.json, 0600).

TRIPO_TIMEOUT_S

60

Per-request HTTP timeout in seconds.

TRIPO_POLL_INTERVAL_S

3

Default polling interval for tripo_task_wait.

TRIPO_POLL_TIMEOUT_S

600

Default max wait time for tripo_task_wait.

TRIPO_MAX_DOWNLOAD_MB

512

Max file size allowed per tripo_download call.


Development & Testing

Install the optional Studio dependencies before running the complete test suite, including its SDK, HTTP transport and schema-validation tests:

python3 -m pip install '.[studio]'
PYTHONPATH=src python3 -W error -m unittest discover -s tests -v
PYTHONPATH=src python3 -m tripo_studio_mcp --version
PYTHONPATH=src python3 -m tripo_studio_mcp --list-tools

The release includes 188 offline unit tests. The API-only runtime uses the standard library, but the complete test suite requires the studio extra. See VALIDATION.md for the validation scope and remaining live-test limitations. Unit-test coverage does not establish identical API/Studio output quality or replace remote service checks.

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables interaction with Tripo Studio for 3D model generation, management, and post-processing through natural language, with safety features to prevent duplicate charges.
      4
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables people and general-purpose AI agents to inspect, model, edit, verify, and export local 3D projects through MCP tools, including print preparation, without requiring a hosted 3D service key.
      10
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants and agents to natively generate images, videos, 3D meshes, Gaussian splats, and speech, and to manage media assets, through natural language commands or automated scripts over the Model Context Protocol. It exposes 55 tools alongside a Python CLI automation suite for batch generation, camera-orbit passes, credit/cost estimation, and companion API bridge integration.
      56
      Apache 2.0