@three-ws/avatar-mcp
An MCP server that drops a live three.ws 3D avatar into any MCP client — Claude Desktop, Claude Code, Cursor, or any other host. Render a rotatable avatar inline, get a paste-anywhere embed iframe, or fetch avatar metadata.
It's a thin, zero-config, read-only bridge to the real three.ws endpoints. Public and unlisted avatars need no API key. No mock data — every tool reads live from three.ws.
Registry name: io.github.nirholas/threews-avatar. Built by three.ws.
Tools
render_avatar | Renders an avatar inline: a preview image, an interactive (rotatable) model-viewer artifact, and a live embed URL. |
avatar_embed_code | A ready-to-paste <iframe> that embeds the live avatar anywhere — as easy as a YouTube embed. |
get_avatar | Avatar metadata: name, GLB model url, owner, visibility. |
Identify an avatar three ways: by id (UUID), by @handle (username), or by a raw model GLB url.
Use with Claude Desktop / Claude Code / Cursor
{
"mcpServers": {
"threews-avatar": {
"command": "npx",
"args": ["-y", "@three-ws/avatar-mcp"]
}
}
}
No environment variables required. To point at a different host, set THREEWS_BASE_URL.
Run standalone
npx @three-ws/avatar-mcp
npx -y @modelcontextprotocol/inspector npx @three-ws/avatar-mcp
Example calls
// render_avatar — live, rotatable avatar in chat
{ "handle": "nirholas", "background": "dark", "auto_rotate": true }
// avatar_embed_code — paste into any website
{ "id": "c3d4e5f6-a7b8-9c0d-1e2f-3a4b5c6d7e8f", "height": 560 }
// get_avatar — metadata
{ "handle": "@nirholas" }
render_avatar returns three things so it looks great in every client:
- a preview image (renders inline everywhere),
- an interactive
text/html resource (a <model-viewer> you can orbit — for clients that render HTML resources), and
- the embed URL + iframe so you can drop the live avatar into any page.
How it works
id | GET https://three.ws/api/avatars/:id |
handle | GET https://three.ws/api/users/:handle/avatar |
| preview image | GET https://three.ws/api/avatar/render?avatar=:id |
| live embed | https://three.ws/avatar-embed.html?... |
| viewer | https://three.ws/viewer?src=:glb |
License
Apache-2.0