MCP server
DiceBear runs a Model Context Protocol server. Once you connect it, your AI assistant looks up avatar styles and their options before it answers and returns avatar URLs that work. It needs no account and no key:
https://api.dicebear.com/mcpThe server speaks Streamable HTTP and serves the current version, 11.x. Its tools only read, so an assistant that asks before every tool call can be allowed to use them all.
Chat apps
ChatGPT
Custom MCP servers work in ChatGPT on the web, on Pro, Business, Enterprise and Edu plans. Open Plugins, select + and Add custom MCP server, enter https://api.dicebear.com/mcp under Connection and choose No authentication. In a Business workspace, admins and owners add the server. OpenAI's guide has the details.
Claude
On claude.ai or in Claude Desktop, open Customize > Connectors, select Add > Add custom connector and enter https://api.dicebear.com/mcp. Leave the authentication at No sign-in. On Team and Enterprise plans, an owner adds the connector for the organization. Anthropic's guide covers every plan.
Perplexity
Open Plugins in the sidebar, select Add custom > Add MCP connector > Remote, enter https://api.dicebear.com/mcp and set the authentication to None. Perplexity's guide explains the organization settings.
Coding assistants
Install links for VS Code and Cursor add the server in one click. The other assistants take one command:
claude mcp add --transport http dicebear https://api.dicebear.com/mcpcodex mcp add dicebear --url https://api.dicebear.com/mcpgemini mcp add --transport http dicebear https://api.dicebear.com/mcpcode --add-mcp '{"name":"dicebear","type":"http","url":"https://api.dicebear.com/mcp"}'{
"mcpServers": {
"dicebear": {
"url": "https://api.dicebear.com/mcp"
}
}
}Cursor reads the server from .cursor/mcp.json in the project, or from ~/.cursor/mcp.json for all projects. With --scope project, Claude Code writes it to .mcp.json, so everyone working on the project gets it.
The vendors document the details: Claude Code, Codex, Gemini CLI and VS Code.
Other clients
Any client that connects to remote MCP servers works, for example Windsurf, JetBrains AI Assistant, Zed, Cline, LM Studio or Le Chat. Enter https://api.dicebear.com/mcp, choose Streamable HTTP as the transport, and leave the authentication empty.
Tools
| Tool | What it does |
|---|---|
list_styles | Lists the styles with artist, license, credit line, a preview link and whether they are animated |
get_style_options | Returns every option of a style with its type, allowed values and bounds |
build_avatar_url | Checks the options and returns an avatar URL in SVG, PNG, JPEG, WebP, AVIF or JSON |
render_avatar | Returns the SVG markup of an avatar, to save as a file or put into a page |
When an option does not fit the style, the server lists every problem in one answer, with the values the style allows, and the assistant corrects its call.
Things to ask
- "Which DiceBear styles can I use without crediting the artist?"
- "Give me a Lorelei avatar URL for the seed jane@example.com with a light blue background."
- "Show me three animated styles that would suit a children's learning app."
- "Add DiceBear avatars as the fallback for missing profile pictures in the user list component."
- "Save a Pixel Art avatar as SVG for every name in users.csv."
Terms
The links point at the HTTP API, which is free for non-commercial use. Commercial projects use a library or host the API themselves, both free, and a self-hosted API can run the MCP server too. The assistant gets this note with every link, together with a credit line for every style that is neither DiceBear's own work nor CC0. Every style lists its license on the licenses page.
To have your assistant write DiceBear code from current documentation, see DiceBear for AI assistants.