Skip to main content

MCP (Model Control Protocol) integration for Trellis

Project description

Trellis MCP Server

Trellis MCP provides an interface between AI assistants and Trellis via Model Context Protocol (MCP).

Disclaimer

This project shows a very minimal integration of MCP with Trellis: a lightweight and opensource text-to-3d/image-to-3d 3DAIGC model. Compared with existing rodin integration in blender-mcp and tripo integration, it has following advantages:

  • Faster and memory-efficient: You can deploy TRELLIS locally with only 8GPU+ VRAM, while can generate a textured mesh from text in only ~15s(10s with more vram).
  • FREE: You DON'T have to pay expensive API from Rodin/Meshy/Tripo.

BUT IT HAS FOLLOWING LIMITATIONS:

  • Trellis is open-source and there is no off-the-shelf API model providers, you have to deploy it by yourself (refer to README).
  • The API/Prompt has NOT been fully tested/tuned, may suffer from stability issues.

So use it at your own risk.

Demo

A minimal demo for generating a single object, more complicated prompt with blender-mcp is under tuning.

Demo

Features

  • Generate 3D asset from natural language(TEXT) using Trellis API and import into blender
  • Generate texture/materials from natural language(TEXT) for a given 3D mesh using Trellis API and import into blender

Roadmap

Prerequisites

Installation

1. Trellis blender addon

  1. Download Trellis Blender Addon from here
  2. Open Blender -> Edit -> Preferences -> Add-ons -> Install from file -> Select the downloaded addon -> Install
  3. In 3D Viewport -> View3D > Sidebar > TRELLIS -> Start MCP Server

2. Configure API backend

As trellis is a free open-source text-to-3d model, you need to deploy your own trellis API backend with reference to README

# clone an API fork of trellis 
git clone https://github.com/FishWoWater/TRELLIS
cd TRELLIS

# EDIT BACKEND URL in trellis_api/config.py

# configure the # of text workers and start ai worker
python trellis_api/ai_worker.py --text-workers-per-gpu 1 --image-workers-per-gpu 0

# start web server 
python trellis_api/web_server.py 

3. Configure the MCP server on Windsurf/Cursor/Claude

{
    "mcpServers": {
        "trellis-blender": {
            "command": "uvx",
            "args": [
                "trellis-mcp"
            ]
        }
    }
}

Acknowledgements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trellis_mcp-0.1.2.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trellis_mcp-0.1.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file trellis_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: trellis_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for trellis_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d64dc7370f3e02a9ac683dfd9b8bf2f3cba5bc0e052d7697b4a54712ff861f95
MD5 23c48c7671842703a999c3252329fc91
BLAKE2b-256 55d6c64771dbef0005af493ac3ba5be4d0080b0ad386a603c96902cec7d36095

See more details on using hashes here.

File details

Details for the file trellis_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for trellis_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6361921b256194bc297640a90daadb4a3f12163aba0c20d9c8e212851751cb5d
MD5 b09866c07f84a1931ccdd60a11b8360e
BLAKE2b-256 60923972054fc63d5182fbb8a6ee5053811e7c54fb5b8315ccb74eddfa1eeb3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page