3D AI Agent Avatar

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

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

Values you need

VariableWhat it is
SOLANA_RPC_URLoptional Solana mainnet RPC endpoint. Defaults to https://api.mainnet-beta.solana.com — bring your own (Helius / Quicknode / Triton) for production traffic. Default: https://api.mainnet-beta.solana.com
ETH_RPC_URLoptional Ethereum mainnet RPC for ENS resolution. Optional — falls back to ethers' default public providers.
HELIUS_API_KEYoptional secret Optional Helius API key — enables exact supply + DAS data in pump_snapshot.
NVIDIA_API_KEYoptional secret NVIDIA NIM key (nvapi-…) — leads the speak tool's TTS provider chain with the free Magpie TTS lane.
OPENAI_API_KEYoptional secret OpenAI TTS — the speak tool's paid backstop when the free NVIDIA lane is unavailable.
REPLICATE_API_TOKENoptional secret Required for the generate_avatar tool (Replicate text/image-to-3D).
REPLICATE_TEXT_TO_AVATAR_MODELoptional Replicate version hash pinned for text-to-3D — recommended: latest tencent/hunyuan-3d-3.1.
SOLANA_SECRET_KEYoptional secret Optional default base58 Solana secret for wallet_send / pump_buy. Per-call secret args override this. Treat like cash.
THREE_MINToptional Optional pump.fun mint address for $three so tools accept target="three" as shorthand.
MAX_SOL_PER_TXoptional Per-transaction spend cap in SOL for the execution tools (wallet_send, pump_buy, pump_launch, pump_collect_fees). Default: 0.5
REQUIRE_CONFIRMoptional When on (default), execution tools refuse until re-issued with confirm:true. Set 0/false to disable the gate. Default: true

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add 3d-ai-agent-avatar -- npx -y --package=@three-ws/avatar-agent@1.2.3 three-avatar-agent-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "3d-ai-agent-avatar": {
      "args": [
        "-y",
        "--package=@three-ws/avatar-agent@1.2.3",
        "three-avatar-agent-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "3d-ai-agent-avatar": {
      "args": [
        "-y",
        "--package=@three-ws/avatar-agent@1.2.3",
        "three-avatar-agent-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "3d-ai-agent-avatar": {
      "args": [
        "-y",
        "--package=@three-ws/avatar-agent@1.2.3",
        "three-avatar-agent-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.3d-ai-agent-avatar]
command = "npx"
args = ["-y", "--package=@three-ws/avatar-agent@1.2.3", "three-avatar-agent-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: inspect_glb, validate_glb, optimize_glb, thumbnail_glb, viewer_url, list_avatars, list_animations, spawn_avatar, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json