3D AI Agent Avatar

v1.2.3
io.github.nirholas/3D-AI-Agent-Avatar Checked 5 hours ago Published 1 month ago

3D AI Agent Avatar — render any GLB, give it a Solana wallet, a voice, and pump.fun powers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

inspect_glb Inspect a GLB / glTF 3D model

Fetch any GLB URL (or data: URL) and return a full structural breakdown: meshes, primitives, materials, textures, animations, skins, vertex + triangle counts, world-space bounding box, and file size. Pure local parse via @gltf-transform/core — no third-party services.

ParameterTypeDescription
url *stringPublic URL or data: URL of a .glb file.

validate_glb Validate a GLB / glTF against the Khronos spec

Run the official Khronos gltf-validator against a GLB URL. Returns errors, warnings, infos, and hints with codes + JSON pointers, plus structural counts (animations, materials, etc.) per the validator's info report. The same engine that powers gltf.report.

ParameterTypeDescription
url *stringPublic URL or data: URL of a .glb / .gltf file to validate.
maxIssuesintegerCap on issues returned in each bucket (default 100). Validator may still scan all of them.

optimize_glb Optimize a GLB (dedup, prune, weld, Draco)

Run a @gltf-transform/functions optimization pipeline on a GLB URL: dedup → prune unused → weld duplicate vertices → optional Draco mesh compression. Returns the optimized bytes as a base64 data URL with before/after sizes. Lossless for geometry except where Draco quantization is requested.

ParameterTypeDescription
url *stringSource GLB URL (or data: URL).
dedupbooleanMerge equivalent accessors / materials / textures. Default true.
dracobooleanApply Draco mesh compression (lossy quantization). Default false.
dracoQuantizePositionintegerPosition bits for Draco (default 14 = high fidelity).
prunebooleanRemove unused materials / nodes / meshes. Default true.
returnInlinebooleanReturn the optimized GLB inline as a base64 data URL (default true). Set false to return only stats.
weldbooleanMerge duplicate vertices. Default true.

thumbnail_glb Render a GLB to a PNG thumbnail

Render any public GLB URL to a PNG via three.ws's hosted three-light rig + auto-framing camera. Returns the PNG inline as a base64 data URL (≤ ~4 MB) plus dimensions. Background defaults to #0a0a0a — pass "transparent" for compositing.

ParameterTypeDescription
glbUrl *stringPublic http(s) URL of a .glb file.
backgroundstringCSS color (e.g. "#0a0a0a") or "transparent". Default "#0a0a0a".
heightintegerOutput height in pixels (default 1024).
widthintegerOutput width in pixels (default 1024).

viewer_url Build a three.ws viewer URL + embed snippet

Build a shareable https://three.ws/viewer?... URL that opens any GLB in three.ws's WebGL viewer, plus a ready-to-paste iframe snippet. Supports background, auto-rotate, camera preset OR explicit camera orbit, AR mode (model-viewer), dimensions, pose, and accessory overlay. Accepts a raw glbUrl or a sessionId from spawn_avatar.

ParameterTypeDescription
accessoryIdsarrayAccessory ids to attach in the viewer.
arbooleanEnable model-viewer AR buttons on iOS/Android.
autoRotatebooleanAuto-rotate the model. Default true on the web viewer.
backgroundstringBackground color or gradient (CSS), e.g. "#0a0a0a", "linear-gradient(...)", or "transparent".
cameraAngleDegnumberYaw in degrees shorthand. Used when cameraOrbit is absent.
cameraDistancenumberDistance multiplier shorthand (1.0 = default). Used when cameraOrbit is absent.
cameraOrbitstringExplicit camera orbit in model-viewer syntax, e.g. "0deg 80deg 2m". Overrides cameraPreset.
cameraPresetstringNamed camera framing preset.
glbUrlstringDirect GLB URL. Required if sessionId is omitted.
heightintegerViewer height in pixels.
posestringPose preset id (e.g. "wave", "tpose"). Call list_animations for the catalog.
sessionIdstringAvatar sessionId returned by spawn_avatar. Overrides glbUrl.
thumbnailUrlstringOptional thumbnail to show in the iframe before the GLB loads.
widthintegerViewer width in pixels (for the iframe snippet).

list_avatars List three.ws default avatars + accessories

Return the catalog of default 3D avatars (default, cz) and accessories (hats, glasses, earrings) hosted on the three.ws CDN. Each entry includes a public GLB URL ready to load in any glTF viewer or Three.js scene. Includes the supported pose preset names.

list_animations List three.ws pose presets + animation slots

Return the three.ws pose preset catalog (T-pose, A-pose, wave, thinker, jump, dance, warrior2, …) grouped by category. Use the ids returned here as posePresetId in render_avatar. Fetched live from three.ws so the catalog reflects the deployed version.

spawn_avatar Spawn a 3D avatar session

Spawn a 3D avatar from a curated default (preset="default" or "cz") or from a custom GLB URL. Returns a sessionId other tools (dress_avatar, viewer_url, speak) reference, plus the avatar GLB URL and a ready-to-open three.ws viewer link.

ParameterTypeDescription
glbUrlstringCustom GLB URL — overrides preset.
namestringDisplay name for the avatar persona.
personastringShort persona/personality blurb (used by callers; not enforced server-side).
presetstringPick a curated default avatar.
voicestringOpenAI TTS voice the speak tool should use for this session.

dress_avatar Apply accessories + pose to a spawned avatar

Apply (or replace) accessories on a spawned avatar session and optionally set a pose. Pass accessoryIds to set the full accessory list (empty array clears them). Pass pose to switch animations. Returns the updated viewer URL.

ParameterTypeDescription
sessionId *stringSession id returned by spawn_avatar.
accessoryIdsarrayFull list of accessory ids to wear. Allowed: hat-baseball, hat-beanie, hat-cowboy, glasses-round, glasses-shades, earrings-hoops, earrings-studs. Empty array clears.
posestringPose preset. Allowed: idle, wave, thumbs_up, dab, t_pose, sit, point, salute, cheer.

render_avatar Render a posed avatar (pose + camera + expression)

Render an avatar GLB with a three.ws pose preset, camera orbit, and optional ARKit-52 facial expression. Same pipeline as the three.ws customizer's save-snapshot flow. Returns PNG bytes as a base64 data URL. Accepts either glbUrl directly or sessionId from spawn_avatar.

ParameterTypeDescription
backgroundstringCSS color or "transparent". Default "#0a0a0a".
cameraOrbitobjectCamera orbit around the avatar.
expressionobjectARKit-52 morph target map, e.g. { mouthSmileLeft: 0.6, mouthSmileRight: 0.6 }.
glbUrlstringAvatar GLB URL. Required if sessionId is omitted.
heightintegerOutput height (default 1024).
posePresetIdstringPose preset id (e.g. "tpose", "wave", "thinker"). Call list_animations for the full catalog.
sessionIdstringAvatar session id from spawn_avatar. Overrides glbUrl.
widthintegerOutput width (default 1024).

generate_avatar Generate a 3D avatar (Replicate text-to-3D)

Generate a textured GLB from a text prompt or reference image URLs via Replicate (Hunyuan-3D 3.1 by default; configurable). Returns the GLB URL and a new avatar session you can dress + animate. Requires REPLICATE_API_TOKEN and REPLICATE_TEXT_TO_AVATAR_MODEL on the MCP server.

ParameterTypeDescription
imagesarrayReference image URLs for image-to-3D.
namestringName for the resulting avatar session.
promptstringText description of the avatar to generate.
seedinteger
texturebooleanRequest PBR textures when supported (default true).
voicestringTTS voice the session should use.

speak Avatar speaks (TTS)

Synthesize speech for an avatar session and return a base64 audio data URL the client can play. Free NVIDIA NIM Magpie TTS leads when NVIDIA_API_KEY is set (non-pcm requests are served as WAV); OpenAI TTS is the paid backstop when OPENAI_API_KEY is set. Picks the session's configured voice unless overridden.

ParameterTypeDescription
text *stringText the avatar should say.
formatstringAudio format (default mp3; the free NVIDIA lane serves every non-pcm request as wav).
languagestringBCP-47 language for the free NVIDIA lane (en-US default; also es-US, fr-FR, de-DE, zh-CN, vi-VN, it-IT, hi-IN, ja-JP).
modelstringOpenAI TTS model used on the paid backstop lane (default gpt-4o-mini-tts). The free NVIDIA lane always serves magpie-tts-multilingual.
sessionIdstringAvatar session id (optional — when omitted, voice falls back to the override or "nova").
speednumberPlayback speed multiplier (OpenAI lane only).
voicestringOverride the session voice for this call.

wallet_create Create a Solana wallet (optionally vanity-grinded)

Generate a Solana keypair locally. Optionally grind for a base58 prefix/suffix (e.g. "three") and/or attach it to an avatar session. Returns the base58 pubkey and secret ONCE — store the secret yourself; the MCP does not persist it.

ParameterTypeDescription
caseSensitivebooleanMatch case-sensitively (default true). Base58 has no 0OIl so set false to be permissive.
maxAttemptsintegerCap on grind attempts (default 500_000). Bump for longer prefixes.
sessionIdstringIf set, the wallet is attached to this avatar session.
vanityPrefixstringBase58 prefix to grind for (e.g. "three"). Up to 8 chars.
vanitySuffixstringBase58 suffix to grind for. Up to 8 chars.

wallet_balance Read Solana wallet balances (SOL + SPL tokens)

Return SOL balance and all SPL token balances (including Token-2022) for a Solana pubkey. Uses the configured SOLANA_RPC_URL. Read-only — no signer required.

ParameterTypeDescription
pubkey *stringBase58 Solana pubkey to read.
includeTokensbooleanInclude SPL token accounts (default true).

wallet_send Send SOL on Solana mainnet

Send SOL from the configured signer to a destination pubkey. The signer is supplied via the `secret` arg (base58) or via SOLANA_SECRET_KEY env on the MCP server. Returns the confirmed signature and a Solscan link. EXECUTION ACTION — funds move on mainnet, irreversible: pass confirm:true. Capped by MAX_SOL_PER_TX; destination must be in RECIPIENT_ALLOWLIST if one is configured.

ParameterTypeDescription
sol *numberAmount of SOL to send.
to *stringDestination Solana pubkey.
confirmbooleanMust be true to execute this irreversible send (when REQUIRE_CONFIRM is on).
priorityMicroLamportsintegerCompute-unit price (default 100000).
secretstringBase58 secret of the sender. Falls back to SOLANA_SECRET_KEY env.

pump_snapshot Live pump.fun / Solana token snapshot

Live snapshot for a Solana token (SPL or pump.fun): USD price (Jupiter), 24h volume + primary DEX (Dexscreener), pump.fun metadata (name/symbol/image/socials/mcap), and top-holder distribution from Solana RPC. Optional Helius DAS supply when HELIUS_API_KEY is configured. Free — no signer.

ParameterTypeDescription
tokenstringBase58 Solana mint address. Pass "three" or omit to use the $three reference mint (THREE_MINT env).

pump_buy Buy a Solana token via Jupiter (direct or Jito-bundled)

Swap SOL → target mint via Jupiter aggregator. Direct mode = one tx signed by the buyer. Bundled mode (jitoBundle=true) = two-tx Jito bundle where funderSecret transfers SOL + tip to the buyer atomically with the swap (sweeper-resistant). Pass target="three" to use the $three reference mint. EXECUTION ACTION.

ParameterTypeDescription
buySol *numberAmount of SOL to spend.
buyerSecret *stringBase58 secret of the buyer wallet (signs the swap).
target *stringTarget mint (base58) or "three" to use the THREE_MINT env.
confirmbooleanMust be true to execute this irreversible swap (when REQUIRE_CONFIRM is on).
funderSecretstringBase58 secret of the funder. Required when jitoBundle=true.
jitoBundlebooleanUse a Jito bundle (atomic funder→buyer transfer + swap). Default false.
jitoTipSolnumberJito tip in SOL (default 0.005). Only used when jitoBundle=true.
priorityMicroLamportsintegerCompute-unit price (default 2_000_000).
slippageBpsintegerSlippage in basis points (default 500 = 5%).

pump_launch Atomic pump.fun launch (Jito bundle, separate funder/creator)

Launch a pump.fun token atomically via a Jito bundle. Funder pays its own fee + tip and rent-funds the creator; creator signs createV2 in tx2 — both txs land in the same block or neither does. Pass devBuySol to launch-and-snipe: the creator first buy is folded into the create tx (createV2AndBuy) so it lands atomically before any sniper sees the curve. If uri is omitted, metadata is uploaded to pump.fun IPFS first from name/symbol/description/socials/imageUrl. Returns the mint address, bundle id, both tx signatures, the dev-buy quote, and the pump.fun URL. EXECUTION ACTION — creates a real…

ParameterTypeDescription
creatorSecret *stringBase58 secret of the creator wallet (signs createV2 — becomes on-chain creator).
funderSecret *stringBase58 secret of the funder wallet (pays Tx1 fee + tip + rent transfer).
name *stringToken name.
symbol *stringToken symbol (ticker).
confirmbooleanMust be true to execute this irreversible mint launch (when REQUIRE_CONFIRM is on).
descriptionstring
devBuySolnumberSOL for an atomic creator dev buy folded into the create tx (launch-and-snipe). Omit or 0 = launch only. Funded by the funder on top of rent.
imageUrlstringImage to upload as the token icon (re-fetched at upload time).
jitoTipSolnumberJito tip in SOL (default 0.005).
mintSecretstringBase58 secret to use as the mint keypair (default: random).
priorityMicroLamportsintegerCompute-unit priority price (default 2_000_000).
rentSolnumberSOL the funder transfers to the creator for tx2 rent + fees (default 0.035).
slippageBpsintegerSlippage tolerance for the dev buy in basis points (default 500 = 5%). Only used when devBuySol > 0.
telegramstring
twitterstring
uristringExisting metadata URI. If omitted, metadata is uploaded first.
websitestring

pump_collect_fees Atomic pump.fun creator-fee collection (Jito bundle)

Collect a pump.fun coin's creator-fee vault and route the SOL to a safe destination, atomically, in a single tx inside a Jito bundle. Funder pays the fee + Jito tip; creator signs collectCoinCreatorFee + drain to DESTINATION. The bundle's atomicity blocks any competing collector from interleaving even if the creator key is leaked. EXECUTION ACTION.

ParameterTypeDescription
creatorSecret *stringBase58 secret of the coin creator (signs collect + drain).
destination *stringPubkey to receive the collected SOL.
funderSecret *stringBase58 secret of the funder (pays fee + tip).
bufferLamportsintegerLamports to leave in the creator wallet (default 890880, rent-exempt minimum).
confirmbooleanMust be true to execute this irreversible collect+drain (when REQUIRE_CONFIRM is on).
jitoTipSolnumberJito tip in SOL (default 0.005).
minVaultSolnumberAbort if the vault holds less than this (default 0.001).
priorityMicroLamportsintegerCompute-unit priority price (default 3_000_000).

ens_sns_resolve Resolve ENS + SNS names to addresses

Resolve a human-readable name to addresses across ENS (Ethereum) and SNS (Solana, Bonfida). For .eth: returns Ethereum address + reverse lookup. For .sol: returns Solana owner wallet + the wallet's other owned .sol domains + favorite domain. Names without a suffix are tried against both registries.

ParameterTypeDescription
name *stringName to resolve, e.g. "vitalik.eth", "bonfida.sol", or bare "vitalik" (tried in both registries).