treegen
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@treegenGenerate a pine tree with seed 7 and export as OBJ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
treegen
Stylized low-poly tree generator. Deterministic — the same seed always produces the same tree — and game-ready: exports GLB or OBJ with sane triangle counts.

Three ways to use it:
Surface | Entry point |
Browser app |
|
MCP server (stdio) |
|
Library |
|
It is also hosted as a remote MCP server at
https://mcp.andreglegg.no/treegen, so no install is needed:
claude mcp add --transport http treegen https://mcp.andreglegg.no/treegenLibrary use
The generator is DOM-free and runs in Node or the browser. Only three is a
runtime dependency — everything else here is dev-only.
npm install github:andreglegg/treegenimport { buildTree, meshStats, presets } from 'treegen/generator';
import { exportGlb } from 'treegen/export';
const tree = buildTree({ ...presets.oak, seed: 42, detail: 1 });
console.log(meshStats(tree)); // { meshes, triangles }
const glb = await exportGlb(tree); // ArrayBuffer — works in Node and browserexportGlb shims FileReader when it is missing, so the same code path works
in Node and in the browser.
Related MCP server: instant-meshes-mcp
Parameters
Six presets (meadow, orchard, pine, oak, acacia, willow) and five
species silhouettes (round, oak, acacia, willow, pine). Everything is
bounded — see paramShape in mcp/server.js for ranges.
detail drives the triangle budget, at the generator's default foliage density:
detail | triangles | intent |
0 | ~1k | low-poly |
1 | ~3k | game-ready |
2 | ~7k | hero |
leafDensity moves those numbers a lot — each foliage cluster is its own mesh,
so the oak preset (density 46) roughly doubles the detail-1 count. Read
meshStats() rather than assuming.
Consumers
mcp/generator.js and mcp/export.js are the shared core. Anything that
depends on them should pull this repo as a git dependency rather than copying
the files — the copies drift.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server for managing and publishing 3D files using S3-compatible storage providers like Cloudflare R2 and AWS S3. It enables users to upload models, generate interactive 3D viewers, and manage temporary access via presigned URLs.Last updated
- Flicense-qualityDmaintenanceAn MCP server for 3D model processing that provides automated retopology, decimation, and quality analysis for OBJ and GLB files. It integrates Instant Meshes, pymeshlab, and Blender 3.6 to support smart simplification, texture preservation, and structured model archiving.Last updated2
- AlicenseBqualityBmaintenanceAI 3D model generation and post-processing MCP server — text/image/multiview-to-3D via Tripo, retopology, format conversion (GLB/FBX/OBJ/STL/USDZ), and stylization. Single Go binary, 10 tools.Last updated296Apache 2.0
- Alicense-qualityCmaintenanceMCP server for Spline.design code generation and asset management.Last updated4BSD 3-Clause
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for Wan AI video generation
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andreglegg/treegen'
If you have feedback or need assistance with the MCP directory API, please join our Discord server